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

Issue 7867051: Introduce AudioDecoderConfig to migrate away from GetAVStream(). (Closed)

Created:
9 years, 3 months ago by scherkus (not reviewing)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Introduce AudioDecoderConfig to migrate away from GetAVStream(). Instead add DemuxerStream::audio_decoder_config() to break FFmpegAudioDecoder's dependency on the AVCodecContext object maintained by FFmpegDemuxer. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102183

Patch Set 1 #

Patch Set 2 : forgot files #

Total comments: 22

Patch Set 3 : blam #

Total comments: 4

Patch Set 4 : samples_per_second #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -86 lines) Patch
M content/renderer/media/audio_renderer_impl_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A media/base/audio_decoder_config.h View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
A media/base/audio_decoder_config.cc View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download
M media/base/demuxer_stream.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M media/base/filters.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/base/media_log.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M media/base/pipeline_status.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/ffmpeg/ffmpeg_common.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 2 chunks +109 lines, -2 lines 0 comments Download
M media/filters/adaptive_demuxer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/adaptive_demuxer.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/audio_renderer_base.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_base_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 2 3 2 chunks +27 lines, -5 lines 0 comments Download
M media/filters/dummy_demuxer.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M media/filters/dummy_demuxer.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 3 6 chunks +29 lines, -29 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder_unittest.cc View 1 2 3 6 chunks +15 lines, -28 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 4 chunks +12 lines, -10 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine_unittest.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scherkus (not reviewing)
OK mostly looking for early feedback since this patch depends on the following: http://codereview.chromium.org/7796033/ http://codereview.chromium.org/6901135/
9 years, 3 months ago (2011-09-12 19:51:29 UTC) #1
Ami GONE FROM CHROMIUM
I like it! http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.cc File media/base/audio_decoder_config.cc (right): http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.cc#newcode22 media/base/audio_decoder_config.cc:22: CHECK(extra_data_size_ == 0 || extra_data); CHECK, ...
9 years, 3 months ago (2011-09-12 20:54:21 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.cc File media/base/audio_decoder_config.cc (right): http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.cc#newcode22 media/base/audio_decoder_config.cc:22: CHECK(extra_data_size_ == 0 || extra_data); On 2011/09/12 20:54:21, Ami ...
9 years, 3 months ago (2011-09-19 21:19:45 UTC) #3
scherkus (not reviewing)
pinging in case either of you want to perfcrastinate
9 years, 3 months ago (2011-09-20 20:08:20 UTC) #4
Ami GONE FROM CHROMIUM
Almost there. http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): http://codereview.chromium.org/7867051/diff/3001/media/base/audio_decoder_config.h#newcode46 media/base/audio_decoder_config.h:46: int sample_rate_; On 2011/09/19 21:19:45, scherkus wrote: ...
9 years, 3 months ago (2011-09-20 20:34:49 UTC) #5
scherkus (not reviewing)
changed sample_rate -> samples_per_second for both AudioDecoderConfig and AudioDecoder interface (and corresponding impls + mocks) ...
9 years, 3 months ago (2011-09-21 18:19:16 UTC) #6
Ami GONE FROM CHROMIUM
lgtm
9 years, 3 months ago (2011-09-21 18:29:25 UTC) #7
commit-bot: I haz the power
Change committed as 102183
9 years, 3 months ago (2011-09-21 22:44:08 UTC) #8
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7867051/diff/3001/media/base/filters.h File media/base/filters.h (right): http://codereview.chromium.org/7867051/diff/3001/media/base/filters.h#newcode180 media/base/filters.h:180: // Returns an |AVStream*| if supported, or NULL. On ...
9 years, 2 months ago (2011-09-29 18:16:35 UTC) #9
scherkus (not reviewing)
9 years, 2 months ago (2011-09-29 20:39:45 UTC) #10
On 2011/09/29 18:16:35, Ami Fischman wrote:
> http://codereview.chromium.org/7867051/diff/3001/media/base/filters.h
> File media/base/filters.h (right):
> 
>
http://codereview.chromium.org/7867051/diff/3001/media/base/filters.h#newcode180
> media/base/filters.h:180: // Returns an |AVStream*| if supported, or NULL.
> On 2011/09/19 21:19:45, scherkus wrote:
> > On 2011/09/12 20:54:21, Ami Fischman wrote:
> > > Is there a chance to remove this at the same time?
> > 
> > Not yet :\
> 
> How about now that AdaptiveDemuxer is dead? :)

Well I _am_ going on a plane soon...

Powered by Google App Engine
This is Rietveld 408576698