• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/flac-1.2.1/src/metaflac/

Lines Matching refs:option_argument

101 static FLAC__bool parse_option(int option_index, const char *option_argument, CommandLineOptions *options);
346 FLAC__bool parse_option(int option_index, const char *option_argument, CommandLineOptions *options)
400 FLAC__ASSERT(0 != option_argument);
401 if(!parse_md5(option_argument, op->argument.streaminfo_md5.value)) {
410 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value < FLAC__MIN_BLOCK_SIZE || op->argument.streaminfo_uint32.value > FLAC__MAX_BLOCK_SIZE) {
419 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value < FLAC__MIN_BLOCK_SIZE || op->argument.streaminfo_uint32.value > FLAC__MAX_BLOCK_SIZE) {
428 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value >= (1u<<FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN)) {
437 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value >= (1u<<FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN)) {
446 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || !FLAC__format_sample_rate_is_valid(op->argument.streaminfo_uint32.value)) {
455 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value > FLAC__MAX_CHANNELS) {
464 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value < FLAC__MIN_BITS_PER_SAMPLE || op->argument.streaminfo_uint32.value > FLAC__MAX_BITS_PER_SAMPLE) {
473 if(!parse_uint64(option_argument, &(op->argument.streaminfo_uint64.value)) || op->argument.streaminfo_uint64.value >= (((FLAC__uint64)1)<<FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN)) {
486 FLAC__ASSERT(0 != option_argument);
487 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
489 fprintf(stderr, "ERROR (--%s): malformed vorbis comment field name \"%s\",\n %s\n", opt, option_argument, violation);
499 FLAC__ASSERT(0 != option_argument);
500 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
502 fprintf(stderr, "ERROR (--%s): malformed vorbis comment field name \"%s\",\n %s\n", opt, option_argument, violation);
509 FLAC__ASSERT(0 != option_argument);
510 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
512 fprintf(stderr, "ERROR (--%s): malformed vorbis comment field name \"%s\",\n %s\n", opt, option_argument, violation);
519 FLAC__ASSERT(0 != option_argument);
521 if(!parse_vorbis_comment_field(option_argument, &(op->argument.vc_field.field), &(op->argument.vc_field.field_name), &(op->argument.vc_field.field_value), &(op->argument.vc_field.field_value_length), &violation)) {
523 fprintf(stderr, "ERROR (--%s): malformed vorbis comment field \"%s\",\n %s\n", opt, option_argument, violation);
530 FLAC__ASSERT(0 != option_argument);
532 if(!parse_vorbis_comment_field(option_argument, &(op->argument.vc_field.field), &(op->argument.vc_field.field_name), &(op->argument.vc_field.field_value), &(op->argument.vc_field.field_value_length), &violation)) {
534 fprintf(stderr, "ERROR (--%s): malformed vorbis comment field \"%s\",\n %s\n", opt, option_argument, violation);
540 FLAC__ASSERT(0 != option_argument);
541 if(!parse_string(option_argument, &(op->argument.filename.value))) {
548 FLAC__ASSERT(0 != option_argument);
549 if(!parse_string(option_argument, &(op->argument.filename.value))) {
560 FLAC__ASSERT(0 != option_argument);
561 if(!parse_string(option_argument, &(op->argument.import_cuesheet_from.filename))) {
568 FLAC__ASSERT(0 != option_argument);
569 if(!parse_string(option_argument, &(op->argument.filename.value))) {
576 FLAC__ASSERT(0 != option_argument);
577 if(!parse_string(option_argument, &(op->argument.specification.value))) {
585 FLAC__ASSERT(0 != option_argument);
586 if(!parse_string(option_argument, &(op->argument.export_picture_to.filename))) {
595 FLAC__ASSERT(0 != option_argument);
596 if(!parse_add_seekpoint(option_argument, &spec, &violation)) {
598 fprintf(stderr, "ERROR (--%s): malformed seekpoint specification \"%s\",\n %s\n", opt, option_argument, violation);
629 FLAC__ASSERT(0 != option_argument);
630 if(!parse_add_padding(option_argument, &(op->argument.add_padding.length))) {
631 fprintf(stderr, "ERROR (--%s): illegal length \"%s\", length must be >= 0 and < 2^%u\n", opt, option_argument, FLAC__STREAM_METADATA_LENGTH_LEN);
661 FLAC__ASSERT(0 != option_argument);
662 if(!parse_block_number(option_argument, &(arg->value.block_number))) {
663 fprintf(stderr, "ERROR: malformed block number specification \"%s\"\n", option_argument);
669 FLAC__ASSERT(0 != option_argument);
670 if(!parse_block_type(option_argument, &(arg->value.block_type))) {
671 fprintf(stderr, "ERROR (--%s): malformed block type specification \"%s\"\n", opt, option_argument);
678 FLAC__ASSERT(0 != option_argument);
679 if(!parse_block_type(option_argument, &(arg->value.block_type))) {
680 fprintf(stderr, "ERROR (--%s): malformed block type specification \"%s\"\n", opt, option_argument);
687 FLAC__ASSERT(0 != option_argument);
688 if(!parse_data_format(option_argument, &(arg->value.data_format))) {
689 fprintf(stderr, "ERROR (--%s): illegal data format \"%s\"\n", opt, option_argument);
694 FLAC__ASSERT(0 != option_argument);
695 if(!parse_application_data_format(option_argument, &(options->application_data_format_is_hexdump))) {
696 fprintf(stderr, "ERROR (--%s): illegal application data format \"%s\"\n", opt, option_argument);
702 FLAC__ASSERT(0 != option_argument);
703 arg->value.from_file.file_name = local_strdup(option_argument);