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 "chromecast/media/base/media_codec_support.h" | 8 #include "chromecast/media/base/media_codec_support.h" |
9 #include "media/base/channel_layout.h" | 9 #include "media/base/channel_layout.h" |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 case ::media::kSampleFormatS32: | 54 case ::media::kSampleFormatS32: |
55 return kSampleFormatS32; | 55 return kSampleFormatS32; |
56 case ::media::kSampleFormatF32: | 56 case ::media::kSampleFormatF32: |
57 return kSampleFormatF32; | 57 return kSampleFormatF32; |
58 case ::media::kSampleFormatPlanarS16: | 58 case ::media::kSampleFormatPlanarS16: |
59 return kSampleFormatPlanarS16; | 59 return kSampleFormatPlanarS16; |
60 case ::media::kSampleFormatPlanarF32: | 60 case ::media::kSampleFormatPlanarF32: |
61 return kSampleFormatPlanarF32; | 61 return kSampleFormatPlanarF32; |
62 case ::media::kSampleFormatPlanarS32: | 62 case ::media::kSampleFormatPlanarS32: |
63 return kSampleFormatPlanarS32; | 63 return kSampleFormatPlanarS32; |
| 64 case ::media::kSampleFormatRaw: |
| 65 return kUnknownSampleFormat; |
64 } | 66 } |
65 NOTREACHED(); | 67 NOTREACHED(); |
66 return kUnknownSampleFormat; | 68 return kUnknownSampleFormat; |
67 } | 69 } |
68 | 70 |
69 ::media::ChannelLayout ToMediaChannelLayout(int channel_number) { | 71 ::media::ChannelLayout ToMediaChannelLayout(int channel_number) { |
70 switch (channel_number) { | 72 switch (channel_number) { |
71 case 1: | 73 case 1: |
72 return ::media::ChannelLayout::CHANNEL_LAYOUT_MONO; | 74 return ::media::ChannelLayout::CHANNEL_LAYOUT_MONO; |
73 case 2: | 75 case 2: |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 STATIC_ASSERT_ENUM(MatrixID::BT2020_NCL, MatrixID::BT2020_NCL); | 325 STATIC_ASSERT_ENUM(MatrixID::BT2020_NCL, MatrixID::BT2020_NCL); |
324 STATIC_ASSERT_ENUM(MatrixID::BT2020_CL, MatrixID::BT2020_CL); | 326 STATIC_ASSERT_ENUM(MatrixID::BT2020_CL, MatrixID::BT2020_CL); |
325 | 327 |
326 STATIC_ASSERT_ENUM(RangeID::UNSPECIFIED, RangeID::UNSPECIFIED); | 328 STATIC_ASSERT_ENUM(RangeID::UNSPECIFIED, RangeID::UNSPECIFIED); |
327 STATIC_ASSERT_ENUM(RangeID::LIMITED, RangeID::LIMITED); | 329 STATIC_ASSERT_ENUM(RangeID::LIMITED, RangeID::LIMITED); |
328 STATIC_ASSERT_ENUM(RangeID::FULL, RangeID::FULL); | 330 STATIC_ASSERT_ENUM(RangeID::FULL, RangeID::FULL); |
329 STATIC_ASSERT_ENUM(RangeID::DERIVED, RangeID::DERIVED); | 331 STATIC_ASSERT_ENUM(RangeID::DERIVED, RangeID::DERIVED); |
330 | 332 |
331 } // namespace media | 333 } // namespace media |
332 } // namespace chromecast | 334 } // namespace chromecast |
OLD | NEW |