Lines Matching defs:format

240 	if (a.format != 0 && b.format != 0 && a.format != b.format)
312 if (a.display.format != 0 && b.display.format != 0
313 && a.display.format != b.display.format) {
367 if (a.format != 0 && b.format != 0 && a.format != b.format)
370 if (a.format == 0 && b.format == 0) {
375 switch ((a.format != 0) ? a.format : b.format) {
527 raw_audio_format_specialize(media_raw_audio_format* format,
530 if (format->frame_rate == 0)
531 format->frame_rate = other->frame_rate;
532 if (format->channel_count == 0)
533 format->channel_count = other->channel_count;
534 if (format->format == 0)
535 format->format = other->format;
536 if (format->byte_order == 0)
537 format->byte_order = other->byte_order;
538 if (format->buffer_size == 0)
539 format->buffer_size = other->buffer_size;
540 if (format->frame_rate == 0)
541 format->frame_rate = other->frame_rate;
546 multi_audio_info_specialize(media_multi_audio_info* format,
549 if (format->channel_mask == 0)
550 format->channel_mask = other->channel_mask;
551 if (format->valid_bits == 0)
552 format->valid_bits = other->valid_bits;
553 if (format->matrix_mask == 0)
554 format->matrix_mask = other->matrix_mask;
559 multi_audio_format_specialize(media_multi_audio_format* format,
562 raw_audio_format_specialize(format, other);
563 multi_audio_info_specialize(format, other);
568 raw_video_format_specialize(media_raw_video_format* format,
571 if (format->field_rate == 0)
572 format->field_rate = other->field_rate;
573 if (format->interlace == 0)
574 format->interlace = other->interlace;
575 if (format->first_active == 0)
576 format->first_active = other->first_active;
577 if (format->last_active == 0)
578 format->last_active = other->last_active;
579 if (format->orientation == 0)
580 format->orientation = other->orientation;
581 if (format->pixel_width_aspect == 0)
582 format->pixel_width_aspect = other->pixel_width_aspect;
583 if (format->pixel_height_aspect == 0)
584 format->pixel_height_aspect = other->pixel_height_aspect;
585 if (format->display.format == 0)
586 format->display.format = other->display.format;
587 if (format->display.line_width == 0)
588 format->display.line_width = other->display.line_width;
589 if (format->display.line_count == 0)
590 format->display.line_count = other->display.line_count;
591 if (format->display.bytes_per_row == 0)
592 format->display.bytes_per_row = other->display.bytes_per_row;
593 if (format->display.pixel_offset == 0)
594 format->display.pixel_offset = other->display.pixel_offset;
595 if (format->display.line_offset == 0)
596 format->display.line_offset = other->display.line_offset;
597 if (format->display.flags == 0)
598 format->display.flags = other->display.flags;
603 multistream_format_specialize(media_multistream_format* format,
606 if (format->avg_bit_rate == 0)
607 format->avg_bit_rate = other->avg_bit_rate;
608 if (format->max_bit_rate == 0)
609 format->max_bit_rate = other->max_bit_rate;
610 if (format->avg_chunk_size == 0)
611 format->avg_chunk_size = other->avg_chunk_size;
612 if (format->max_chunk_size == 0)
613 format->max_chunk_size = other->max_chunk_size;
614 if (format->flags == 0)
615 format->flags = other->flags;
616 if (format->format == 0)
617 format->format = other->format;
619 switch (format->format) {
621 if (format->u.vid.frame_rate == 0)
622 format->u.vid.frame_rate = other->u.vid.frame_rate;
623 if (format->u.vid.width == 0)
624 format->u.vid.width = other->u.vid.width;
625 if (format->u.vid.height == 0)
626 format->u.vid.height = other->u.vid.height;
627 if (format->u.vid.space == 0)
628 format->u.vid.space = other->u.vid.space;
629 if (format->u.vid.sampling_rate == 0)
630 format->u.vid.sampling_rate = other->u.vid.sampling_rate;
631 if (format->u.vid.sample_format == 0)
632 format->u.vid.sample_format = other->u.vid.sample_format;
633 if (format->u.vid.byte_order == 0)
634 format->u.vid.byte_order = other->u.vid.byte_order;
635 if (format->u.vid.channel_count == 0)
636 format->u.vid.channel_count = other->u.vid.channel_count;
640 if (format->u.avi.us_per_frame == 0)
641 format->u.avi.us_per_frame = other->u.avi.us_per_frame;
642 if (format->u.avi.width == 0)
643 format->u.avi.width = other->u.avi.width;
644 if (format->u.avi.height == 0)
645 format->u.avi.height = other->u.avi.height;
646 if (format->u.avi.type_count == 0)
647 format->u.avi.type_count = other->u.avi.type_count;
648 if (format->u.avi.types[0] == 0)
649 format->u.avi.types[0] = other->u.avi.types[0];
650 if (format->u.avi.types[1] == 0)
651 format->u.avi.types[1] = other->u.avi.types[1];
652 if (format->u.avi.types[2] == 0)
653 format->u.avi.types[2] = other->u.avi.types[2];
654 if (format->u.avi.types[3] == 0)
655 format->u.avi.types[3] = other->u.avi.types[3];
656 if (format->u.avi.types[4] == 0)
657 format->u.avi.types[4] = other->u.avi.types[4];
662 "media_multistream_format of format %" B_PRId32 "\n",
663 format->format);
669 encoded_audio_format_specialize(media_encoded_audio_format* format,
672 raw_audio_format_specialize(&format->output, &other->output);
673 if (format->encoding == 0)
674 format->encoding = other->encoding;
675 if (format->bit_rate == 0)
676 format->bit_rate = other->bit_rate;
677 if (format->frame_size == 0)
678 format->frame_size = other->frame_size;
679 multi_audio_info_specialize(&format->multi_info, &other->multi_info);
684 encoded_video_format_specialize(media_encoded_video_format* format,
687 raw_video_format_specialize(&format->output, &other->output);
688 if (format->avg_bit_rate == 0)
689 format->avg_bit_rate = other->avg_bit_rate;
690 if (format->max_bit_rate == 0)
691 format->max_bit_rate = other->max_bit_rate;
692 if (format->encoding == 0)
693 format->encoding = other->encoding;
694 if (format->frame_size == 0)
695 format->frame_size = other->frame_size;
696 if (format->forward_history == 0)
697 format->forward_history = other->forward_history;
698 if (format->backward_history == 0)
699 format->backward_history = other->backward_history;
751 "wildcard format\n");
785 ERROR("media_format::SpecializeTo can't specialize format "
888 // get rid of this format's meta data
930 && a.format == b.format
970 return a.format == b.format
1047 || a.format != b.format
1052 switch (a.format) {
1102 a is the format you want to feed to something accepting b
1126 f.u.raw_audio.format,
1141 f.u.raw_video.display.format,
1160 f.u.encoded_audio.output.format,
1181 f.u.encoded_video.output.display.format,
1227 //! Use this function to iterate through available file format writers.