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

Side by Side Diff: webkit/media/crypto/ppapi/content_decryption_module.h

Issue 10899021: Add CDM video decoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more comments. Created 8 years, 2 months 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
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 WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_
7 7
8 #if defined(_MSC_VER) 8 #if defined(_MSC_VER)
9 typedef unsigned char uint8_t; 9 typedef unsigned char uint8_t;
10 typedef unsigned int uint32_t; 10 typedef unsigned int uint32_t;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 enum VideoCodecProfile { 134 enum VideoCodecProfile {
135 kUnknownVideoCodecProfile = 0, 135 kUnknownVideoCodecProfile = 0,
136 kVp8ProfileMain 136 kVp8ProfileMain
137 }; 137 };
138 138
139 VideoDecoderConfig() 139 VideoDecoderConfig()
140 : codec(kUnknownVideoCodec), 140 : codec(kUnknownVideoCodec),
141 profile(kUnknownVideoCodecProfile), 141 profile(kUnknownVideoCodecProfile),
142 format(kUnknownVideoFormat), 142 format(kUnknownVideoFormat),
143 extra_data(NULL), 143 extra_data(NULL),
144 extra_data_size() {} 144 extra_data_size(0) {}
145 145
146 VideoCodec codec; 146 VideoCodec codec;
147 VideoCodecProfile profile; 147 VideoCodecProfile profile;
148 VideoFormat format; 148 VideoFormat format;
149 149
150 // Width and height of video frame immediately post-decode. Not all pixels 150 // Width and height of video frame immediately post-decode. Not all pixels
151 // in this region are valid. 151 // in this region are valid.
152 Size coded_size; 152 Size coded_size;
153 153
154 // Optional byte data required to initialize video decoders, such as H.264 154 // Optional byte data required to initialize video decoders, such as H.264
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 virtual int64_t timestamp() const = 0; 375 virtual int64_t timestamp() const = 0;
376 376
377 protected: 377 protected:
378 VideoFrame() {} 378 VideoFrame() {}
379 virtual ~VideoFrame() {} 379 virtual ~VideoFrame() {}
380 }; 380 };
381 381
382 } // namespace cdm 382 } // namespace cdm
383 383
384 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ 384 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698