OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "media/base/video_decoder_config.h" | 5 #include "media/base/video_decoder_config.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 case HEVCPROFILE_MAIN10: | 32 case HEVCPROFILE_MAIN10: |
33 case HEVCPROFILE_MAIN_STILL_PICTURE: | 33 case HEVCPROFILE_MAIN_STILL_PICTURE: |
34 return kCodecHEVC; | 34 return kCodecHEVC; |
35 case VP8PROFILE_ANY: | 35 case VP8PROFILE_ANY: |
36 return kCodecVP8; | 36 return kCodecVP8; |
37 case VP9PROFILE_PROFILE0: | 37 case VP9PROFILE_PROFILE0: |
38 case VP9PROFILE_PROFILE1: | 38 case VP9PROFILE_PROFILE1: |
39 case VP9PROFILE_PROFILE2: | 39 case VP9PROFILE_PROFILE2: |
40 case VP9PROFILE_PROFILE3: | 40 case VP9PROFILE_PROFILE3: |
41 return kCodecVP9; | 41 return kCodecVP9; |
| 42 case DOLBYVISION_PROFILE0: |
| 43 case DOLBYVISION_PROFILE4: |
| 44 case DOLBYVISION_PROFILE5: |
| 45 case DOLBYVISION_PROFILE7: |
| 46 return kCodecDolbyVision; |
42 } | 47 } |
43 NOTREACHED(); | 48 NOTREACHED(); |
44 return kUnknownVideoCodec; | 49 return kUnknownVideoCodec; |
45 } | 50 } |
46 | 51 |
47 VideoDecoderConfig::VideoDecoderConfig() | 52 VideoDecoderConfig::VideoDecoderConfig() |
48 : codec_(kUnknownVideoCodec), | 53 : codec_(kUnknownVideoCodec), |
49 profile_(VIDEO_CODEC_PROFILE_UNKNOWN), | 54 profile_(VIDEO_CODEC_PROFILE_UNKNOWN), |
50 format_(PIXEL_FORMAT_UNKNOWN) {} | 55 format_(PIXEL_FORMAT_UNKNOWN) {} |
51 | 56 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 << " has extra data? " << (extra_data().empty() ? "false" : "true") | 157 << " has extra data? " << (extra_data().empty() ? "false" : "true") |
153 << " encrypted? " << (is_encrypted() ? "true" : "false"); | 158 << " encrypted? " << (is_encrypted() ? "true" : "false"); |
154 return s.str(); | 159 return s.str(); |
155 } | 160 } |
156 | 161 |
157 void VideoDecoderConfig::SetExtraData(const std::vector<uint8_t>& extra_data) { | 162 void VideoDecoderConfig::SetExtraData(const std::vector<uint8_t>& extra_data) { |
158 extra_data_ = extra_data; | 163 extra_data_ = extra_data; |
159 } | 164 } |
160 | 165 |
161 } // namespace media | 166 } // namespace media |
OLD | NEW |