38#define PIX( _name, _type, _file, _width, _height, _data ) \
39 static const char _name ## __file[] = _file; \
40 static const uint32_t _name ## __data[] = _data; \
41 static struct image _name ## __image = { \
42 .refcnt = REF_INIT ( ref_no_free ), \
44 .flags = ( IMAGE_STATIC | IMAGE_STATIC_NAME ), \
45 .data = _name ## __file, \
46 .len = sizeof ( _name ## __file ), \
48 static struct pixel_buffer_test _name = { \
50 .image = & _name ## __image, \
51 .data = _name ## __data, \
52 .len = sizeof ( _name ## __data ), \
65#define pixbuf_ok( test ) pixbuf_okx ( test, __FILE__, __LINE__ )
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
void pixbuf_okx(struct pixel_buffer_test *test, const char *file, unsigned int line)
Report pixel buffer test result.
An executable image type.
struct image * image
Source image.
const uint32_t * data
Pixel data.
unsigned int height
Height.
size_t len
Length of pixel data.
struct image_type * type
Image type.
Self-test infrastructure.