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

Issue 12818004: Introduce VideoFrameStream, the video frame provider in media pipeline. (Closed)

Created:
7 years, 9 months ago by xhwang
Modified:
7 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Introduce VideoFrameStream, the video frame provider in media pipeline. VideoFrameStream wraps DemuxerStreams and VideoDecoders to provide VideoFrames to it's client (e.g. VideoRendererBase). It hides details of the interraction between DemuxerStream and VideoDecoder. To it's client, VideoFrameStream works as a reliable VideoFrame source which, after initialization, simply returns VideoFrames until end-of-stream (EOS). BUG=141788 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190181

Patch Set 1 #

Patch Set 2 : Call VideoDecoder::Reset()/Stop() during pending read. #

Total comments: 1

Patch Set 3 : Add unittests. #

Total comments: 30

Patch Set 4 : comments resolved #

Total comments: 4

Patch Set 5 : Rebased #

Total comments: 2

Patch Set 6 : Prettier name for test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+699 lines, -94 lines) Patch
A media/filters/video_frame_stream.h View 1 2 3 4 1 chunk +123 lines, -0 lines 0 comments Download
A media/filters/video_frame_stream.cc View 1 2 3 4 1 chunk +206 lines, -0 lines 0 comments Download
A media/filters/video_frame_stream_unittest.cc View 1 2 3 4 5 1 chunk +332 lines, -0 lines 0 comments Download
M media/filters/video_renderer_base.h View 1 2 3 4 5 chunks +7 lines, -31 lines 0 comments Download
M media/filters/video_renderer_base.cc View 1 2 3 4 9 chunks +16 lines, -59 lines 0 comments Download
M media/filters/video_renderer_base_unittest.cc View 1 3 chunks +12 lines, -4 lines 0 comments Download
M media/media.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
xhwang
FYI, Patch set 1 actually never calls VideoDecoder::Reset()/Stop() during a pending read. It only does ...
7 years, 9 months ago (2013-03-21 01:06:31 UTC) #1
xhwang
As always, I'll add tests to cover the new class if the idea looks good.
7 years, 9 months ago (2013-03-21 01:07:21 UTC) #2
xhwang
https://codereview.chromium.org/12818004/diff/2001/media/filters/video_frame_stream.h File media/filters/video_frame_stream.h (right): https://codereview.chromium.org/12818004/diff/2001/media/filters/video_frame_stream.h#newcode54 media/filters/video_frame_stream.h:54: void ReadFrame(const VideoDecoder::ReadCB& read_cb); I didn't use Read() on ...
7 years, 9 months ago (2013-03-21 01:10:17 UTC) #3
scherkus (not reviewing)
looking nice! https://codereview.chromium.org/12818004/diff/8001/media/filters/video_frame_stream.cc File media/filters/video_frame_stream.cc (right): https://codereview.chromium.org/12818004/diff/8001/media/filters/video_frame_stream.cc#newcode30 media/filters/video_frame_stream.cc:30: DCHECK(state_ == UNINITIALIZED || state_ == STOPPED); ...
7 years, 9 months ago (2013-03-22 01:02:40 UTC) #4
xhwang
PTAL https://codereview.chromium.org/12818004/diff/8001/media/filters/video_frame_stream.cc File media/filters/video_frame_stream.cc (right): https://codereview.chromium.org/12818004/diff/8001/media/filters/video_frame_stream.cc#newcode30 media/filters/video_frame_stream.cc:30: DCHECK(state_ == UNINITIALIZED || state_ == STOPPED); On ...
7 years, 9 months ago (2013-03-22 07:23:27 UTC) #5
scherkus (not reviewing)
I just realized this doesn't include my HOFA() patch. My suggestion would be to add ...
7 years, 9 months ago (2013-03-22 17:23:19 UTC) #6
xhwang
Rebased and comments resolved/replied. PTAL again. https://codereview.chromium.org/12818004/diff/15001/media/filters/video_frame_stream.cc File media/filters/video_frame_stream.cc (right): https://codereview.chromium.org/12818004/diff/15001/media/filters/video_frame_stream.cc#newcode98 media/filters/video_frame_stream.cc:98: // Check if ...
7 years, 9 months ago (2013-03-22 20:43:56 UTC) #7
scherkus (not reviewing)
lgtm w/ nit https://codereview.chromium.org/12818004/diff/20001/media/filters/video_frame_stream_unittest.cc File media/filters/video_frame_stream_unittest.cc (right): https://codereview.chromium.org/12818004/diff/20001/media/filters/video_frame_stream_unittest.cc#newcode202 media/filters/video_frame_stream_unittest.cc:202: INSTANTIATE_TEST_CASE_P(, VideoFrameStreamTest, testing::Bool()); Check out how ...
7 years, 9 months ago (2013-03-22 20:52:40 UTC) #8
xhwang
https://codereview.chromium.org/12818004/diff/20001/media/filters/video_frame_stream_unittest.cc File media/filters/video_frame_stream_unittest.cc (right): https://codereview.chromium.org/12818004/diff/20001/media/filters/video_frame_stream_unittest.cc#newcode202 media/filters/video_frame_stream_unittest.cc:202: INSTANTIATE_TEST_CASE_P(, VideoFrameStreamTest, testing::Bool()); On 2013/03/22 20:52:40, scherkus wrote: > ...
7 years, 9 months ago (2013-03-22 21:09:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/12818004/13004
7 years, 9 months ago (2013-03-22 23:24:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/12818004/13004
7 years, 9 months ago (2013-03-23 15:35:15 UTC) #11
commit-bot: I haz the power
7 years, 9 months ago (2013-03-24 04:06:46 UTC) #12
Message was sent while issue was closed.
Change committed as 190181

Powered by Google App Engine
This is Rietveld 408576698