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

Issue 10969028: Add video decoding methods in Decryptor and add DecryptingVideoDecoder. (Closed)

Created:
8 years, 3 months ago by xhwang
Modified:
8 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add video decoding methods in Decryptor and add DecryptingVideoDecoder. In Decryptor interface, video decoding methods are added to support CDMs that support both decryption and video decoding. A new VideoDecoder, DecryptingVideoDecoder, is added to support video decoding by Decryptors in the media pipeline. DecryptingVideoDecoder uses adapter pattern to convert a Decryptor into a VideoDecoder. In AddDefaultDecodersToCollection, add a DecryptingVideoDecoder object into the video decoder list. BUG=141784 TEST=new tests added into media_unittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160183

Patch Set 1 #

Total comments: 52

Patch Set 2 : Added unitttests and resolved comments. #

Total comments: 6

Patch Set 3 : Move DVD to filters/ and rebase. #

Total comments: 81

Patch Set 4 : resolve comments #

Total comments: 33

Patch Set 5 : resolve ddorwin's comments and have a question about force posting task! #

Total comments: 41

Patch Set 6 : resolve comments and fix stop-during-pending-init. #

Total comments: 4

Patch Set 7 : nits and rebase #

Patch Set 8 : reorder methods in the unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1153 lines, -27 lines) Patch
M media/base/decryptor.h View 1 2 3 4 5 6 4 chunks +80 lines, -18 lines 0 comments Download
A + media/base/decryptor.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M media/base/filter_collection.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/base/mock_filters.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M media/base/video_decoder.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M media/crypto/aes_decryptor.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M media/crypto/aes_decryptor.cc View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
A media/filters/decrypting_video_decoder.h View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
A media/filters/decrypting_video_decoder.cc View 1 2 3 4 5 6 1 chunk +310 lines, -0 lines 0 comments Download
A media/filters/decrypting_video_decoder_unittest.cc View 1 2 3 4 5 6 7 1 chunk +499 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 2 chunks +7 lines, -4 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 1 2 2 chunks +28 lines, -0 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor.cc View 1 2 3 4 5 6 2 chunks +28 lines, -0 lines 0 comments Download
M webkit/media/filter_helpers.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
xhwang
Hello, First prototyle CL for decrypt-and-decode (D&D). It only compiles so don't bother to review ...
8 years, 3 months ago (2012-09-20 23:26:34 UTC) #1
ddorwin
Seems fine overall. See my last comment about documenting the overall design somewhere. I did ...
8 years, 3 months ago (2012-09-21 00:36:08 UTC) #2
Ami GONE FROM CHROMIUM
On Thu, Sep 20, 2012 at 4:26 PM, <xhwang@chromium.org> wrote: > In Decryptor interface, video ...
8 years, 3 months ago (2012-09-21 05:53:08 UTC) #3
xhwang
On 2012/09/21 05:53:08, Ami Fischman wrote: > On Thu, Sep 20, 2012 at 4:26 PM, ...
8 years, 3 months ago (2012-09-21 07:50:41 UTC) #4
xhwang
On 2012/09/21 07:50:41, xhwang wrote: > On 2012/09/21 05:53:08, Ami Fischman wrote: > > On ...
8 years, 3 months ago (2012-09-21 16:53:27 UTC) #5
Ami GONE FROM CHROMIUM
> > So other than having less APIs, we won't save any code. > I ...
8 years, 3 months ago (2012-09-21 17:40:47 UTC) #6
xhwang
On 2012/09/21 17:40:47, Ami Fischman wrote: > > > > So other than having less ...
8 years, 3 months ago (2012-09-21 18:01:10 UTC) #7
Ami GONE FROM CHROMIUM
I think we just have different instincts about how this will turn out. Since you're ...
8 years, 3 months ago (2012-09-21 18:29:24 UTC) #8
scherkus (not reviewing)
I do agree w/ fischman@ it looks a bit odd to embed a decoding API ...
8 years, 3 months ago (2012-09-21 18:57:56 UTC) #9
xhwang
On 2012/09/21 18:57:56, scherkus wrote: > I do agree w/ fischman@ it looks a bit ...
8 years, 3 months ago (2012-09-24 16:13:11 UTC) #10
xhwang
http://codereview.chromium.org/10969028/diff/1/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/1/media/base/decryptor.h#newcode30 media/base/decryptor.h:30: // Note that the all callbacks can be fired ...
8 years, 3 months ago (2012-09-24 16:13:18 UTC) #11
xhwang
Added unit tests and resolved ddorwin's preliminary comments. Please do a full review now. Thanks! ...
8 years, 2 months ago (2012-09-25 23:52:31 UTC) #12
xhwang
Note that I'll rebase this CL to ToT and merge with http://codereview.chromium.org/10990039/ later.
8 years, 2 months ago (2012-09-25 23:53:57 UTC) #13
ddorwin
I need to review dvd.cc and unittests, but I'll wait until we decide on the ...
8 years, 2 months ago (2012-09-26 02:34:27 UTC) #14
xhwang
On 2012/09/26 02:34:27, ddorwin wrote: > I need to review dvd.cc and unittests, but I'll ...
8 years, 2 months ago (2012-09-26 18:11:06 UTC) #15
xhwang
I updated the CL and please review!
8 years, 2 months ago (2012-09-27 21:08:45 UTC) #16
ddorwin
http://codereview.chromium.org/10969028/diff/31001/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/31001/media/base/decryptor.h#newcode95 media/base/decryptor.h:95: // Cancel scheduled decryption operations and fires any pending ...
8 years, 2 months ago (2012-09-28 17:36:39 UTC) #17
xhwang
Resolved ddrowin's comments (thanks!). PTAL again! http://codereview.chromium.org/10969028/diff/31001/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/31001/media/base/decryptor.h#newcode95 media/base/decryptor.h:95: // Cancel scheduled ...
8 years, 2 months ago (2012-09-30 19:58:50 UTC) #18
ddorwin
Still some test code to review, but I wanted to get this out sooner. http://codereview.chromium.org/10969028/diff/31001/media/filters/decrypting_video_decoder.cc ...
8 years, 2 months ago (2012-10-01 18:43:19 UTC) #19
xhwang
Hello ddorwin/scherkus, Resolve comments and have a big question about force task post. Please see ...
8 years, 2 months ago (2012-10-01 20:09:26 UTC) #20
ddorwin
Looking good, but we need to resolve a few items with scherkus. http://codereview.chromium.org/10969028/diff/45001/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc ...
8 years, 2 months ago (2012-10-02 06:10:40 UTC) #21
scherkus (not reviewing)
overall looking good http://codereview.chromium.org/10969028/diff/45001/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/45001/media/base/decryptor.h#newcode30 media/base/decryptor.h:30: // Note that the all callbacks ...
8 years, 2 months ago (2012-10-02 19:45:40 UTC) #22
xhwang
resolved comments and fix the stop-during-pending-init behavior. PTAL! http://codereview.chromium.org/10969028/diff/45001/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/45001/media/base/decryptor.h#newcode30 media/base/decryptor.h:30: // ...
8 years, 2 months ago (2012-10-03 02:15:08 UTC) #23
scherkus (not reviewing)
lgtm w/ nits let's get this in and iterate http://codereview.chromium.org/10969028/diff/61002/media/base/decryptor.h File media/base/decryptor.h (right): http://codereview.chromium.org/10969028/diff/61002/media/base/decryptor.h#newcode30 media/base/decryptor.h:30: ...
8 years, 2 months ago (2012-10-04 00:15:13 UTC) #24
ddorwin
lgtm http://codereview.chromium.org/10969028/diff/45001/media/filters/decrypting_video_decoder_unittest.cc File media/filters/decrypting_video_decoder_unittest.cc (right): http://codereview.chromium.org/10969028/diff/45001/media/filters/decrypting_video_decoder_unittest.cc#newcode380 media/filters/decrypting_video_decoder_unittest.cc:380: } On 2012/10/03 02:15:08, xhwang wrote: > On ...
8 years, 2 months ago (2012-10-04 00:57:11 UTC) #25
xhwang
http://codereview.chromium.org/10969028/diff/45001/media/filters/decrypting_video_decoder_unittest.cc File media/filters/decrypting_video_decoder_unittest.cc (right): http://codereview.chromium.org/10969028/diff/45001/media/filters/decrypting_video_decoder_unittest.cc#newcode380 media/filters/decrypting_video_decoder_unittest.cc:380: } On 2012/10/04 00:57:11, ddorwin wrote: > On 2012/10/03 ...
8 years, 2 months ago (2012-10-04 16:32:54 UTC) #26
xhwang
http://codereview.chromium.org/10969028/diff/36001/media/filters/decrypting_video_decoder_unittest.cc File media/filters/decrypting_video_decoder_unittest.cc (right): http://codereview.chromium.org/10969028/diff/36001/media/filters/decrypting_video_decoder_unittest.cc#newcode82 media/filters/decrypting_video_decoder_unittest.cc:82: On 2012/10/01 18:43:20, ddorwin wrote: > On 2012/09/30 19:58:51, ...
8 years, 2 months ago (2012-10-04 16:38:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10969028/51020
8 years, 2 months ago (2012-10-04 16:39:47 UTC) #28
commit-bot: I haz the power
8 years, 2 months ago (2012-10-04 19:02:04 UTC) #29
Change committed as 160183

Powered by Google App Engine
This is Rietveld 408576698