• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/metaflac/

Lines Matching defs:picture

32 static FLAC__bool import_pic_from(const char *filename, FLAC__StreamMetadata **picture, const char *specification, FLAC__bool *needs_write);
33 static FLAC__bool export_pic_to(const char *filename, const FLAC__StreamMetadata *picture, const char *pic_filename);
38 FLAC__StreamMetadata *picture = 0;
48 ok = import_pic_from(filename, &picture, operation->argument.specification.value, needs_write);
53 if(!FLAC__metadata_iterator_insert_block_after(iterator, picture)) {
55 FLAC__metadata_object_delete(picture);
66 if(block->data.picture.type == FLAC__STREAM_METADATA_PICTURE_TYPE_FILE_ICON_STANDARD) {
73 else if(block->data.picture.type == FLAC__STREAM_METADATA_PICTURE_TYPE_FILE_ICON) {
92 picture = block;
94 } while(FLAC__metadata_iterator_next(iterator) && 0 == picture);
95 if(0 == picture) {
103 ok = export_pic_to(filename, picture, operation->argument.filename.value);
120 FLAC__bool import_pic_from(const char *filename, FLAC__StreamMetadata **picture, const char *specification, FLAC__bool *needs_write)
125 fprintf(stderr, "%s: ERROR: empty picture specification\n", filename);
129 *picture = grabbag__picture_parse_specification(specification, &error_message);
131 if(0 == *picture) {
132 fprintf(stderr, "%s: ERROR: while parsing picture specification \"%s\": %s\n", filename, specification, error_message);
136 if(!FLAC__format_picture_is_legal(&(*picture)->data.picture, &error_message)) {
145 FLAC__bool export_pic_to(const char *filename, const FLAC__StreamMetadata *picture, const char *pic_filename)
148 const FLAC__uint32 len = picture->data.picture.data_length;
164 if(fwrite(picture->data.picture.data, 1, len, f) != len) {