• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/flac-1.2.1/src/metaflac/

Lines Matching refs:chain

38 static FLAC__bool do_major_operation__list(const char *filename, FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
39 static FLAC__bool do_major_operation__append(FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
40 static FLAC__bool do_major_operation__remove(FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
41 static FLAC__bool do_major_operation__remove_all(FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
44 static FLAC__bool do_shorthand_operation(const char *filename, FLAC__bool prefix_with_filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write, FLAC__bool utf8_convert);
46 static FLAC__bool do_shorthand_operation__add_padding(const char *filename, FLAC__Metadata_Chain *chain, unsigned length, FLAC__bool *needs_write);
52 extern FLAC__bool do_shorthand_operation__add_seekpoints(const char *filename, FLAC__Metadata_Chain *chain, const char *specification, FLAC__bool *needs_write);
55 extern FLAC__bool do_shorthand_operation__streaminfo(const char *filename, FLAC__bool prefix_with_filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write);
58 extern FLAC__bool do_shorthand_operation__vorbis_comment(const char *filename, FLAC__bool prefix_with_filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write, FLAC__bool raw);
61 extern FLAC__bool do_shorthand_operation__cuesheet(const char *filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write);
64 extern FLAC__bool do_shorthand_operation__picture(const char *filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write);
115 FLAC__Metadata_Chain *chain = FLAC__metadata_chain_new();
117 if(0 == chain)
118 die("out of memory allocating chain");
124 if(! (is_ogg? FLAC__metadata_chain_read_ogg(chain, filename) : FLAC__metadata_chain_read(chain, filename)) ) {
125 print_error_with_chain_status(chain, "%s: ERROR: reading metadata", filename);
126 FLAC__metadata_chain_delete(chain);
132 ok = do_major_operation__list(options->prefix_with_filename? filename : 0, chain, options);
135 ok = do_major_operation__append(chain, options);
139 ok = do_major_operation__remove(chain, options);
143 ok = do_major_operation__remove_all(chain, options);
147 FLAC__metadata_chain_merge_padding(chain);
151 FLAC__metadata_chain_sort_padding(chain);
161 FLAC__metadata_chain_sort_padding(chain);
162 ok = FLAC__metadata_chain_write(chain, options->use_padding, options->preserve_modtime);
164 print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename);
167 FLAC__metadata_chain_delete(chain);
172 FLAC__bool do_major_operation__list(const char *filename, FLAC__Metadata_Chain *chain, const CommandLineOptions *options)
182 FLAC__metadata_iterator_init(iterator, chain);
189 fprintf(stderr, "%s: ERROR: couldn't get block from chain\n", filename);
200 FLAC__bool do_major_operation__append(FLAC__Metadata_Chain *chain, const CommandLineOptions *options)
202 (void) chain, (void) options;
207 FLAC__bool do_major_operation__remove(FLAC__Metadata_Chain *chain, const CommandLineOptions *options)
216 FLAC__metadata_iterator_init(iterator, chain);
233 FLAC__bool do_major_operation__remove_all(FLAC__Metadata_Chain *chain, const CommandLineOptions *options)
241 FLAC__metadata_iterator_init(iterator, chain);
278 FLAC__Metadata_Chain *chain = FLAC__metadata_chain_new();
280 if(0 == chain)
281 die("out of memory allocating chain");
283 if(!FLAC__metadata_chain_read(chain, filename)) {
284 print_error_with_chain_status(chain, "%s: ERROR: reading metadata", filename);
294 ok &= do_shorthand_operation(filename, options->prefix_with_filename, chain, &options->ops.operations[i], &needs_write, options->utf8_convert);
313 ok &= do_shorthand_operation(filename, options->prefix_with_filename, chain, &options->ops.operations[i], &needs_write, options->utf8_convert);
318 FLAC__metadata_chain_sort_padding(chain);
319 ok = FLAC__metadata_chain_write(chain, use_padding, options->preserve_modtime);
321 print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename);
324 FLAC__metadata_chain_delete(chain);
329 FLAC__bool do_shorthand_operation(const char *filename, FLAC__bool prefix_with_filename, FLAC__Metadata_Chain *chain, const Operation *operation, FLAC__bool *needs_write, FLAC__bool utf8_convert)
352 ok = do_shorthand_operation__streaminfo(filename, prefix_with_filename, chain, operation, needs_write);
362 ok = do_shorthand_operation__vorbis_comment(filename, prefix_with_filename, chain, operation, needs_write, !utf8_convert);
366 ok = do_shorthand_operation__cuesheet(filename, chain, operation, needs_write);
370 ok = do_shorthand_operation__picture(filename, chain, operation, needs_write);
373 ok = do_shorthand_operation__add_seekpoints(filename, chain, operation->argument.add_seekpoint.specification, needs_write);
380 ok = do_shorthand_operation__add_padding(filename, chain, operation->argument.add_padding.length, needs_write);
479 FLAC__bool do_shorthand_operation__add_padding(const char *filename, FLAC__Metadata_Chain *chain, unsigned length, FLAC__bool *needs_write)
487 FLAC__metadata_iterator_init(iterator, chain);
499 print_error_with_chain_status(chain, "%s: ERROR: adding new PADDING block to metadata", filename);