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

Issue 1422643002: Pass DecryptConfig parameters over IPC and use it in AVDA. (Closed)

Created:
5 years, 2 months ago by Tima Vaisburd
Modified:
5 years, 1 month ago
CC:
avayvod+watch_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mcasas+watch_chromium.org, mlamouri+watch-media_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass DecryptConfig parameters over IPC and use it in AVDA. This CL expands the BitstreamBuffer to pass the DecryptConfig parameters (key ID, initialization vactor and the subsamples lengths) to the Android Video Decoder Accelerator (AVDA) and uses them by calling MediaCodec::QueueSecureInputBuffer() if the frames are encrypted. BUG=545091 Committed: https://crrev.com/47fb8a4962f80074e50608ff2d1cf1cf5bc7552d Cr-Commit-Position: refs/heads/master@{#356438}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebase only #

Total comments: 11

Patch Set 4 : Addressed comments #

Patch Set 5 : Added missing license to bitstream_buffer.cc #

Patch Set 6 : Rebased #

Patch Set 7 : Made media::BitstreamBuffer exported #

Patch Set 8 : Rebase only #

Patch Set 9 : Removed MediaCodec.CodecException that was added only at level 21 (Android L) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -50 lines) Patch
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 4 chunks +18 lines, -5 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 chunks +40 lines, -12 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.h View 2 chunks +3 lines, -4 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 2 chunks +14 lines, -8 lines 0 comments Download
M content/common/media/media_player_messages_android.h View 1 chunk +0 lines, -5 lines 0 comments Download
M media/base/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M media/base/bitstream_buffer.h View 1 2 3 4 5 6 3 chunks +23 lines, -11 lines 0 comments Download
A media/base/bitstream_buffer.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M media/base/decoder_buffer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/decrypt_config.h View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M media/base/decrypt_config.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
Tima Vaisburd
Please take a look
5 years, 2 months ago (2015-10-21 23:04:28 UTC) #2
xhwang
looking good with a few nits https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h File media/base/bitstream_buffer.h (right): https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h#newcode29 media/base/bitstream_buffer.h:29: void SetDecryptParams(const DecryptConfig& ...
5 years, 2 months ago (2015-10-22 06:13:51 UTC) #3
liberato (no reviews please)
lgtm
5 years, 2 months ago (2015-10-22 14:49:33 UTC) #4
Tima Vaisburd
https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h File media/base/bitstream_buffer.h (right): https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h#newcode60 media/base/bitstream_buffer.h:60: std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes On 2015/10/22 06:13:51, xhwang ...
5 years, 2 months ago (2015-10-22 17:15:45 UTC) #5
xhwang
https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h File media/base/bitstream_buffer.h (right): https://chromiumcodereview.appspot.com/1422643002/diff/1/media/base/bitstream_buffer.h#newcode60 media/base/bitstream_buffer.h:60: std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes On 2015/10/22 17:15:45, Tima ...
5 years, 2 months ago (2015-10-22 18:11:25 UTC) #6
Tima Vaisburd
https://codereview.chromium.org/1422643002/diff/1/media/base/bitstream_buffer.h File media/base/bitstream_buffer.h (right): https://codereview.chromium.org/1422643002/diff/1/media/base/bitstream_buffer.h#newcode29 media/base/bitstream_buffer.h:29: void SetDecryptParams(const DecryptConfig& decrypt_config); On 2015/10/22 06:13:51, xhwang wrote: ...
5 years, 2 months ago (2015-10-22 21:57:26 UTC) #7
xhwang
Please s/in in/it in/ in the CL title. Otherwise LGTM!
5 years, 2 months ago (2015-10-22 22:01:31 UTC) #8
Tima Vaisburd
+sievers@ as a content/ owner. Daniel, could you, please, take a look?
5 years, 2 months ago (2015-10-22 22:24:56 UTC) #11
Tima Vaisburd
Adding dcheng@ as a content/common/gpu messages owner. Daniel, could you please review this CL?
5 years, 2 months ago (2015-10-22 22:29:23 UTC) #13
watk
I'm a drive by spellchecker. Commit message has typos: s/ADVA/AVDA/ twice s/vactor/vector s/videi/video https://codereview.chromium.org/1422643002/diff/40001/content/common/gpu/media/android_video_decode_accelerator.cc File ...
5 years, 2 months ago (2015-10-22 22:49:26 UTC) #15
dcheng
https://codereview.chromium.org/1422643002/diff/40001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/1422643002/diff/40001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode213 content/common/gpu/media/android_video_decode_accelerator.cc:213: status = media_codec_->QueueSecureInputBuffer( Why doesn't this function just take ...
5 years, 2 months ago (2015-10-23 00:44:47 UTC) #16
Tima Vaisburd
Spelling in the CL description is fixed. https://codereview.chromium.org/1422643002/diff/40001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/1422643002/diff/40001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode213 content/common/gpu/media/android_video_decode_accelerator.cc:213: status = ...
5 years, 2 months ago (2015-10-23 18:51:41 UTC) #18
Tima Vaisburd
Daniel, could you please take another look?
5 years, 2 months ago (2015-10-23 23:01:32 UTC) #19
dcheng
lgtm
5 years, 2 months ago (2015-10-24 00:38:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422643002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422643002/80001
5 years, 2 months ago (2015-10-24 00:45:45 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/112444)
5 years, 2 months ago (2015-10-24 00:55:36 UTC) #25
no sievers
content lgtm
5 years, 1 month ago (2015-10-26 17:52:28 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422643002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422643002/120001
5 years, 1 month ago (2015-10-27 01:20:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/87242)
5 years, 1 month ago (2015-10-27 05:22:27 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422643002/80002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422643002/80002
5 years, 1 month ago (2015-10-27 22:11:26 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:80002)
5 years, 1 month ago (2015-10-27 23:45:05 UTC) #35
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 23:46:58 UTC) #36
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/47fb8a4962f80074e50608ff2d1cf1cf5bc7552d
Cr-Commit-Position: refs/heads/master@{#356438}

Powered by Google App Engine
This is Rietveld 408576698