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

Side by Side Diff: webkit/media/crypto/ppapi/clear_key_cdm.cc

Issue 10900007: Add video decoding support in the CDM interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace uint8 with uint8_t. Created 8 years, 3 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 #include "webkit/media/crypto/ppapi/clear_key_cdm.h" 5 #include "webkit/media/crypto/ppapi/clear_key_cdm.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 return cdm::kErrorNoKey; 209 return cdm::kErrorNoKey;
210 210
211 DCHECK(buffer); 211 DCHECK(buffer);
212 int data_size = buffer->GetDataSize(); 212 int data_size = buffer->GetDataSize();
213 decrypted_buffer->data = AllocateAndCopy(buffer->GetData(), data_size); 213 decrypted_buffer->data = AllocateAndCopy(buffer->GetData(), data_size);
214 decrypted_buffer->data_size = data_size; 214 decrypted_buffer->data_size = data_size;
215 decrypted_buffer->timestamp = buffer->GetTimestamp().InMicroseconds(); 215 decrypted_buffer->timestamp = buffer->GetTimestamp().InMicroseconds();
216 return cdm::kSuccess; 216 return cdm::kSuccess;
217 } 217 }
218 218
219 cdm::Status ClearKeyCdm::InitializeVideoDecoder(
220 const cdm::VideoDeocderConfig& video_decoder_config) {
221 return cdm::kErrorUnknown;
scherkus (not reviewing) 2012/09/01 12:33:08 add NOTIMPLEMENTED() so we get some logging
xhwang 2012/09/01 13:05:24 Done.
222 }
223
224 cdm::Status ClearKeyCdm::DecryptAndDecodeVideo(
225 const cdm::InputBuffer& encrypted_buffer,
226 cdm::VideoFrame* video_frame) {
227 return cdm::kErrorUnknown;
228 }
229
230 cdm::Status ClearKeyCdm::ResetVideoDecoder() {
231 return cdm::kErrorUnknown;
232 }
233
234 cdm::Status ClearKeyCdm::StopVideoDecoder() {
235 return cdm::kErrorUnknown;
236 }
237
219 } // namespace webkit_media 238 } // namespace webkit_media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698