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

Issue 26956002: Plumb support for audio sample formats. (Closed)

Created:
7 years, 2 months ago by DaleCurtis
Modified:
7 years, 2 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Plumb support for audio sample formats. - Introduces a new PP_DecryptedSampleInfo structure which contains the AudioFormat for use when delivering samples. - Plumbs the structure through to ContentDecryptorDelegate. - Extends the ContentDecryptorDelegate code to handle planar data. - Cleans up FFmpegCdmAudioDecoder to remove 3 memcpy's in the common case (1 decode per packet) and 2 in the uncommon (> 1 decode per packet). BUG=169105 TEST=eme browsertests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230250

Patch Set 1 #

Total comments: 13

Patch Set 2 : Reorder. #

Total comments: 2

Patch Set 3 : const& #

Total comments: 2

Patch Set 4 : Rebase. Use CDM_2. #

Patch Set 5 : Remove unused var. Add padding. #

Patch Set 6 : Fix padding location. #

Patch Set 7 : Fix cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -149 lines) Patch
M content/renderer/pepper/content_decryptor_delegate.h View 3 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 4 5 6 8 chunks +48 lines, -14 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cdm/ppapi/cdm_adapter.cc View 1 2 3 2 chunks +33 lines, -11 lines 0 comments Download
M media/cdm/ppapi/cdm_wrapper.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M media/cdm/ppapi/clear_key_cdm.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M media/cdm/ppapi/clear_key_cdm.cc View 1 2 3 3 chunks +13 lines, -3 lines 0 comments Download
M media/cdm/ppapi/ffmpeg_cdm_audio_decoder.h View 1 2 3 3 chunks +1 line, -6 lines 0 comments Download
M media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc View 1 2 3 4 7 chunks +94 lines, -68 lines 0 comments Download
M ppapi/api/private/pp_content_decryptor.idl View 1 2 3 4 5 2 chunks +48 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_content_decryptor_private.idl View 2 chunks +6 lines, -5 lines 0 comments Download
M ppapi/c/private/pp_content_decryptor.h View 1 2 3 4 5 3 chunks +45 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_content_decryptor_private.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/cpp/private/content_decryptor_private.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_content_decryptor_private_thunk.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
DaleCurtis
dmichael: pepper stuff. xhwang: media stuff. Thanks in advance for your reviews! https://codereview.chromium.org/26956002/diff/1/ppapi/api/private/pp_content_decryptor.idl File ppapi/api/private/pp_content_decryptor.idl ...
7 years, 2 months ago (2013-10-11 01:30:53 UTC) #1
xhwang
looks pretty good, thanks! Just a few comments. https://codereview.chromium.org/26956002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/26956002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode1042 content/renderer/pepper/content_decryptor_delegate.cc:1042: int ...
7 years, 2 months ago (2013-10-11 22:45:16 UTC) #2
dmichael (off chromium)
FYI I'm expecting xhwang to do primary review since most of the audio stuff is ...
7 years, 2 months ago (2013-10-11 23:00:34 UTC) #3
DaleCurtis
https://codereview.chromium.org/26956002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/26956002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode1042 content/renderer/pepper/content_decryptor_delegate.cc:1042: int num_channel_ptrs = 1; On 2013/10/11 22:45:16, xhwang wrote: ...
7 years, 2 months ago (2013-10-12 01:51:04 UTC) #4
DaleCurtis
https://codereview.chromium.org/26956002/diff/1/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc File media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc (right): https://codereview.chromium.org/26956002/diff/1/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc#newcode159 media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc:159: serialized_audio_frames_.reserve(bytes_per_frame_ * samples_per_second_); Removed since this allocates 172kb and ...
7 years, 2 months ago (2013-10-14 19:04:45 UTC) #5
xhwang
lgtm % nit https://codereview.chromium.org/26956002/diff/9001/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc File media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc (right): https://codereview.chromium.org/26956002/diff/9001/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc#newcode106 media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc:106: const AVFrame* av_frame, use const-ref for ...
7 years, 2 months ago (2013-10-14 20:06:41 UTC) #6
DaleCurtis
https://codereview.chromium.org/26956002/diff/9001/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc File media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc (right): https://codereview.chromium.org/26956002/diff/9001/media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc#newcode106 media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc:106: const AVFrame* av_frame, On 2013/10/14 20:06:42, xhwang wrote: > ...
7 years, 2 months ago (2013-10-14 20:14:14 UTC) #7
dmichael (off chromium)
lgtm https://codereview.chromium.org/26956002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/26956002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc#newcode1069 content/renderer/pepper/content_decryptor_delegate.cc:1069: channel_ptrs[i] = cur + i * size_per_channel; optional ...
7 years, 2 months ago (2013-10-15 22:13:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/26956002/56001
7 years, 2 months ago (2013-10-22 00:39:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/26956002/326001
7 years, 2 months ago (2013-10-22 01:04:00 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-22 01:36:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/26956002/326002
7 years, 2 months ago (2013-10-22 01:45:02 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-22 02:28:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/26956002/636001
7 years, 2 months ago (2013-10-22 17:49:12 UTC) #14
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 23:19:44 UTC) #15
Message was sent while issue was closed.
Change committed as 230250

Powered by Google App Engine
This is Rietveld 408576698