Lines Matching full:picture
285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename, FLAC__StreamMetadata **picture, FLAC__StreamMetadata_Picture_Type type, const char *mime_type, const FLAC__byte *description, unsigned max_width, unsigned max_height, unsigned max_depth, unsigned max_colors)
292 FLAC__ASSERT(0 != picture);
294 *picture = 0;
306 FLAC__uint64 area = (FLAC__uint64)obj->data.picture.width * (FLAC__uint64)obj->data.picture.height;
309 (type == (FLAC__StreamMetadata_Picture_Type)(-1) || type == obj->data.picture.type) &&
310 (mime_type == 0 || !strcmp(mime_type, obj->data.picture.mime_type)) &&
311 (description == 0 || !strcmp((const char *)description, (const char *)obj->data.picture.description)) &&
312 obj->data.picture.width <= max_width &&
313 obj->data.picture.height <= max_height &&
314 obj->data.picture.depth <= max_depth &&
315 obj->data.picture.colors <= max_colors &&
316 (area > max_area_seen || (area == max_area_seen && obj->data.picture.depth > max_depth_seen))
318 if(*picture)
319 FLAC__metadata_object_delete(*picture);
320 *picture = obj;
322 max_depth_seen = obj->data.picture.depth;
332 return (0 != *picture);
2114 return read_metadata_block_data_picture_cb_(handle, read_cb, &block->data.picture);
2546 return write_metadata_block_data_picture_cb_(handle, write_cb, &block->data.picture);