| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chromecast/media/cma/base/decoder_config_adapter.h" | 5 #include "chromecast/media/cma/base/decoder_config_adapter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/channel_layout.h" | 8 #include "media/base/channel_layout.h" |
| 9 | 9 |
| 10 namespace chromecast { | 10 namespace chromecast { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 case ::media::H264PROFILE_SCALABLEBASELINE: | 103 case ::media::H264PROFILE_SCALABLEBASELINE: |
| 104 return kH264ScalableBaseline; | 104 return kH264ScalableBaseline; |
| 105 case ::media::H264PROFILE_SCALABLEHIGH: | 105 case ::media::H264PROFILE_SCALABLEHIGH: |
| 106 return kH264ScalableHigh; | 106 return kH264ScalableHigh; |
| 107 case ::media::H264PROFILE_STEREOHIGH: | 107 case ::media::H264PROFILE_STEREOHIGH: |
| 108 return kH264Stereohigh; | 108 return kH264Stereohigh; |
| 109 case ::media::H264PROFILE_MULTIVIEWHIGH: | 109 case ::media::H264PROFILE_MULTIVIEWHIGH: |
| 110 return kH264MultiviewHigh; | 110 return kH264MultiviewHigh; |
| 111 case ::media::VP8PROFILE_ANY: | 111 case ::media::VP8PROFILE_ANY: |
| 112 return kVP8ProfileAny; | 112 return kVP8ProfileAny; |
| 113 case ::media::VP9PROFILE_ANY: | 113 case ::media::VP9PROFILE_PROFILE0: |
| 114 return kVP9ProfileAny; | 114 return kVP9Profile0; |
| 115 case ::media::VP9PROFILE_PROFILE1: |
| 116 return kVP9Profile1; |
| 117 case ::media::VP9PROFILE_PROFILE2: |
| 118 return kVP9Profile2; |
| 119 case ::media::VP9PROFILE_PROFILE3: |
| 120 return kVP9Profile3; |
| 115 default: | 121 default: |
| 116 LOG(INFO) << "Unsupported video codec profile " << codec_profile; | 122 LOG(INFO) << "Unsupported video codec profile " << codec_profile; |
| 117 } | 123 } |
| 118 return kVideoProfileUnknown; | 124 return kVideoProfileUnknown; |
| 119 } | 125 } |
| 120 | 126 |
| 121 ::media::ChannelLayout ToMediaChannelLayout(int channel_number) { | 127 ::media::ChannelLayout ToMediaChannelLayout(int channel_number) { |
| 122 switch (channel_number) { | 128 switch (channel_number) { |
| 123 case 1: | 129 case 1: |
| 124 return ::media::ChannelLayout::CHANNEL_LAYOUT_MONO; | 130 return ::media::ChannelLayout::CHANNEL_LAYOUT_MONO; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 video_config.codec = ToVideoCodec(config.codec()); | 292 video_config.codec = ToVideoCodec(config.codec()); |
| 287 video_config.profile = ToVideoProfile(config.profile()); | 293 video_config.profile = ToVideoProfile(config.profile()); |
| 288 video_config.extra_data = config.extra_data(); | 294 video_config.extra_data = config.extra_data(); |
| 289 video_config.encryption_scheme = ToEncryptionScheme( | 295 video_config.encryption_scheme = ToEncryptionScheme( |
| 290 config.encryption_scheme()); | 296 config.encryption_scheme()); |
| 291 return video_config; | 297 return video_config; |
| 292 } | 298 } |
| 293 | 299 |
| 294 } // namespace media | 300 } // namespace media |
| 295 } // namespace chromecast | 301 } // namespace chromecast |
| OLD | NEW |