Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: media/base/video_decoder_config.h

Issue 11578046: Revert 174311 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/media_switches.cc ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 enum VideoCodec { 19 enum VideoCodec {
20 // These values are histogrammed over time; do not change their ordinal 20 // These values are histogrammed over time; do not change their ordinal
21 // values. When deleting a codec replace it with a dummy value; when adding a 21 // values. When deleting a codec replace it with a dummy value; when adding a
22 // codec, do so at the bottom (and update kVideoCodecMax). 22 // codec, do so at the bottom (and update kVideoCodecMax).
23 kUnknownVideoCodec = 0, 23 kUnknownVideoCodec = 0,
24 kCodecH264, 24 kCodecH264,
25 kCodecVC1, 25 kCodecVC1,
26 kCodecMPEG2, 26 kCodecMPEG2,
27 kCodecMPEG4, 27 kCodecMPEG4,
28 kCodecTheora, 28 kCodecTheora,
29 kCodecVP8, 29 kCodecVP8,
30 kCodecVP9,
31 // DO NOT ADD RANDOM VIDEO CODECS! 30 // DO NOT ADD RANDOM VIDEO CODECS!
32 // 31 //
33 // The only acceptable time to add a new codec is if there is production code 32 // The only acceptable time to add a new codec is if there is production code
34 // that uses said codec in the same CL. 33 // that uses said codec in the same CL.
35 34
36 kVideoCodecMax = kCodecVP9 // Must equal the last "real" codec above. 35 kVideoCodecMax = kCodecVP8 // Must equal the last "real" codec above.
37 }; 36 };
38 37
39 // Video stream profile. This *must* match PP_VideoDecoder_Profile. 38 // Video stream profile. This *must* match PP_VideoDecoder_Profile.
40 // (enforced in webkit/plugins/ppapi/ppb_video_decoder_impl.cc) 39 // (enforced in webkit/plugins/ppapi/ppb_video_decoder_impl.cc)
41 enum VideoCodecProfile { 40 enum VideoCodecProfile {
42 // Keep the values in this enum unique, as they imply format (h.264 vs. VP8, 41 // Keep the values in this enum unique, as they imply format (h.264 vs. VP8,
43 // for example), and keep the values for a particular format grouped 42 // for example), and keep the values for a particular format grouped
44 // together for clarity. 43 // together for clarity.
45 VIDEO_CODEC_PROFILE_UNKNOWN = -1, 44 VIDEO_CODEC_PROFILE_UNKNOWN = -1,
46 H264PROFILE_MIN = 0, 45 H264PROFILE_MIN = 0,
47 H264PROFILE_BASELINE = H264PROFILE_MIN, 46 H264PROFILE_BASELINE = H264PROFILE_MIN,
48 H264PROFILE_MAIN = 1, 47 H264PROFILE_MAIN = 1,
49 H264PROFILE_EXTENDED = 2, 48 H264PROFILE_EXTENDED = 2,
50 H264PROFILE_HIGH = 3, 49 H264PROFILE_HIGH = 3,
51 H264PROFILE_HIGH10PROFILE = 4, 50 H264PROFILE_HIGH10PROFILE = 4,
52 H264PROFILE_HIGH422PROFILE = 5, 51 H264PROFILE_HIGH422PROFILE = 5,
53 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, 52 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
54 H264PROFILE_SCALABLEBASELINE = 7, 53 H264PROFILE_SCALABLEBASELINE = 7,
55 H264PROFILE_SCALABLEHIGH = 8, 54 H264PROFILE_SCALABLEHIGH = 8,
56 H264PROFILE_STEREOHIGH = 9, 55 H264PROFILE_STEREOHIGH = 9,
57 H264PROFILE_MULTIVIEWHIGH = 10, 56 H264PROFILE_MULTIVIEWHIGH = 10,
58 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, 57 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH,
59 VP8PROFILE_MIN = 11, 58 VP8PROFILE_MIN = 11,
60 VP8PROFILE_MAIN = VP8PROFILE_MIN, 59 VP8PROFILE_MAIN = VP8PROFILE_MIN,
61 VP8PROFILE_MAX = VP8PROFILE_MAIN, 60 VP8PROFILE_MAX = VP8PROFILE_MAIN,
62 VP9PROFILE_MIN = 12, 61 VIDEO_CODEC_PROFILE_MAX = VP8PROFILE_MAX,
63 VP9PROFILE_MAIN = VP9PROFILE_MIN,
64 VP9PROFILE_MAX = VP9PROFILE_MAIN,
65 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX,
66 }; 62 };
67 63
68 class MEDIA_EXPORT VideoDecoderConfig { 64 class MEDIA_EXPORT VideoDecoderConfig {
69 public: 65 public:
70 // Constructs an uninitialized object. Clients should call Initialize() with 66 // Constructs an uninitialized object. Clients should call Initialize() with
71 // appropriate values before using. 67 // appropriate values before using.
72 VideoDecoderConfig(); 68 VideoDecoderConfig();
73 69
74 // Constructs an initialized object. It is acceptable to pass in NULL for 70 // Constructs an initialized object. It is acceptable to pass in NULL for
75 // |extra_data|, otherwise the memory is copied. 71 // |extra_data|, otherwise the memory is copied.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 size_t extra_data_size_; 147 size_t extra_data_size_;
152 148
153 bool is_encrypted_; 149 bool is_encrypted_;
154 150
155 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig); 151 DISALLOW_COPY_AND_ASSIGN(VideoDecoderConfig);
156 }; 152 };
157 153
158 } // namespace media 154 } // namespace media
159 155
160 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 156 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698