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

Issue 1669002: remove AVFrame Dependency (Closed)

Created:
10 years, 8 months ago by jiesun
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remove AVFrame dependency. Currently AVFrame is used in both OmxVideoDecodeEngine and FFmpegVideoDecodeEngine. This causes an unnecessary memory copy from AVFrame to VideoFrame. We can remove the additional copy by using VideoFrame. Also in the hardware (OpenMAX) path, VideoFrames are allocated inside decode engines, therefore the interface was changed such that VideoFrames are created inside the decode engines but buffered in VideoDecoderImpl. BUGS=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45448

Patch Set 1 #

Patch Set 2 : move video frame allocation into decode enginewq #

Total comments: 33

Patch Set 3 : code review #

Patch Set 4 : modify the unittest #

Patch Set 5 : try to fix win bot #

Total comments: 29

Patch Set 6 : code review by alpha #

Patch Set 7 : style #

Total comments: 27

Patch Set 8 : review issues #

Total comments: 9

Patch Set 9 : more patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -230 lines) Patch
M media/base/video_frame.h View 2 chunks +11 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decode_engine.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -1 line 0 comments Download
M media/filters/ffmpeg_video_decode_engine.cc View 1 2 3 4 5 6 7 8 4 chunks +81 lines, -11 lines 0 comments Download
M media/filters/ffmpeg_video_decode_engine_unittest.cc View 4 5 6 7 9 chunks +56 lines, -17 lines 0 comments Download
M media/filters/omx_video_decode_engine.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M media/filters/omx_video_decode_engine.cc View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -24 lines 0 comments Download
M media/filters/video_decode_engine.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/video_decoder_impl.h View 1 2 3 4 5 3 chunks +4 lines, -10 lines 0 comments Download
M media/filters/video_decoder_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +28 lines, -88 lines 0 comments Download
M media/filters/video_decoder_impl_unittest.cc View 4 5 6 7 9 chunks +32 lines, -74 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jiesun
add some comments http://codereview.chromium.org/1669002/diff/2001/3002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/2001/3002#newcode84 media/filters/ffmpeg_video_decode_engine.cc:84: // TODO(jiesun): This is error case, ...
10 years, 8 months ago (2010-04-17 01:04:05 UTC) #1
jiesun
some comments http://codereview.chromium.org/1669002/diff/2001/3002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/2001/3002#newcode117 media/filters/ffmpeg_video_decode_engine.cc:117: return; this is also a error case ...
10 years, 8 months ago (2010-04-19 17:12:23 UTC) #2
wjia(left Chromium)
http://codereview.chromium.org/1669002/diff/2001/3002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/2001/3002#newcode43 media/filters/ffmpeg_video_decode_engine.cc:43: are width and height available at this stage? http://codereview.chromium.org/1669002/diff/2001/3004 ...
10 years, 8 months ago (2010-04-19 17:30:35 UTC) #3
Alpha Left Google
http://codereview.chromium.org/1669002/diff/2001/3001 File media/base/buffers.h (right): http://codereview.chromium.org/1669002/diff/2001/3001#newcode77 media/base/buffers.h:77: void SetRepeatCount(int repeat_count) { Don't think this is needed ...
10 years, 8 months ago (2010-04-19 19:27:02 UTC) #4
Alpha Left Google
http://codereview.chromium.org/1669002/diff/12001/13002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/12001/13002#newcode41 media/filters/ffmpeg_video_decode_engine.cc:41: width_ = stream->codec->width; Sometimes this is not know until ...
10 years, 8 months ago (2010-04-20 18:43:24 UTC) #5
jiesun
passed build-bots http://codereview.chromium.org/1669002/diff/2001/3002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/2001/3002#newcode40 media/filters/ffmpeg_video_decode_engine.cc:40: On 2010/04/19 19:27:02, Alpha wrote: > Should ...
10 years, 8 months ago (2010-04-21 21:26:37 UTC) #6
Alpha Left Google
Thanks! Nice work! This is some extra requests (since this is a big change..): 1. ...
10 years, 8 months ago (2010-04-21 22:45:50 UTC) #7
jiesun
Tested with Frank's VideoStack Test Matrix. Tested media_unittests with Valgrind with sh tools/valgrind/valgrind.sh --leak-check=full out/Debug/media_unittests ...
10 years, 8 months ago (2010-04-22 18:29:28 UTC) #8
Alpha Left Google
It looks pretty good now. One last thing, how do you solve the problem that ...
10 years, 8 months ago (2010-04-22 18:36:30 UTC) #9
jiesun
Andrew: alpha said you are working on the same set of files. so maybe you ...
10 years, 8 months ago (2010-04-22 19:59:51 UTC) #10
scherkus (not reviewing)
please write a more descriptive changelist description, including BUG= and TEST= lines http://codereview.chromium.org/1669002/diff/52001/53001 File media/base/buffers.h ...
10 years, 8 months ago (2010-04-22 20:47:14 UTC) #11
jiesun
Done http://codereview.chromium.org/1669002/diff/52001/53002 File media/filters/ffmpeg_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/52001/53002#newcode83 media/filters/ffmpeg_video_decode_engine.cc:83: // We don't allocate AVFrame on the stack ...
10 years, 8 months ago (2010-04-22 21:24:27 UTC) #12
scherkus (not reviewing)
few tiny nits thanks for doing this!! something that we were hoping to get done ...
10 years, 8 months ago (2010-04-23 00:42:56 UTC) #13
jiesun
http://codereview.chromium.org/1669002/diff/56001/29007 File media/filters/omx_video_decode_engine.cc (right): http://codereview.chromium.org/1669002/diff/56001/29007#newcode203 media/filters/omx_video_decode_engine.cc:203: base::TimeDelta zero; On 2010/04/23 00:42:56, scherkus wrote: > I ...
10 years, 8 months ago (2010-04-23 01:06:50 UTC) #14
Alpha Left Google
Awsome! LGTM.
10 years, 8 months ago (2010-04-23 01:11:34 UTC) #15
scherkus (not reviewing)
10 years, 8 months ago (2010-04-23 01:21:15 UTC) #16
LGTM!  thanks for tackling this jie!

Powered by Google App Engine
This is Rietveld 408576698