summaryrefslogtreecommitdiff
path: root/test/png.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for RGBA128F and RGB96F formats.Maarten Lankhorst2019-01-071-0/+2
| | | | | | | | | | | | | | IGT wants to add support for planes with a bit depth >10, which requires a higher precision format than we have currently. I'm using RGBA as format, because of its existence in OpenGL. With the new formats we can directly convert our bytes to half float, or multiply a colro vector with a matrix to go to the Y'CbCr colorspace. This requires pixman 0.36.0, so bump the version requirement. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
* test: Fix use after freesBryce Harrington2015-12-091-1/+2
| | | | Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93152
* test: Ensure output dirs exist, falling back to current dir if neededBryce W. Harrington2013-09-091-1/+7
| | | | | | | | | | | | | | This change makes several tests behave more like ps-eps.c, et al by making them attempt to mkdir "output", and in case of trouble use "." instead. filenames are now allocated at runtime due to this change, so ensure the corresponding free()'s are in place as well. This should facilitate running the test suite with a relative path outside cairo's source tree, such as when employing the CAIRO_REF_DIR environment variable. Signed-off-by: Bryce Harrington <b.harrington@samsung.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
* test: Fix several tests to place output files in the output directoryBryce W. Harrington2013-09-091-1/+2
| | | | | | | | | | | | | | The standard location for test output is cairo/test/output. The harness itself was updated to write automatically generated images in this directory, however a number of tests generate their own local output files. This patch updates these tests to write their output into CAIRO_TEST_OUTPUT_DIR (which defaults to cairo/test/output) as well, in the interest of decluttering the test directory. Signed-off-by: Bryce Harrington <b.harrington@samsung.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
* png: Implement conversion of CAIRO_FORMAT_RGB30 to stringAndrea Canciani2012-05-261-0/+1
| | | | | | | Fixes png.c:55: warning: enumeration value ‘CAIRO_FORMAT_RGB30’ not handled in switch
* test: Improve memfault behaviour.Chris Wilson2010-05-031-11/+23
| | | | | Various minor tweaks to convert asserts into error returns and to improve error checking on intermediate surfaces.
* api: Introduce CAIRO_FORMAT_INVALID formally in the API.M Joonas Pihlaja2010-03-011-0/+1
| | | | | | We were exposing the actual value of CAIRO_FORMAT_INVALID through API functions already, so it makes sense to just go ahead and put it in the cairo_format_t enum.
* [test] Use '.' as the field separator in the namesChris Wilson2008-10-311-1/+1
| | | | | | | | | We frequently use '-' within the test name or format name and so we encounter confusion as '-' is also used as the field separator. At times this has caused a new test to break an old test because the new test would match one of the old test's target specific reference images. So switch everything over to use '.' between fields (test name, target, format, subtest, etc.).
* [test] Build test suite into single binary.Chris Wilson2008-10-311-27/+29
| | | | | | | | | Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
* [test] Initialise test context.Chris Wilson2008-08-181-32/+32
| | | | | Fixup a couple more tests that do not initialise a test context for themselves.
* [cairo-png] Support generating CAIRO_FORMAT_RGB24 from PNGs.Chris Wilson2008-03-041-0/+149
If the PNG does not have an alpha channel, then create an opaque image.