summaryrefslogtreecommitdiff
path: root/test/mime-data.c
Commit message (Collapse)AuthorAgeFilesLines
* Cairo trivial typosUnknown2018-04-021-1/+1
| | | | | | | | | | | | | Found using `codespell -q 3 -I cairo-whitelist.txt` whereby whitelist contained: ``` amin iff lod writen ``` Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Add CCITT_FAX mime type for PDF and PS surfacesAdrian Johnson2017-10-221-1/+55
| | | | | | | | | | | This completes the full set of PDF/PS image filters allowing image data to be passed though without decompressing then recompresssing in a less efficient format. The difficulty with CCITT_FAX is it needs some decoding parameters that are not stored inside the image data. This is achieved by using an additional mime type CCITT_FAX_PARAMS that contains the params in key=value format.
* test: update mime-data to test jbig2 mime typesAdrian Johnson2013-09-151-1/+96
|
* [test] Trivial fixes for error paths.Chris Wilson2009-01-291-0/+4
| | | | Kill a few leaks along error paths in the test code.
* Add image/jp2 to mime-data testAdrian Johnson2008-11-241-1/+6
|
* [surface] Pass a separate closure for the mime-type destroy notifier.Chris Wilson2008-11-071-1/+2
| | | | | | | | A limitation of the current API was that the destroy notifier was called on the mime-data block. This prevents the user from passing in a pointer to a managed block, for example a mime-data block belonging to a ref-counted object. We can overcome this by allowing the user to specify the closure to be used with the destroy notifier.
* [test] Update mime-data to check image/pngChris Wilson2008-11-051-23/+44
| | | | Add a "image/png" mime-type test.
* [test] Update mime-data jpeg reference data.Chris Wilson2008-11-041-3/+3
| | | | | | | | <adrianj> ickle_: If we are going to use a different image for jpeg in mime-data maybe we could create a jpg that contains the text "jpeg". That way when support for the other image formats is added the mime-data test could have one image for each type with each image and it is easy to see that each image is the correct one.
* [test] Use a different jpeg image for mime-dataChris Wilson2008-11-041-1/+5
| | | | | Detect when we successfully encode the JPEG data from the mime-type by using a completely image.
* [mime-data] Allow embedding of arbitrary mime-types.Chris Wilson2008-11-031-0/+111
Use the surface user-data array allow to store an arbitrary set of alternate image representations keyed by an interned string (which ensures that it has a unique key in the user-visible namespace). Update the API to mirror that of cairo_surface_set_user_data() [i.e. return a status indicator] and switch internal users of the mime-data to the public functions.