search for: flac__streammetadata_picture_type

Displaying 4 results from an estimated 4 matches for "flac__streammetadata_picture_type".

2008 May 09
1
FLAC__metadata_get_picture()
...URE ) How to get _all_ images with bool FLAC::Metadata::get_picture() func? This function is wrapper FLAC__bool FLAC__metadata_get_picture(). flac-1.2.1/src/libFLAC/metadata_iterators.c: ... 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) 286 { 287 FLAC__Metadata_SimpleIterator *it; 288 FLAC__uint64 max_area_seen = 0; 289 FLAC__uint64 max_depth_seen = 0; 290 291 F...
2007 Dec 02
1
Get multiple pictures in Flac tags
An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20071202/e18cddb2/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: metaflac.flac Type: audio/x-flac Size: 10983 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20071202/e18cddb2/metaflac.bin
2010 Mar 08
0
Difficulties in add cover art to FLAC file
...in); The above code will add a NULL cover art into the flac file, it works. However, after I add the following code between the call of FLAC__metadata_iterator_next and FLAC__metadata_object_picture_is_legal, I got a "fail to write: status 0" message. picture->data.picture.type = (FLAC__StreamMetadata_Picture_Type)3; FLAC__metadata_object_picture_set_mime_type( picture, "image/jpeg", true ); FLAC__metadata_object_picture_set_description( picture, (FLAC__byte*)"", true ); CFile picfile; picfile.Open( L"I:\\1.jpg", CFile::modeRead | CFile::shareDenyWrite); ULONGLONG dwLength = pi...
2016 Apr 15
0
FLAC__metadata_get_picture always return false
...rk also fine to get Vorbis Comment and other metadata ( like "bits per sample" for instance ). But when I use the following code, FLAC__metadata_get_picture() always return false : FLAC__StreamMetadata *smet= NULL; const char *filename="/[...]/musicfile.flac"; for (FLAC__StreamMetadata_Picture_Type pic_type = FLAC__STREAM_METADATA_PICTURE_TYPE_OTHER; pic_type < FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED; pic_type++) { if (FLAC__metadata_get_picture(filename, &smet, pic_type, NULL, NULL, (unsigned)(-1) , (unsigned)(-1), (unsigned)(-1), (unsigned)(-1))...