Lines Matching refs:picture
1 /* test_picture - Simple tester for picture routines in grabbag
90 obj->data.picture.type,
91 obj->data.picture.type < FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED?
92 FLAC__StreamMetadata_Picture_TypeString[obj->data.picture.type] : "UNDEFINED",
93 obj->data.picture.mime_type,
94 obj->data.picture.description,
95 obj->data.picture.width,
96 obj->data.picture.height,
97 obj->data.picture.depth,
98 obj->data.picture.colors,
99 obj->data.picture.data_length
102 if(obj->data.picture.type != (fn_only? FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER : pf->type))
103 return failed_("picture type mismatch");
104 if(strcmp(obj->data.picture.mime_type, pf->mime_type))
105 return failed_("picture MIME type mismatch");
106 if(strcmp((const char *)obj->data.picture.description, (const char *)pf->description))
107 return failed_("picture description mismatch");
108 if(obj->data.picture.width != pf->width)
109 return failed_("picture width mismatch");
110 if(obj->data.picture.height != pf->height)
111 return failed_("picture height mismatch");
112 if(obj->data.picture.depth != pf->depth)
113 return failed_("picture depth mismatch");
114 if(obj->data.picture.colors != pf->colors)
115 return failed_("picture colors mismatch");
127 printf("\n+++ grabbag unit test: picture\n\n");
189 /* test automatic parsing of picture files from only the file name */
194 /* test automatic parsing of picture files to get resolution/color info */