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

Issue 1074383002: Introduce VideoConfig/AudioConfig class for CMA backend (Closed)

Created:
5 years, 8 months ago by erickung1
Modified:
5 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, lcwu+watch_chromium.org, gunsch+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce VideoConfig/AudioConfig class for CMA backend 1. Replace media::VideoDecoderConfig/media::AudioDecoderConfig by chromecast::media::VideoConfig/chromecast::media::AudioConfig 2. Create DecoderConfigAdapter class to do the class coversion 3. SetConfig(..) CMA interface to use new class to pass data to CMA backend BUG=476126 Committed: https://crrev.com/548865f764227f0755536921d2533f7dcc3de6ae Cr-Commit-Position: refs/heads/master@{#328611}

Patch Set 1 #

Total comments: 12

Patch Set 2 : single DecoderConfig structure for both Audio and Video #

Total comments: 16

Patch Set 3 : Split the strcutre into {Audio|Video}Config #

Total comments: 19

Patch Set 4 : Rebase and change code based on comment #

Patch Set 5 : Change NULL to nullptr #

Total comments: 2

Patch Set 6 : Remove decoder_config.cc #

Total comments: 9

Patch Set 7 : #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : Util function name change #

Total comments: 3

Patch Set 10 : Add TODO comments and fix unit test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -47 lines) Patch
M chromecast/chromecast.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/backend/audio_pipeline_device.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -17 lines 0 comments Download
M chromecast/media/cma/backend/media_pipeline_device_fake.cc View 1 2 3 4 5 8 chunks +26 lines, -16 lines 0 comments Download
M chromecast/media/cma/backend/video_pipeline_device.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
A chromecast/media/cma/base/decoder_config_adapter.h View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
A chromecast/media/cma/base/decoder_config_adapter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +126 lines, -0 lines 1 comment Download
M chromecast/media/cma/pipeline/audio_pipeline_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chromecast/media/cma/pipeline/video_pipeline_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chromecast/media/media.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chromecast/public/media/decoder_config.h View 1 2 3 4 5 6 7 8 9 1 chunk +157 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (5 generated)
erickung1
5 years, 8 months ago (2015-04-10 23:08:13 UTC) #2
servolk
On 2015/04/10 23:08:13, erickung1 wrote: I understand that we want to minimize dependencies for CMA ...
5 years, 8 months ago (2015-04-13 22:30:08 UTC) #4
gunsch
Disagreed with Sergey: we shouldn't necessarily need to keep this in sync with the Chromium ...
5 years, 8 months ago (2015-04-13 22:31:30 UTC) #5
erickung1
On 2015/04/13 22:31:30, gunsch wrote: > Disagreed with Sergey: we shouldn't necessarily need to keep ...
5 years, 8 months ago (2015-04-13 22:46:32 UTC) #6
servolk
On 2015/04/13 22:46:32, erickung1 wrote: > On 2015/04/13 22:31:30, gunsch wrote: > > Disagreed with ...
5 years, 8 months ago (2015-04-13 23:09:09 UTC) #7
gunsch
Callback can/should be replaced with an interface method, e.g. class VideoClient { virtual void OnNaturalSizeChanged(const ...
5 years, 8 months ago (2015-04-13 23:42:14 UTC) #8
gunsch
I left a few comments on the AudioConfig header, but they apply to the entire ...
5 years, 8 months ago (2015-04-13 23:46:20 UTC) #9
lcwu1
https://codereview.chromium.org/1074383002/diff/1/chromecast/media/cma/base/decoder_config_adapter.cc File chromecast/media/cma/base/decoder_config_adapter.cc (right): https://codereview.chromium.org/1074383002/diff/1/chromecast/media/cma/base/decoder_config_adapter.cc#newcode23 chromecast/media/cma/base/decoder_config_adapter.cc:23: static_cast<AudioConfig::Codec>(config.codec()), It's actually dangerous doing this. I am not ...
5 years, 8 months ago (2015-04-13 23:55:42 UTC) #10
erickung1
https://codereview.chromium.org/1074383002/diff/1/chromecast/media/cma/base/decoder_config_adapter.cc File chromecast/media/cma/base/decoder_config_adapter.cc (right): https://codereview.chromium.org/1074383002/diff/1/chromecast/media/cma/base/decoder_config_adapter.cc#newcode23 chromecast/media/cma/base/decoder_config_adapter.cc:23: static_cast<AudioConfig::Codec>(config.codec()), On 2015/04/13 23:55:42, lcwu1 wrote: > It's actually ...
5 years, 8 months ago (2015-04-15 22:13:19 UTC) #11
gunsch
https://codereview.chromium.org/1074383002/diff/20001/chromecast/DEPS File chromecast/DEPS (right): https://codereview.chromium.org/1074383002/diff/20001/chromecast/DEPS#newcode8 chromecast/DEPS:8: "+chromecast/public/media", just add "+chromecast/public", any of our code should ...
5 years, 8 months ago (2015-04-17 01:38:52 UTC) #12
gunsch
https://codereview.chromium.org/1074383002/diff/20001/chromecast/media/cma/base/decoder_config_adapter.cc File chromecast/media/cma/base/decoder_config_adapter.cc (right): https://codereview.chromium.org/1074383002/diff/20001/chromecast/media/cma/base/decoder_config_adapter.cc#newcode100 chromecast/media/cma/base/decoder_config_adapter.cc:100: return decoder_config; I wonder if this would be an ...
5 years, 8 months ago (2015-04-17 02:21:26 UTC) #13
erickung1
This CL is to split the decoder config into two AudioConfig and VideoConfig https://codereview.chromium.org/1074383002/diff/20001/chromecast/DEPS File ...
5 years, 7 months ago (2015-04-29 08:52:20 UTC) #14
gunsch
You should rebase---I think presubmit will enforce some new things that your CL currently violates. ...
5 years, 7 months ago (2015-04-29 17:42:52 UTC) #15
erickung1
https://codereview.chromium.org/1074383002/diff/20001/chromecast/DEPS File chromecast/DEPS (right): https://codereview.chromium.org/1074383002/diff/20001/chromecast/DEPS#newcode8 chromecast/DEPS:8: "+chromecast/public/media", On 2015/04/29 17:42:52, gunsch wrote: > On 2015/04/29 ...
5 years, 7 months ago (2015-04-29 20:49:16 UTC) #16
gunsch
couple more nits. still would like to have the conversation about whether we need the ...
5 years, 7 months ago (2015-05-01 05:32:01 UTC) #17
gunsch
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode84 chromecast/public/media/decoder_config.h:84: is_encrypted(false) {} Hmm, do we need these ctors? Would ...
5 years, 7 months ago (2015-05-05 16:54:23 UTC) #18
erickung1
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode84 chromecast/public/media/decoder_config.h:84: is_encrypted(false) {} On 2015/05/05 16:54:22, gunsch wrote: > Hmm, ...
5 years, 7 months ago (2015-05-05 17:23:45 UTC) #19
gunsch
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode129 chromecast/public/media/decoder_config.h:129: inline bool IsValidConfig(const AudioConfig& config) { On 2015/05/05 17:23:44, ...
5 years, 7 months ago (2015-05-05 17:30:35 UTC) #20
erickung1
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode129 chromecast/public/media/decoder_config.h:129: inline bool IsValidConfig(const AudioConfig& config) { On 2015/05/05 17:30:35, ...
5 years, 7 months ago (2015-05-05 20:18:06 UTC) #21
lcwu1
https://codereview.chromium.org/1074383002/diff/140001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc File chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc (left): https://codereview.chromium.org/1074383002/diff/140001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc#oldcode189 chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc:189: gfx::Size natural_size(320, 240); I assume the size info (as ...
5 years, 7 months ago (2015-05-05 23:46:23 UTC) #22
erickung1
https://codereview.chromium.org/1074383002/diff/140001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc File chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc (left): https://codereview.chromium.org/1074383002/diff/140001/chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc#oldcode189 chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc:189: gfx::Size natural_size(320, 240); On 2015/05/05 23:46:22, lcwu1 wrote: > ...
5 years, 7 months ago (2015-05-06 01:17:11 UTC) #23
lcwu1
lgtm
5 years, 7 months ago (2015-05-06 01:18:28 UTC) #24
gunsch-google
lgtm % couple small things Btw, please submit this upstream at the same time after ...
5 years, 7 months ago (2015-05-06 01:32:42 UTC) #26
gunsch
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode98 chromecast/public/media/decoder_config.h:98: // Size of extra data in bytes. Whoa, I ...
5 years, 7 months ago (2015-05-06 02:52:35 UTC) #27
gunsch
https://codereview.chromium.org/1074383002/diff/180001/chromecast/media/cma/base/decoder_config_adapter.cc File chromecast/media/cma/base/decoder_config_adapter.cc (right): https://codereview.chromium.org/1074383002/diff/180001/chromecast/media/cma/base/decoder_config_adapter.cc#newcode30 chromecast/media/cma/base/decoder_config_adapter.cc:30: LOG(ERROR) << "Unsupported audio codec " << audio_codec; do ...
5 years, 7 months ago (2015-05-06 02:56:45 UTC) #28
erickung1
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode98 chromecast/public/media/decoder_config.h:98: // Size of extra data in bytes. On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 03:01:33 UTC) #29
gunsch
https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h File chromecast/public/media/decoder_config.h (right): https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode98 chromecast/public/media/decoder_config.h:98: // Size of extra data in bytes. On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 03:08:44 UTC) #30
lcwu1
On 2015/05/06 03:08:44, gunsch wrote: > https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h > File chromecast/public/media/decoder_config.h (right): > > https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h#newcode98 > ...
5 years, 7 months ago (2015-05-06 03:57:33 UTC) #31
lcwu1
On 2015/05/06 03:57:33, lcwu1 wrote: > On 2015/05/06 03:08:44, gunsch wrote: > > > https://codereview.chromium.org/1074383002/diff/100001/chromecast/public/media/decoder_config.h ...
5 years, 7 months ago (2015-05-06 04:17:46 UTC) #32
erickung1
Couple thought which may not be covered in this CL 1. Current OEM implementation shouldn't ...
5 years, 7 months ago (2015-05-06 05:08:14 UTC) #33
gunsch
On 2015/05/06 04:17:46, lcwu1 wrote: > On 2015/05/06 03:57:33, lcwu1 wrote: > > On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 05:24:29 UTC) #34
lcwu1
On 2015/05/06 05:24:29, gunsch wrote: > On 2015/05/06 04:17:46, lcwu1 wrote: > > On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 06:01:13 UTC) #35
gunsch
SGTM. This LGTM and I'll start a thread about adjusting those conventions.
5 years, 7 months ago (2015-05-06 16:24:39 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074383002/180001
5 years, 7 months ago (2015-05-06 20:43:08 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-05-06 21:06:04 UTC) #40
commit-bot: I haz the power
5 years, 7 months ago (2015-05-06 21:07:59 UTC) #41
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/548865f764227f0755536921d2533f7dcc3de6ae
Cr-Commit-Position: refs/heads/master@{#328611}

Powered by Google App Engine
This is Rietveld 408576698