• 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:filename

37 static FLAC__bool do_major_operation_on_file(const char *filename, const CommandLineOptions *options);
38 static FLAC__bool do_major_operation__list(const char *filename, FLAC__Metadata_Chain *chain, const CommandLineOptions *options);
43 static FLAC__bool do_shorthand_operations_on_file(const char *filename, 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);
49 static void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned block_number, FLAC__bool raw, FLAC__bool hexdump_application);
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);
112 FLAC__bool do_major_operation_on_file(const char *filename, const CommandLineOptions *options)
121 if(strlen(filename) >= 4 && (0 == strcmp(filename+strlen(filename)-4, ".oga") || 0 == strcmp(filename+strlen(filename)-4, ".ogg")))
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);
132 ok = do_major_operation__list(options->prefix_with_filename? filename : 0, chain, options);
164 print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename);
172 FLAC__bool do_major_operation__list(const char *filename, FLAC__Metadata_Chain *chain, const CommandLineOptions *options)
189 fprintf(stderr, "%s: ERROR: couldn't get block from chain\n", filename);
191 write_metadata(filename, block, block_number, !options->utf8_convert, options->application_data_format_is_hexdump);
274 FLAC__bool do_shorthand_operations_on_file(const char *filename, const CommandLineOptions *options)
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);
321 print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename);
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)
499 print_error_with_chain_status(chain, "%s: ERROR: adding new PADDING block to metadata", filename);
548 void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned block_number, FLAC__bool raw, FLAC__bool hexdump_application)
553 #define PPR if(filename)printf("%s:",filename);
590 hexdump(filename, block->data.application.data, block->length - FLAC__STREAM_METADATA_HEADER_LENGTH, " ");
673 hexdump(filename, block->data.picture.data, block->data.picture.data_length, " ");
678 hexdump(filename, block->data.unknown.data, block->length, " ");