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

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: Comments addressed. 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 enum VideoCodecProfile { 159 enum VideoCodecProfile {
160 kUnknownVideoCodecProfile = 0, 160 kUnknownVideoCodecProfile = 0,
161 kVp8ProfileMain 161 kVp8ProfileMain
162 }; 162 };
163 163
164 VideoDecoderConfig() 164 VideoDecoderConfig()
165 : codec(kUnknownVideoCodec), 165 : codec(kUnknownVideoCodec),
166 profile(kUnknownVideoCodecProfile), 166 profile(kUnknownVideoCodecProfile),
167 format(kUnknownVideoFormat), 167 format(kUnknownVideoFormat),
168 extra_data(NULL), 168 extra_data(NULL),
169 extra_data_size() {} 169 extra_data_size(0) {}
170 170
171 VideoCodec codec; 171 VideoCodec codec;
172 VideoCodecProfile profile; 172 VideoCodecProfile profile;
173 VideoFormat format; 173 VideoFormat format;
174 174
175 // Width and height of video frame immediately post-decode. Not all pixels 175 // Width and height of video frame immediately post-decode. Not all pixels
176 // in this region are valid. 176 // in this region are valid.
177 Size coded_size; 177 Size coded_size;
178 178
179 // Optional byte data required to initialize video decoders, such as H.264 179 // Optional byte data required to initialize video decoders, such as H.264
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 virtual int64_t timestamp() const = 0; 441 virtual int64_t timestamp() const = 0;
442 442
443 protected: 443 protected:
444 VideoFrame() {} 444 VideoFrame() {}
445 virtual ~VideoFrame() {} 445 virtual ~VideoFrame() {}
446 }; 446 };
447 447
448 } // namespace cdm 448 } // namespace cdm
449 449
450 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ 450 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_
OLDNEW
« no previous file with comments | « webkit/media/crypto/ppapi/clear_key_cdm.cc ('k') | webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698