| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <ostream> | 5 #include <ostream> |
| 6 | 6 |
| 7 #include "services/media/framework_ffmpeg/ffmpeg_formatting.h" | 7 #include "services/media/framework_ffmpeg/ffmpeg_formatting.h" |
| 8 extern "C" { | 8 extern "C" { |
| 9 #include "third_party/ffmpeg/libavformat/avformat.h" | 9 #include "third_party/ffmpeg/libavformat/avformat.h" |
| 10 #include "third_party/ffmpeg/libavformat/internal.h" | 10 #include "third_party/ffmpeg/libavformat/internal.h" |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 return os << "AV_SAMPLE_FMT_NB" << std::endl; | 666 return os << "AV_SAMPLE_FMT_NB" << std::endl; |
| 667 default: | 667 default: |
| 668 return os << "<UNKNOWN AVSampleFormat: " << static_cast<int>(value) << ">" | 668 return os << "<UNKNOWN AVSampleFormat: " << static_cast<int>(value) << ">" |
| 669 << std::endl; | 669 << std::endl; |
| 670 } | 670 } |
| 671 } | 671 } |
| 672 | 672 |
| 673 std::ostream& operator<<(std::ostream& os, AVColorSpace value) { | 673 std::ostream& operator<<(std::ostream& os, AVColorSpace value) { |
| 674 switch (value) { | 674 switch (value) { |
| 675 case AVCOL_SPC_RGB: | 675 case AVCOL_SPC_RGB: |
| 676 return os << "AVCOL_SPC_RGB" << std::endl; | 676 return os << "AVCOL_SPC_RGB"; |
| 677 case AVCOL_SPC_BT709: | 677 case AVCOL_SPC_BT709: |
| 678 return os << "AVCOL_SPC_BT709" << std::endl; | 678 return os << "AVCOL_SPC_BT709"; |
| 679 case AVCOL_SPC_UNSPECIFIED: | 679 case AVCOL_SPC_UNSPECIFIED: |
| 680 return os << "AVCOL_SPC_UNSPECIFIED" << std::endl; | 680 return os << "AVCOL_SPC_UNSPECIFIED"; |
| 681 case AVCOL_SPC_RESERVED: | 681 case AVCOL_SPC_RESERVED: |
| 682 return os << "AVCOL_SPC_RESERVED" << std::endl; | 682 return os << "AVCOL_SPC_RESERVED"; |
| 683 case AVCOL_SPC_FCC: | 683 case AVCOL_SPC_FCC: |
| 684 return os << "AVCOL_SPC_FCC" << std::endl; | 684 return os << "AVCOL_SPC_FCC"; |
| 685 case AVCOL_SPC_BT470BG: | 685 case AVCOL_SPC_BT470BG: |
| 686 return os << "AVCOL_SPC_BT470BG" << std::endl; | 686 return os << "AVCOL_SPC_BT470BG"; |
| 687 case AVCOL_SPC_SMPTE170M: | 687 case AVCOL_SPC_SMPTE170M: |
| 688 return os << "AVCOL_SPC_SMPTE170M" << std::endl; | 688 return os << "AVCOL_SPC_SMPTE170M"; |
| 689 case AVCOL_SPC_SMPTE240M: | 689 case AVCOL_SPC_SMPTE240M: |
| 690 return os << "AVCOL_SPC_SMPTE240M" << std::endl; | 690 return os << "AVCOL_SPC_SMPTE240M"; |
| 691 case AVCOL_SPC_YCOCG: | 691 case AVCOL_SPC_YCOCG: |
| 692 return os << "AVCOL_SPC_YCOCG" << std::endl; | 692 return os << "AVCOL_SPC_YCOCG"; |
| 693 case AVCOL_SPC_BT2020_NCL: | 693 case AVCOL_SPC_BT2020_NCL: |
| 694 return os << "AVCOL_SPC_BT2020_NCL" << std::endl; | 694 return os << "AVCOL_SPC_BT2020_NCL"; |
| 695 case AVCOL_SPC_BT2020_CL: | 695 case AVCOL_SPC_BT2020_CL: |
| 696 return os << "AVCOL_SPC_BT2020_CL" << std::endl; | 696 return os << "AVCOL_SPC_BT2020_CL"; |
| 697 case AVCOL_SPC_NB: | 697 case AVCOL_SPC_NB: |
| 698 return os << "AVCOL_SPC_NB" << std::endl; | 698 return os << "AVCOL_SPC_NB"; |
| 699 default: | 699 default: |
| 700 return os << "<UNKNOWN AVColorSpace: " << static_cast<int>(value) << ">" | 700 return os << "<UNKNOWN AVColorSpace: " << static_cast<int>(value) << ">"; |
| 701 << std::endl; | |
| 702 } | 701 } |
| 703 } | 702 } |
| 704 | 703 |
| 705 std::ostream& operator<<(std::ostream& os, enum AVDiscard value) { | 704 std::ostream& operator<<(std::ostream& os, enum AVDiscard value) { |
| 706 switch (value) { | 705 switch (value) { |
| 707 case AVDISCARD_NONE: | 706 case AVDISCARD_NONE: |
| 708 return os << "AVDISCARD_NONE" << std::endl; | 707 return os << "AVDISCARD_NONE" << std::endl; |
| 709 case AVDISCARD_DEFAULT: | 708 case AVDISCARD_DEFAULT: |
| 710 return os << "AVDISCARD_DEFAULT" << std::endl; | 709 return os << "AVDISCARD_DEFAULT" << std::endl; |
| 711 case AVDISCARD_NONREF: | 710 case AVDISCARD_NONREF: |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 os << begl << "AVDurationEstimationMethod duration_estimation_method: " | 798 os << begl << "AVDurationEstimationMethod duration_estimation_method: " |
| 800 << value->duration_estimation_method; | 799 << value->duration_estimation_method; |
| 801 os << begl << "int64_t skip_initial_bytes: " << value->skip_initial_bytes | 800 os << begl << "int64_t skip_initial_bytes: " << value->skip_initial_bytes |
| 802 << std::endl; | 801 << std::endl; |
| 803 os << begl << "TODO(dalesat): more" << std::endl; | 802 os << begl << "TODO(dalesat): more" << std::endl; |
| 804 return os << outdent; | 803 return os << outdent; |
| 805 } | 804 } |
| 806 | 805 |
| 807 } // namespace media | 806 } // namespace media |
| 808 } // namespace mojo | 807 } // namespace mojo |
| OLD | NEW |