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

Issue 11316045: Add a libvpx video decoder to ClearKeyCdm and move the fake video decoder to its own class. (Closed)

Created:
8 years, 1 month ago by Tom Finegan
Modified:
8 years ago
Visibility:
Public.

Description

Add a libvpx video decoder to ClearKeyCdm and move the fake video decoder to its own class. Add libvpx support behind the GYP flag use_libvpx. Add GYP flag for control of fake video decoder support. Add CdmVideoDecoder interface class, and use it for interaction with FakeCdmVideoDecoder, FFmpegCdmVideoDecoder, and LibvpxVideoDecoder in ClearKeyCdm. Remove video decoder ifdefs from ClearKeyCdm, and handle the gritty details of decoder selection and initialization in cdm_video_decoder. TEST=EME video decoding via ExternalClearKey continues to work. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171183

Patch Set 1 #

Total comments: 3

Patch Set 2 : Clean up, and deal with some of the preprocessor evil in ClearKeyCdm. #

Total comments: 40

Patch Set 3 : Address comments. #

Total comments: 11

Patch Set 4 : Address comments. #

Total comments: 9

Patch Set 5 : Address comments on addressed comments... #

Patch Set 6 : Rebase, fix incorrect DCHECK and fix include order. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+616 lines, -109 lines) Patch
M webkit/media/crypto/ppapi/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/cdm_video_decoder.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/cdm_video_decoder.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/clear_key_cdm.h View 1 3 chunks +6 lines, -21 lines 0 comments Download
M webkit/media/crypto/ppapi/clear_key_cdm.cc View 1 2 3 4 5 4 chunks +12 lines, -73 lines 0 comments Download
A webkit/media/crypto/ppapi/fake_cdm_video_decoder.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/fake_cdm_video_decoder.cc View 1 1 chunk +90 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.h View 1 2 3 2 chunks +13 lines, -14 lines 0 comments Download
A webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc View 1 2 3 4 5 1 chunk +267 lines, -0 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 3 4 4 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Tom Finegan
Behold, an ffmpeg video decoder class that also uses libvpx. Tis a foul thing, but ...
8 years, 1 month ago (2012-11-16 10:29:54 UTC) #1
xhwang
Great! Thanks a lot! We'll use this to test the performance. At the same time, ...
8 years, 1 month ago (2012-11-16 17:33:02 UTC) #2
Tom Finegan
https://codereview.chromium.org/11316045/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc File webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc (right): https://codereview.chromium.org/11316045/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc#newcode37 webkit/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc:37: // against does, so maybe it's of some use... ...
8 years, 1 month ago (2012-11-16 19:36:51 UTC) #3
Tom Finegan
Cleaned up, and took a stab at fixing some of the ifdef hell in ClearKeyCdm ...
8 years, 1 month ago (2012-11-16 23:56:11 UTC) #4
ddorwin
Thanks. General comments on structure and filenames (before we start reviewing files whose name may ...
8 years, 1 month ago (2012-11-17 00:09:08 UTC) #5
Tom Finegan
Discussion in reply to comments... https://codereview.chromium.org/11316045/diff/9001/webkit/media/webkit_media.gypi File webkit/media/webkit_media.gypi (right): https://codereview.chromium.org/11316045/diff/9001/webkit/media/webkit_media.gypi#newcode1 webkit/media/webkit_media.gypi:1: # Copyright (c) 2012 ...
8 years, 1 month ago (2012-11-17 00:25:46 UTC) #6
ddorwin
I did not review libvpx_cdm_video_decoder.cc in depth. https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h File webkit/media/crypto/ppapi/cdm_video_decoder.h (right): https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h#newcode9 webkit/media/crypto/ppapi/cdm_video_decoder.h:9: #include "base/compiler_specific.h" ...
8 years, 1 month ago (2012-11-17 02:56:22 UTC) #7
Tom Finegan
PTAL, thanks! https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h File webkit/media/crypto/ppapi/cdm_video_decoder.h (right): https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h#newcode9 webkit/media/crypto/ppapi/cdm_video_decoder.h:9: #include "base/compiler_specific.h" On 2012/11/17 02:56:22, ddorwin wrote: ...
8 years, 1 month ago (2012-11-17 04:35:05 UTC) #8
xhwang
Didn't review the whole CL. Have an idea to use getenv() instead of #if defined() ...
8 years, 1 month ago (2012-11-20 06:46:20 UTC) #9
Tom Finegan
PTAL, comments on xhwang's comments, and needs LGTMs if things are ok as they are. ...
8 years ago (2012-12-03 23:48:55 UTC) #10
xhwang
Response to the comments only. I'll review the rest of the CL later. https://codereview.chromium.org/11316045/diff/4002/webkit/media/crypto/ppapi/cdm_video_decoder.cc File ...
8 years ago (2012-12-04 01:31:03 UTC) #11
ddorwin
Almost there. Comments in PS2 and PS3. https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h File webkit/media/crypto/ppapi/cdm_video_decoder.h (right): https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h#newcode13 webkit/media/crypto/ppapi/cdm_video_decoder.h:13: namespace webkit_media ...
8 years ago (2012-12-04 04:22:36 UTC) #12
Tom Finegan
PTAL... I sense another round of edits coming. :( https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h File webkit/media/crypto/ppapi/cdm_video_decoder.h (right): https://codereview.chromium.org/11316045/diff/9001/webkit/media/crypto/ppapi/cdm_video_decoder.h#newcode13 webkit/media/crypto/ppapi/cdm_video_decoder.h:13: ...
8 years ago (2012-12-04 20:59:40 UTC) #13
ddorwin
Very close! Question for xhwang. https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc File webkit/media/crypto/ppapi/clear_key_cdm.cc (right): https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc#newcode358 webkit/media/crypto/ppapi/clear_key_cdm.cc:358: if (video_decoder_ && video_decoder_->is_initialized()) ...
8 years ago (2012-12-04 22:38:14 UTC) #14
xhwang
https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc File webkit/media/crypto/ppapi/clear_key_cdm.cc (right): https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc#newcode358 webkit/media/crypto/ppapi/clear_key_cdm.cc:358: if (video_decoder_ && video_decoder_->is_initialized()) On 2012/12/04 22:38:15, ddorwin wrote: ...
8 years ago (2012-12-04 23:07:46 UTC) #15
Tom Finegan
I can haz lgtm? https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc File webkit/media/crypto/ppapi/clear_key_cdm.cc (right): https://codereview.chromium.org/11316045/diff/19001/webkit/media/crypto/ppapi/clear_key_cdm.cc#newcode358 webkit/media/crypto/ppapi/clear_key_cdm.cc:358: if (video_decoder_ && video_decoder_->is_initialized()) On ...
8 years ago (2012-12-04 23:17:39 UTC) #16
ddorwin
lgtm
8 years ago (2012-12-04 23:21:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/11316045/27001
8 years ago (2012-12-05 03:06:43 UTC) #18
commit-bot: I haz the power
8 years ago (2012-12-05 06:17:15 UTC) #19
Message was sent while issue was closed.
Change committed as 171183

Powered by Google App Engine
This is Rietveld 408576698