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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 24 matching lines...) Expand all Loading... | |
35 | 35 |
36 // Video stream profile. This *must* match PP_VideoDecoder_Profile. | 36 // Video stream profile. This *must* match PP_VideoDecoder_Profile. |
37 // (enforced in webkit/plugins/ppapi/ppb_video_decoder_impl.cc) | 37 // (enforced in webkit/plugins/ppapi/ppb_video_decoder_impl.cc) |
38 enum VideoCodecProfile { | 38 enum VideoCodecProfile { |
39 // Keep the values in this enum unique, as they imply format (h.264 vs. VP8, | 39 // Keep the values in this enum unique, as they imply format (h.264 vs. VP8, |
40 // for example), and keep the values for a particular format grouped | 40 // for example), and keep the values for a particular format grouped |
41 // together for clarity. | 41 // together for clarity. |
42 VIDEO_CODEC_PROFILE_UNKNOWN = -1, | 42 VIDEO_CODEC_PROFILE_UNKNOWN = -1, |
43 H264PROFILE_MIN = 0, | 43 H264PROFILE_MIN = 0, |
44 H264PROFILE_BASELINE = H264PROFILE_MIN, | 44 H264PROFILE_BASELINE = H264PROFILE_MIN, |
45 H264PROFILE_MAIN, | 45 H264PROFILE_MAIN = 1, |
Ami GONE FROM CHROMIUM
2012/07/20 19:55:19
I got tired of manually counting these off so adde
| |
46 H264PROFILE_EXTENDED, | 46 H264PROFILE_EXTENDED = 2, |
47 H264PROFILE_HIGH, | 47 H264PROFILE_HIGH = 3, |
48 H264PROFILE_HIGH10PROFILE, | 48 H264PROFILE_HIGH10PROFILE = 4, |
49 H264PROFILE_HIGH422PROFILE, | 49 H264PROFILE_HIGH422PROFILE = 5, |
50 H264PROFILE_HIGH444PREDICTIVEPROFILE, | 50 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, |
51 H264PROFILE_SCALABLEBASELINE, | 51 H264PROFILE_SCALABLEBASELINE = 7, |
52 H264PROFILE_SCALABLEHIGH, | 52 H264PROFILE_SCALABLEHIGH = 8, |
53 H264PROFILE_STEREOHIGH, | 53 H264PROFILE_STEREOHIGH = 9, |
54 H264PROFILE_MULTIVIEWHIGH, | 54 H264PROFILE_MULTIVIEWHIGH = 10, |
55 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, | 55 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, |
56 VIDEO_CODEC_PROFILE_MAX = H264PROFILE_MAX, | 56 VP8PROFILE_MIN = 11, |
57 VP8PROFILE_MAIN = VP8PROFILE_MIN, | |
58 VP8PROFILE_MAX = VP8PROFILE_MAIN, | |
59 VIDEO_CODEC_PROFILE_MAX = VP8PROFILE_MAX, | |
57 }; | 60 }; |
58 | 61 |
59 class MEDIA_EXPORT VideoDecoderConfig { | 62 class MEDIA_EXPORT VideoDecoderConfig { |
60 public: | 63 public: |
61 // Constructs an uninitialized object. Clients should call Initialize() with | 64 // Constructs an uninitialized object. Clients should call Initialize() with |
62 // appropriate values before using. | 65 // appropriate values before using. |
63 VideoDecoderConfig(); | 66 VideoDecoderConfig(); |
64 | 67 |
65 // Constructs an initialized object. It is acceptable to pass in NULL for | 68 // Constructs an initialized object. It is acceptable to pass in NULL for |
66 // |extra_data|, otherwise the memory is copied. | 69 // |extra_data|, otherwise the memory is copied. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 | 155 |
153 scoped_array<uint8> extra_data_; | 156 scoped_array<uint8> extra_data_; |
154 size_t extra_data_size_; | 157 size_t extra_data_size_; |
155 | 158 |
156 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig); | 159 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig); |
157 }; | 160 }; |
158 | 161 |
159 } // namespace media | 162 } // namespace media |
160 | 163 |
161 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 164 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
OLD | NEW |