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

Issue 465044: Refactor FFmpegVideoDecoder to try and generalize code common to all video decoders. (Closed)

Created:
11 years ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Alpha Left Google, fbarchard
Visibility:
Public.

Description

Refactor FFmpegVideoDecoder to try and generalize code common to all video decoders. This changes the DecoderBase API to be fully asynchronous when invoking its subclass's actions.

Patch Set 1 #

Patch Set 2 : Cleaned up a bit. #

Total comments: 21

Patch Set 3 : Unittests fixed. #

Patch Set 4 : Cleanup for review. #

Patch Set 5 : Missed mock_task.h #

Total comments: 58

Patch Set 6 : Fix unittests. #

Patch Set 7 : Rebased #

Patch Set 8 : once more #

Total comments: 16

Patch Set 9 : Fix comments from andrew. #

Total comments: 2

Patch Set 10 : Another try #

Patch Set 11 : Fix SCOPED_TRACE since VS faults on %zd. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+913 lines, -360 lines) Patch
A media/base/callback.h View 4 5 6 7 8 1 chunk +62 lines, -0 lines 0 comments Download
A media/base/mock_task.h View 5 1 chunk +110 lines, -0 lines 0 comments Download
A media/ffmpeg/ffmpeg_util.h View 1 chunk +18 lines, -0 lines 0 comments Download
A media/ffmpeg/ffmpeg_util.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M media/filters/decoder_base.h View 1 2 3 4 5 8 chunks +52 lines, -28 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 1 chunk +4 lines, -5 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 3 4 chunks +20 lines, -11 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 4 chunks +11 lines, -7 lines 0 comments Download
A media/filters/ffmpeg_video_decode_engine_unittest.cc View 4 5 6 7 8 1 chunk +184 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 1 2 3 4 5 6 7 8 5 chunks +50 lines, -28 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 7 8 6 chunks +190 lines, -111 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 3 4 5 6 7 8 9 10 18 chunks +128 lines, -169 lines 0 comments Download
A media/filters/video_decode_engine.h View 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 5 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scherkus (not reviewing)
http://codereview.chromium.org/465044/diff/2001/3002 File media/ffmpeg/ffmpeg_util.h (right): http://codereview.chromium.org/465044/diff/2001/3002#newcode5 media/ffmpeg/ffmpeg_util.h:5: #ifndef MEDIA_FFMPEG_FFMPEG_UTIL_H_ feel free to check in this change ...
11 years ago (2009-12-04 02:44:21 UTC) #1
awong
Ready for another pass. http://codereview.chromium.org/465044/diff/2001/3002 File media/ffmpeg/ffmpeg_util.h (right): http://codereview.chromium.org/465044/diff/2001/3002#newcode5 media/ffmpeg/ffmpeg_util.h:5: #ifndef MEDIA_FFMPEG_FFMPEG_UTIL_H_ On 2009/12/04 02:44:21, ...
11 years ago (2009-12-08 00:33:00 UTC) #2
scherkus (not reviewing)
I think I covered most of it :) http://codereview.chromium.org/465044/diff/1012/1013 File media/base/callback.h (right): http://codereview.chromium.org/465044/diff/1012/1013#newcode4 media/base/callback.h:4: could ...
11 years ago (2009-12-08 01:52:53 UTC) #3
awong
PTAL http://codereview.chromium.org/465044/diff/1012/1013 File media/base/callback.h (right): http://codereview.chromium.org/465044/diff/1012/1013#newcode4 media/base/callback.h:4: On 2009/12/08 01:52:53, scherkus wrote: > could we ...
11 years ago (2009-12-09 00:34:50 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/465044/diff/1012/1026 File media/filters/video_decode_engine.h (right): http://codereview.chromium.org/465044/diff/1012/1026#newcode39 media/filters/video_decode_engine.h:39: virtual void DecodeFrame(const Buffer& buffer, AVFrame* yuv_frame, On 2009/12/09 ...
11 years ago (2009-12-09 00:48:32 UTC) #5
awong
fixed. http://codereview.chromium.org/465044/diff/6002/7001 File media/base/callback.h (right): http://codereview.chromium.org/465044/diff/6002/7001#newcode44 media/base/callback.h:44: CHECK(callback_.get()); On 2009/12/09 00:48:32, scherkus wrote: > probably ...
11 years ago (2009-12-09 01:02:58 UTC) #6
scherkus (not reviewing)
LGTM one extra line snuck in I think http://codereview.chromium.org/465044/diff/8004/9015 File media/filters/video_decode_engine.h (right): http://codereview.chromium.org/465044/diff/8004/9015#newcode8 media/filters/video_decode_engine.h:8: remove ...
11 years ago (2009-12-09 01:12:18 UTC) #7
awong
11 years ago (2009-12-09 01:24:44 UTC) #8
Fixed.  Windows try died, but I think I found the bug. Once that's fixed, will
submit.

http://codereview.chromium.org/465044/diff/8004/9015
File media/filters/video_decode_engine.h (right):

http://codereview.chromium.org/465044/diff/8004/9015#newcode8
media/filters/video_decode_engine.h:8: 
On 2009/12/09 01:12:18, scherkus wrote:
> remove extra line

Done.

Powered by Google App Engine
This is Rietveld 408576698