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

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed)

Created:
4 years, 6 months ago by dougsteed
Modified:
3 years, 7 months ago
Reviewers:
Tom Sepez, xhwang, raymes, Torne
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, lcwu+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for 'cbcs' encryption scheme in Android media. BUG=568326 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/e9081981f2fc7cff6a7eb0c01883dc724d5b02b2 Cr-Commit-Position: refs/heads/master@{#436432}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : change Android version probing #

Total comments: 1

Patch Set 7 : rebase redux #

Total comments: 10

Patch Set 8 : xhwang comments #

Patch Set 9 : rebase #

Patch Set 10 : attempt fix dryrun build failures #

Patch Set 11 : try to fix build errors on various other platforms #

Patch Set 12 : bad merge #

Patch Set 13 : rebase #

Patch Set 14 : rebase #

Patch Set 15 : rebase #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -38 lines) Patch
M content/renderer/pepper/video_decoder_shim.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +50 lines, -6 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecUtil.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +24 lines, -0 lines 1 comment Download
M media/base/android/media_codec_bridge.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M media/base/android/media_codec_loop.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/android/media_codec_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/android/mock_media_codec_bridge.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M media/base/android/mock_media_codec_bridge.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/ndk_media_codec_bridge.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/ndk_media_codec_bridge.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/encryption_scheme.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -5 lines 0 comments Download
M media/base/encryption_scheme.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -0 lines 0 comments Download
M media/base/ipc/media_param_traits.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M media/base/ipc/media_param_traits.cc View 1 2 3 4 5 6 7 8 2 chunks +69 lines, -0 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -5 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/fake_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/ipc/common/media_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/vt_video_decode_accelerator_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M media/video/video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 69 (48 generated)
dougsteed
Xiaohan: we talked a few weeks ago of the changes needed to add Cast support ...
4 years, 6 months ago (2016-06-10 16:53:48 UTC) #3
xhwang
Sorry for the delay. I'll take a look at this shortly.
4 years, 6 months ago (2016-06-13 21:48:45 UTC) #4
xhwang
I didn't look into details but the general approach looks pretty good. I left some ...
4 years, 6 months ago (2016-06-15 05:29:05 UTC) #5
dougsteed
Xiaohan: thanks for the initial look. I will be trying to get this working (almost ...
4 years, 6 months ago (2016-06-15 17:57:38 UTC) #6
dougsteed
xhwang@. PTAL. This now works with the test content, and, since Android N SDK is ...
4 years, 2 months ago (2016-10-20 17:07:36 UTC) #8
xhwang
Thanks for the headsup! It's been a while since I looked at it last time ...
4 years, 2 months ago (2016-10-20 17:33:57 UTC) #9
dougsteed
Yes, another rebase was necessary - done. The roll to Android N SDK was reverted ...
4 years, 2 months ago (2016-10-20 20:48:05 UTC) #10
xhwang
Mostly looking good, just a few questions for discussion. Please also add a Clank owner ...
4 years, 2 months ago (2016-10-20 23:52:07 UTC) #11
dougsteed
https://codereview.chromium.org/2058113002/diff/120001/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java File media/base/android/java/src/org/chromium/media/MediaCodecBridge.java (right): https://codereview.chromium.org/2058113002/diff/120001/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#newcode390 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:390: int cipherMode, int patternEncrypt, int patternSkip, long presentationTimeUs) { ...
4 years, 2 months ago (2016-10-21 17:15:05 UTC) #12
xhwang
LGTM, thanks!
4 years, 1 month ago (2016-10-25 20:55:45 UTC) #13
dougsteed
tsepez@. Please look at the IPC changes in media/base/ipc/* and media/gpu/ipc/* raymes@ please look at ...
4 years, 1 month ago (2016-11-10 18:36:26 UTC) #41
Tom Sepez
This looks OK, but two things: 1. Can you confirm that the target ipc_fuzzer_all builds ...
4 years, 1 month ago (2016-11-10 19:04:58 UTC) #42
dougsteed
On 2016/11/10 19:04:58, Tom Sepez wrote: > This looks OK, but two things: > 1. ...
4 years, 1 month ago (2016-11-10 22:54:15 UTC) #43
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-11 18:22:09 UTC) #44
raymes
pepper lgtm
4 years, 1 month ago (2016-11-14 01:08:38 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2058113002/320001
4 years ago (2016-12-05 22:03:39 UTC) #60
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years ago (2016-12-05 22:36:06 UTC) #63
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/e9081981f2fc7cff6a7eb0c01883dc724d5b02b2 Cr-Commit-Position: refs/heads/master@{#436432}
4 years ago (2016-12-05 22:38:03 UTC) #65
Torne
https://codereview.chromium.org/2058113002/diff/320001/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java File media/base/android/java/src/org/chromium/media/MediaCodecUtil.java (right): https://codereview.chromium.org/2058113002/diff/320001/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java#newcode527 media/base/android/java/src/org/chromium/media/MediaCodecUtil.java:527: return Build.VERSION.SDK_INT > Build.VERSION_CODES.N; Is this check still correct? ...
3 years, 7 months ago (2017-05-22 15:44:56 UTC) #67
dougsteed
On 2017/05/22 15:44:56, Torne wrote: > https://codereview.chromium.org/2058113002/diff/320001/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java > File media/base/android/java/src/org/chromium/media/MediaCodecUtil.java (right): > > https://codereview.chromium.org/2058113002/diff/320001/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java#newcode527 > ...
3 years, 7 months ago (2017-05-24 17:44:34 UTC) #68
Torne
3 years, 7 months ago (2017-05-25 17:00:40 UTC) #69
Message was sent while issue was closed.
On 2017/05/24 17:44:34, dougsteed wrote:
> On 2017/05/22 15:44:56, Torne wrote:
> >
>
https://codereview.chromium.org/2058113002/diff/320001/media/base/android/jav...
> > File media/base/android/java/src/org/chromium/media/MediaCodecUtil.java
> (right):
> > 
> >
>
https://codereview.chromium.org/2058113002/diff/320001/media/base/android/jav...
> > media/base/android/java/src/org/chromium/media/MediaCodecUtil.java:527:
return
> > Build.VERSION.SDK_INT > Build.VERSION_CODES.N;
> > Is this check still correct? Was this bug fixed in N MR1, or does this need
to
> > be updated to compare to N MR1?
> > 
> > I'm working on looking for suspicious SDK level checks and this showed up.
> 
> Hi. This feature required N MR1, because there was a bug in N (fixed in MR1)
> that prevented it from working.
> So the check is strictly correct, but would it be better style to change it to
> >= Build.VERSION_CODES.N_MR1 ?

Thanks for confirming this. Yes, now that the N_MR1 constant is available it'd
be clearer that this is intentional if you used >=. I realise the required SDK
probably wasn't checked in at the time, though - it's tricky to deal with
unreleased API levels consistently.

I uploaded a CL to change this here: https://codereview.chromium.org/2896303006

Powered by Google App Engine
This is Rietveld 408576698