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

Issue 114853002: media: Enabling direct rendering for VP9 (Closed)

Created:
7 years ago by vignesh
Modified:
6 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

media: Enabling direct rendering for VP9 Passing in our own buffers to libvpx for VP9 decoding so that the copying of frames after decoding is eliminated. Note: This depends on a few changes in libvpx. Do NOT commit this until a libvpx roll happens that contains the necessary changes. test=media_unittests BUG=321856 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252380

Patch Set 1 #

Patch Set 2 : adding some comments. #

Total comments: 10

Patch Set 3 : comments #

Total comments: 8

Patch Set 4 : addressing comments #

Total comments: 10

Patch Set 5 : adding MemoryPool class #

Patch Set 6 : adding LRU codec ctl #

Total comments: 8

Patch Set 7 : addressing comments #

Patch Set 8 : fixing the case when videoframes are destroyed out of order #

Total comments: 6

Patch Set 9 : addressing comments and adding unit tests #

Patch Set 10 : get/release model for frame bufers. rebase. #

Total comments: 20

Patch Set 11 : addressing comments #

Total comments: 6

Patch Set 12 : nit fixes #

Patch Set 13 : rebase and minor nit changes due to change in library #

Patch Set 14 : fixing trybot failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -0 lines) Patch
M media/filters/vpx_video_decoder.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +162 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
vignesh
7 years ago (2013-12-13 01:16:42 UTC) #1
fgalligan1
Sorry I thought I published my comments on Friday. https://codereview.chromium.org/114853002/diff/20001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/20001/media/filters/vpx_video_decoder.cc#newcode34 media/filters/vpx_video_decoder.cc:34: ...
7 years ago (2013-12-16 19:38:42 UTC) #2
vignesh
https://codereview.chromium.org/114853002/diff/20001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/20001/media/filters/vpx_video_decoder.cc#newcode34 media/filters/vpx_video_decoder.cc:34: #include "third_party/libvpx/source/libvpx/vpx/vpx_external_frame_buffer.h" On 2013/12/16 19:38:43, fgalligan1 wrote: > This ...
7 years ago (2013-12-16 21:10:56 UTC) #3
fgalligan1
https://codereview.chromium.org/114853002/diff/40001/media/filters/vpx_video_decoder.h File media/filters/vpx_video_decoder.h (right): https://codereview.chromium.org/114853002/diff/40001/media/filters/vpx_video_decoder.h#newcode51 media/filters/vpx_video_decoder.h:51: static int32 ReallocVP9FrameBuffer(void* user_priv, size_t new_size, nit: I think ...
7 years ago (2013-12-17 01:16:53 UTC) #4
fgalligan1
On 2013/12/17 01:16:53, fgalligan1 wrote: > https://codereview.chromium.org/114853002/diff/40001/media/filters/vpx_video_decoder.h > File media/filters/vpx_video_decoder.h (right): > > https://codereview.chromium.org/114853002/diff/40001/media/filters/vpx_video_decoder.h#newcode51 > ...
7 years ago (2013-12-17 01:17:20 UTC) #5
vignesh
Adding acolwell@ as reviewer as Andrew is busy. Please add someone else if you think ...
7 years ago (2013-12-17 18:24:24 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/114853002/diff/60001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/60001/media/filters/vpx_video_decoder.cc#newcode75 media/filters/vpx_video_decoder.cc:75: static const int kVP9MaxFrameBuffers = 9 + limits::kMaxVideoFrames; Shouldn't ...
7 years ago (2013-12-17 19:07:03 UTC) #7
vignesh
acolwell@, thanks for the patch that you sent in email. PS5 is mostly based on ...
7 years ago (2013-12-18 18:01:02 UTC) #8
acolwell GONE FROM CHROMIUM
Looks pretty good. Just a few more comments. https://codereview.chromium.org/114853002/diff/100001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (left): https://codereview.chromium.org/114853002/diff/100001/media/filters/vpx_video_decoder.cc#oldcode364 media/filters/vpx_video_decoder.cc:364: if ...
7 years ago (2013-12-19 15:26:12 UTC) #9
fgalligan1
On 2013/12/19 15:26:12, acolwell wrote: > Looks pretty good. Just a few more comments. > ...
7 years ago (2013-12-19 17:56:26 UTC) #10
fgalligan1
On 2013/12/19 17:56:26, fgalligan1 wrote: > On 2013/12/19 15:26:12, acolwell wrote: > > Looks pretty ...
7 years ago (2013-12-19 20:06:28 UTC) #11
vignesh
https://codereview.chromium.org/114853002/diff/100001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (left): https://codereview.chromium.org/114853002/diff/100001/media/filters/vpx_video_decoder.cc#oldcode364 media/filters/vpx_video_decoder.cc:364: if (!vpx_codec_alpha_) On 2013/12/19 15:26:12, acolwell wrote: > You ...
7 years ago (2013-12-19 20:27:20 UTC) #12
acolwell GONE FROM CHROMIUM
On 2013/12/19 20:27:20, vignesh wrote: > https://codereview.chromium.org/114853002/diff/100001/media/filters/vpx_video_decoder.cc#newcode441 > media/filters/vpx_video_decoder.cc:441: vpx_image->stride[VPX_PLANE_Y], > On 2013/12/19 15:26:12, acolwell ...
7 years ago (2013-12-19 22:33:45 UTC) #13
vignesh
acolwell@, I have addressed the case when videoframes are destroyed out of order. PTAL. I ...
7 years ago (2013-12-20 16:44:35 UTC) #14
acolwell GONE FROM CHROMIUM
lgtm % minor comments. https://codereview.chromium.org/114853002/diff/140001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/140001/media/filters/vpx_video_decoder.cc#newcode128 media/filters/vpx_video_decoder.cc:128: sizeof(vpx_codec_frame_buffer) * arraysize(frame_buffers_)); nit: I ...
7 years ago (2013-12-20 17:26:43 UTC) #15
vignesh
Aaron, I have added the unittests. PTAL. https://codereview.chromium.org/114853002/diff/140001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/140001/media/filters/vpx_video_decoder.cc#newcode128 media/filters/vpx_video_decoder.cc:128: sizeof(vpx_codec_frame_buffer) * ...
7 years ago (2013-12-20 19:59:40 UTC) #16
acolwell GONE FROM CHROMIUM
so.. I have some bad news for you. During a lunch conversation about your CL, ...
7 years ago (2013-12-20 21:28:57 UTC) #17
acolwell GONE FROM CHROMIUM
Unfortunately this means not lgtm.
7 years ago (2013-12-20 21:29:33 UTC) #18
fgalligan1
On 2013/12/20 21:28:57, acolwell wrote: > so.. I have some bad news for you. During ...
7 years ago (2013-12-21 00:14:34 UTC) #19
acolwell GONE FROM CHROMIUM
On 2013/12/21 00:14:34, fgalligan1 wrote: > On 2013/12/20 21:28:57, acolwell wrote: > > so.. I ...
7 years ago (2013-12-21 00:24:38 UTC) #20
vignesh
On 2013/12/21 00:24:38, acolwell wrote: > On 2013/12/21 00:14:34, fgalligan1 wrote: > > On 2013/12/20 ...
6 years, 10 months ago (2014-02-03 22:56:20 UTC) #21
acolwell GONE FROM CHROMIUM
Looks pretty good. Here are my initial comments. https://codereview.chromium.org/114853002/diff/290001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/290001/media/filters/vpx_video_decoder.cc#newcode83 media/filters/vpx_video_decoder.cc:83: struct ...
6 years, 10 months ago (2014-02-04 00:48:35 UTC) #22
vignesh
Have addressed all the comments. PTAL. https://codereview.chromium.org/114853002/diff/290001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/290001/media/filters/vpx_video_decoder.cc#newcode83 media/filters/vpx_video_decoder.cc:83: struct VP9FrameBuffer { ...
6 years, 10 months ago (2014-02-04 01:38:06 UTC) #23
acolwell GONE FROM CHROMIUM
lgtm % nits https://codereview.chromium.org/114853002/diff/350001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/114853002/diff/350001/media/filters/vpx_video_decoder.cc#newcode133 media/filters/vpx_video_decoder.cc:133: for (size_t i = 0; i ...
6 years, 10 months ago (2014-02-04 17:47:49 UTC) #24
vignesh
thanks for the review Aaron. have addressed the nits. I will wait until the libvpx ...
6 years, 10 months ago (2014-02-04 19:01:09 UTC) #25
DaleCurtis
I can't seem to find the external buffers implmentation, but can you elaborate for posterity ...
6 years, 10 months ago (2014-02-04 20:25:12 UTC) #26
vignesh
On 2014/02/04 20:25:12, DaleCurtis wrote: > I can't seem to find the external buffers implmentation, ...
6 years, 10 months ago (2014-02-04 21:45:24 UTC) #27
fgalligan
libvpx has planes underneath, which we do expect to be contiguous. Even if we were ...
6 years, 10 months ago (2014-02-05 01:49:35 UTC) #28
DaleCurtis
Does the transfer into the planar format require a copy?
6 years, 10 months ago (2014-02-05 02:11:39 UTC) #29
fgalligan1
On 2014/02/05 02:11:39, DaleCurtis wrote: > Does the transfer into the planar format require a ...
6 years, 10 months ago (2014-02-05 06:40:34 UTC) #30
vignesh
rebase and minor changes due to renames in libvpx. functionally still the same. The libvpx ...
6 years, 10 months ago (2014-02-18 23:11:43 UTC) #31
vignesh
The CQ bit was checked by vigneshv@chromium.org
6 years, 10 months ago (2014-02-20 17:47:50 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vigneshv@chromium.org/114853002/460001
6 years, 10 months ago (2014-02-20 17:50:01 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 18:27:13 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-20 18:27:14 UTC) #35
vignesh
The CQ bit was checked by vigneshv@chromium.org
6 years, 10 months ago (2014-02-20 18:54:17 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vigneshv@chromium.org/114853002/760001
6 years, 10 months ago (2014-02-20 18:55:56 UTC) #37
commit-bot: I haz the power
Change committed as 252380
6 years, 10 months ago (2014-02-20 21:34:12 UTC) #38
rmcilroy
6 years, 10 months ago (2014-02-21 10:24:21 UTC) #39
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/175013002/ by rmcilroy@chromium.org.

The reason for reverting is: Broke media_perftest on Window's bots.  See:
https://code.google.com/p/chromium/issues/detail?id=345629 for details..

Powered by Google App Engine
This is Rietveld 408576698