Skip to content

Add test for loading 16 bit PNG images

M. Stoeckl requested to merge mstoeckl/cairo:test-png16-load into master

This adds a test which loads a PNG image using 16 bits per channel, and draws it.

This requires !230 (merged) to load the image correctly.

It is only enabled for raster targets, because ps2/ps3 outputs are currently black. (Edit: this has been fixed, test now runs on all targets.)

The test currently fails with XCB targets, because despite producing images that look correct, it produces the following errors. Detected error during xcb run: error=2=Value, seqno=0x15, major=53=CreatePixmap, minor=0=(null) Detected error during xcb run: error=13=GContext, seqno=0x3f, major=60=FreeGC, minor=0=(null) cairo-test-suite: ../cairo/boilerplate/cairo-boilerplate-xcb.c:134: _cairo_boilerplate_xcb_cleanup: Assertion `status == CAIRO_STATUS_SUCCESS' failed. create-from-png-16bit.xcb-render-0_0.rgb24 [0x1]: !!!CRASHED!!!

Edited by M. Stoeckl

Merge request reports