• 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 refs:op

243 		Operation *op = find_shorthand_operation(options, OP__IMPORT_CUESHEET_FROM);
244 if(0 != op) {
248 op->argument.import_cuesheet_from.add_seekpoint_link = &(op2->argument.add_seekpoint);
258 Operation *op;
264 for(i = 0, op = options->ops.operations; i < options->ops.num_operations; i++, op++) {
265 switch(op->type) {
269 if(0 != op->argument.vc_field_name.value)
270 free(op->argument.vc_field_name.value);
273 if(0 != op->argument.vc_field.field)
274 free(op->argument.vc_field.field);
275 if(0 != op->argument.vc_field.field_name)
276 free(op->argument.vc_field.field_name);
277 if(0 != op->argument.vc_field.field_value)
278 free(op->argument.vc_field.field_value);
283 if(0 != op->argument.filename.value)
284 free(op->argument.filename.value);
287 if(0 != op->argument.import_cuesheet_from.filename)
288 free(op->argument.import_cuesheet_from.filename);
291 if(0 != op->argument.specification.value)
292 free(op->argument.specification.value);
295 if(0 != op->argument.export_picture_to.filename)
296 free(op->argument.export_picture_to.filename);
299 if(0 != op->argument.add_seekpoint.specification)
300 free(op->argument.add_seekpoint.specification);
349 Operation *op;
399 op = append_shorthand_operation(options, OP__SET_MD5SUM);
401 if(!parse_md5(option_argument, op->argument.streaminfo_md5.value)) {
409 op = append_shorthand_operation(options, OP__SET_MIN_BLOCKSIZE);
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) {
418 op = append_shorthand_operation(options, OP__SET_MAX_BLOCKSIZE);
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) {
427 op = append_shorthand_operation(options, OP__SET_MIN_FRAMESIZE);
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)) {
436 op = append_shorthand_operation(options, OP__SET_MAX_FRAMESIZE);
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)) {
445 op = append_shorthand_operation(options, OP__SET_SAMPLE_RATE);
446 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || !FLAC__format_sample_rate_is_valid(op->argument.streaminfo_uint32.value)) {
454 op = append_shorthand_operation(options, OP__SET_CHANNELS);
455 if(!parse_uint32(option_argument, &(op->argument.streaminfo_uint32.value)) || op->argument.streaminfo_uint32.value > FLAC__MAX_CHANNELS) {
463 op = append_shorthand_operation(options, OP__SET_BPS);
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) {
472 op = append_shorthand_operation(options, OP__SET_TOTAL_SAMPLES);
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)) {
485 op = append_shorthand_operation(options, OP__SHOW_VC_FIELD);
487 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
498 op = append_shorthand_operation(options, OP__REMOVE_VC_FIELD);
500 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
508 op = append_shorthand_operation(options, OP__REMOVE_VC_FIRSTFIELD);
510 if(!parse_vorbis_comment_field_name(option_argument, &(op->argument.vc_field_name.value), &violation)) {
518 op = append_shorthand_operation(options, OP__SET_VC_FIELD);
520 op->argument.vc_field.field_value_from_file = false;
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)) {
529 op = append_shorthand_operation(options, OP__SET_VC_FIELD);
531 op->argument.vc_field.field_value_from_file = true;
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)) {
539 op = append_shorthand_operation(options, OP__IMPORT_VC_FROM);
541 if(!parse_string(option_argument, &(op->argument.filename.value))) {
547 op = append_shorthand_operation(options, OP__EXPORT_VC_TO);
549 if(!parse_string(option_argument, &(op->argument.filename.value))) {
559 op = append_shorthand_operation(options, OP__IMPORT_CUESHEET_FROM);
561 if(!parse_string(option_argument, &(op->argument.import_cuesheet_from.filename))) {
567 op = append_shorthand_operation(options, OP__EXPORT_CUESHEET_TO);
569 if(!parse_string(option_argument, &(op->argument.filename.value))) {
575 op = append_shorthand_operation(options, OP__IMPORT_PICTURE_FROM);
577 if(!parse_string(option_argument, &(op->argument.specification.value))) {
584 op = append_shorthand_operation(options, OP__EXPORT_PICTURE_TO);
586 if(!parse_string(option_argument, &(op->argument.export_picture_to.filename))) {
590 op->argument.export_picture_to.block_number_link = arg? &(arg->value.block_number) : 0;
602 op = find_shorthand_operation(options, OP__ADD_SEEKPOINT);
603 if(0 == op)
604 op = append_shorthand_operation(options, OP__ADD_SEEKPOINT);
605 local_strcat(&(op->argument.add_seekpoint.specification), spec);
606 local_strcat(&(op->argument.add_seekpoint.specification), ";");
623 op = append_shorthand_operation(options, OP__REMOVE_VC_FIELD);
624 op->argument.vc_field_name.value = local_strdup((const char *)tags[i]);
628 op = append_shorthand_operation(options, OP__ADD_PADDING);
630 if(!parse_add_padding(option_argument, &(op->argument.add_padding.length))) {
756 Operation op;
757 memset(&op, 0, sizeof(op));
758 op.type = type;
759 append_new_operation(options, op);
766 Operation op;
767 memset(&op, 0, sizeof(op));
768 op.type = type;
769 append_new_operation(options, op);