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

Issue 10910293: Add is_encrypted() in VideoDecoderConfig. (Closed)

Created:
8 years, 3 months ago by xhwang
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, Ami GONE FROM CHROMIUM
Visibility:
Public.

Description

Add is_encrypted() in VideoDecoderConfig. This is needed so that decoders can check if the video stream is encrypted or not and decide if it can support decrypting and/or decodeing the stream. BUG=141784 TEST=media_unittest, encrypted media demo. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157324

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move is_encrypted into VideoDecoderConfig. #

Total comments: 16

Patch Set 3 : Resolve comments. #

Total comments: 1

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -63 lines) Patch
M media/base/video_decoder_config.h View 1 2 5 chunks +12 lines, -1 line 0 comments Download
M media/base/video_decoder_config.cc View 1 2 7 chunks +15 lines, -4 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 22 chunks +35 lines, -29 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M media/filters/source_buffer_stream.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M media/mp4/mp4_stream_parser.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/mp4/mp4_stream_parser_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/webm/webm_stream_parser.cc View 1 2 1 chunk +25 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
xhwang
I am still debating on a few options and would like to hear your opinion. ...
8 years, 3 months ago (2012-09-14 23:22:09 UTC) #1
acolwell GONE FROM CHROMIUM
On 2012/09/14 23:22:09, xhwang wrote: > I am still debating on a few options and ...
8 years, 3 months ago (2012-09-15 00:25:24 UTC) #2
ddorwin
It might help the discussion to see [prototype] code showing how this would be used. ...
8 years, 3 months ago (2012-09-15 00:39:40 UTC) #3
ddorwin
http://codereview.chromium.org/10910293/diff/1/media/base/demuxer_stream.h File media/base/demuxer_stream.h (right): http://codereview.chromium.org/10910293/diff/1/media/base/demuxer_stream.h#newcode73 media/base/demuxer_stream.h:73: virtual bool is_encrypted() = 0; On 2012/09/15 00:39:40, ddorwin ...
8 years, 3 months ago (2012-09-15 03:12:04 UTC) #4
acolwell GONE FROM CHROMIUM
On 2012/09/15 03:12:04, ddorwin wrote: > http://codereview.chromium.org/10910293/diff/1/media/base/demuxer_stream.h > File media/base/demuxer_stream.h (right): > > http://codereview.chromium.org/10910293/diff/1/media/base/demuxer_stream.h#newcode73 > ...
8 years, 3 months ago (2012-09-15 14:38:39 UTC) #5
xhwang
On 2012/09/15 14:38:39, acolwell wrote: > On 2012/09/15 03:12:04, ddorwin wrote: > > http://codereview.chromium.org/10910293/diff/1/media/base/demuxer_stream.h > ...
8 years, 3 months ago (2012-09-15 17:09:31 UTC) #6
xhwang
As discussed, moved is_encrypted() into VideoDecoderConfig. PTAL!
8 years, 3 months ago (2012-09-16 18:23:02 UTC) #7
ddorwin
On 2012/09/15 17:09:31, xhwang wrote: > On 2012/09/15 14:38:39, acolwell wrote: > > On 2012/09/15 ...
8 years, 3 months ago (2012-09-17 04:46:43 UTC) #8
scherkus (not reviewing)
http://codereview.chromium.org/10910293/diff/8001/media/base/video_decoder_config.cc File media/base/video_decoder_config.cc (right): http://codereview.chromium.org/10910293/diff/8001/media/base/video_decoder_config.cc#newcode78 media/base/video_decoder_config.cc:78: UmaHistogramAspectRatio("Media.VideoVisibleAspectRatio", visible_rect); do we want a histogram for is_encrypted? ...
8 years, 3 months ago (2012-09-17 15:54:10 UTC) #9
ddorwin
LG for me. I'll defer to scherkus & acolwell.
8 years, 3 months ago (2012-09-17 17:10:57 UTC) #10
acolwell GONE FROM CHROMIUM
looks pretty good. Just a few comments. http://codereview.chromium.org/10910293/diff/8001/media/filters/ffmpeg_video_decoder_unittest.cc File media/filters/ffmpeg_video_decoder_unittest.cc (right): http://codereview.chromium.org/10910293/diff/8001/media/filters/ffmpeg_video_decoder_unittest.cc#newcode104 media/filters/ffmpeg_video_decoder_unittest.cc:104: config_.set_is_encrypted(true); Just ...
8 years, 3 months ago (2012-09-17 17:41:17 UTC) #11
xhwang
Comments mostly resolved. PTAL! http://codereview.chromium.org/10910293/diff/8001/media/base/video_decoder_config.cc File media/base/video_decoder_config.cc (right): http://codereview.chromium.org/10910293/diff/8001/media/base/video_decoder_config.cc#newcode78 media/base/video_decoder_config.cc:78: UmaHistogramAspectRatio("Media.VideoVisibleAspectRatio", visible_rect); On 2012/09/17 15:54:10, ...
8 years, 3 months ago (2012-09-17 19:42:25 UTC) #12
scherkus (not reviewing)
lgtm
8 years, 3 months ago (2012-09-17 21:42:59 UTC) #13
acolwell GONE FROM CHROMIUM
LGTM
8 years, 3 months ago (2012-09-17 23:07:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10910293/13004
8 years, 3 months ago (2012-09-17 23:18:21 UTC) #15
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 3 months ago (2012-09-18 03:24:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10910293/13004
8 years, 3 months ago (2012-09-18 05:27:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10910293/20002
8 years, 3 months ago (2012-09-18 05:36:13 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 09:01:15 UTC) #19
Change committed as 157324

Powered by Google App Engine
This is Rietveld 408576698