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 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 H264PROFILE_SCALABLEHIGH = 8, | 55 H264PROFILE_SCALABLEHIGH = 8, |
56 H264PROFILE_STEREOHIGH = 9, | 56 H264PROFILE_STEREOHIGH = 9, |
57 H264PROFILE_MULTIVIEWHIGH = 10, | 57 H264PROFILE_MULTIVIEWHIGH = 10, |
58 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, | 58 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, |
59 VP8PROFILE_MIN = 11, | 59 VP8PROFILE_MIN = 11, |
60 VP8PROFILE_MAIN = VP8PROFILE_MIN, | 60 VP8PROFILE_MAIN = VP8PROFILE_MIN, |
61 VP8PROFILE_MAX = VP8PROFILE_MAIN, | 61 VP8PROFILE_MAX = VP8PROFILE_MAIN, |
62 VP9PROFILE_MIN = 12, | 62 VP9PROFILE_MIN = 12, |
63 VP9PROFILE_MAIN = VP9PROFILE_MIN, | 63 VP9PROFILE_MAIN = VP9PROFILE_MIN, |
64 VP9PROFILE_MAX = VP9PROFILE_MAIN, | 64 VP9PROFILE_MAX = VP9PROFILE_MAIN, |
65 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, | 65 // The values below are private to Chrome and not exported externally |
| 66 // (cf. PPAPI) and may be reordered as necessary. |
| 67 RAWPROFILE_MIN = 13, |
| 68 RAWPROFILE_I420 = RAWPROFILE_MIN, // Tightly-packed 3-planar YUV I420. |
| 69 RAWPROFILE_MAX = RAWPROFILE_I420, |
| 70 VIDEO_CODEC_PROFILE_MAX = RAWPROFILE_MAX, |
66 }; | 71 }; |
67 | 72 |
68 class MEDIA_EXPORT VideoDecoderConfig { | 73 class MEDIA_EXPORT VideoDecoderConfig { |
69 public: | 74 public: |
70 // Constructs an uninitialized object. Clients should call Initialize() with | 75 // Constructs an uninitialized object. Clients should call Initialize() with |
71 // appropriate values before using. | 76 // appropriate values before using. |
72 VideoDecoderConfig(); | 77 VideoDecoderConfig(); |
73 | 78 |
74 // Constructs an initialized object. It is acceptable to pass in NULL for | 79 // Constructs an initialized object. It is acceptable to pass in NULL for |
75 // |extra_data|, otherwise the memory is copied. | 80 // |extra_data|, otherwise the memory is copied. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 bool is_encrypted_; | 154 bool is_encrypted_; |
150 | 155 |
151 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 156 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
152 // generated copy constructor and assignment operator. Since the extra data is | 157 // generated copy constructor and assignment operator. Since the extra data is |
153 // typically small, the performance impact is minimal. | 158 // typically small, the performance impact is minimal. |
154 }; | 159 }; |
155 | 160 |
156 } // namespace media | 161 } // namespace media |
157 | 162 |
158 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 163 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
OLD | NEW |