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

Issue 1040513003: VAVDA: Use the new, generic video decoder and accelerator infrastructure. (Closed)

Created:
5 years, 8 months ago by Pawel Osciak
Modified:
5 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VAVDA: Use the new, generic video decoder and accelerator infrastructure. A new, generic accelerated video decoder stack has recently been written to abstract and replace the existing, heavily VAAPI-specific infrastructure, and to make it reusable on other platforms as well. Now that the new stack is stable, switch VAVDA to it. Move the VAAPI-specific H264 code to a new VaapiH264Accelerator class and adapt the whole class to use the new decoder/accelerator infrastructure. BUG=410152 TEST=vdaunittest,veaunittest,shaka player with DASH,local video Committed: https://crrev.com/d9ee533e4dace516a8a72a704c7cf8cafbab00de Cr-Commit-Position: refs/heads/master@{#324780}

Patch Set 1 : #

Patch Set 2 : Fix whitespace #

Total comments: 18

Patch Set 3 : #

Total comments: 5

Patch Set 4 : Address nit from PS3 #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+661 lines, -2397 lines) Patch
M content/common/BUILD.gn View 1 2 3 4 3 chunks +7 lines, -9 lines 0 comments Download
M content/common/gpu/media/h264_dpb.h View 1 2 3 3 chunks +16 lines, -14 lines 0 comments Download
M content/common/gpu/media/h264_dpb.cc View 2 chunks +27 lines, -5 lines 0 comments Download
D content/common/gpu/media/vaapi_h264_decoder.h View 1 chunk +0 lines, -295 lines 0 comments Download
D content/common/gpu/media/vaapi_h264_decoder.cc View 1 chunk +0 lines, -1706 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D content/common/gpu/media/vaapi_h264_dpb.h View 1 chunk +0 lines, -138 lines 0 comments Download
D content/common/gpu/media/vaapi_h264_dpb.cc View 1 chunk +0 lines, -129 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 4 10 chunks +38 lines, -13 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 12 chunks +517 lines, -50 lines 0 comments Download
M content/common/gpu/media/vaapi_video_encode_accelerator.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_video_encode_accelerator.cc View 1 2 3 4 7 chunks +30 lines, -26 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
Pawel Osciak
isherman@: please histograms, others: please rest. Thank you.
5 years, 8 months ago (2015-03-27 11:52:57 UTC) #3
Ilya Sherman
https://codereview.chromium.org/1040513003/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1040513003/diff/60001/tools/metrics/histograms/histograms.xml#newcode61628 tools/metrics/histograms/histograms.xml:61628: +</enum> Hmm, is it really useful to have this ...
5 years, 8 months ago (2015-03-30 05:11:47 UTC) #5
Pawel Osciak
On 2015/03/30 05:11:47, Ilya Sherman wrote: > https://codereview.chromium.org/1040513003/diff/60001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/1040513003/diff/60001/tools/metrics/histograms/histograms.xml#newcode61628 ...
5 years, 8 months ago (2015-03-30 05:29:04 UTC) #6
Ilya Sherman
Okay. LGTM.
5 years, 8 months ago (2015-03-30 05:49:23 UTC) #7
wuchengli
First round of comments. I'll review vaapi_video_decode_accelerator.cc tomorrow. https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/h264_dpb.h File content/common/gpu/media/h264_dpb.h (right): https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/h264_dpb.h#newcode24 content/common/gpu/media/h264_dpb.h:24: struct ...
5 years, 8 months ago (2015-03-30 11:02:55 UTC) #8
kcwu
I'll continue review vaapi_video_decode_accelerator.cc tomorrow. https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/vaapi_video_decode_accelerator.cc File content/common/gpu/media/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/vaapi_video_decode_accelerator.cc#newcode1038 content/common/gpu/media/vaapi_video_decode_accelerator.cc:1038: memset(&slice_param, 0, sizeof(VASliceParameterBufferH264)); I ...
5 years, 8 months ago (2015-03-31 15:20:10 UTC) #9
wuchengli
https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/vaapi_video_decode_accelerator.cc File content/common/gpu/media/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/1040513003/diff/60001/content/common/gpu/media/vaapi_video_decode_accelerator.cc#newcode857 content/common/gpu/media/vaapi_video_decode_accelerator.cc:857: if (state_ == kResetting || state_ == kDestroying) auto_lock(lock_); ...
5 years, 8 months ago (2015-04-01 05:17:38 UTC) #10
Pawel Osciak
very small diff. ptal. thanks. https://chromiumcodereview.appspot.com/1040513003/diff/60001/content/common/gpu/media/h264_dpb.h File content/common/gpu/media/h264_dpb.h (right): https://chromiumcodereview.appspot.com/1040513003/diff/60001/content/common/gpu/media/h264_dpb.h#newcode24 content/common/gpu/media/h264_dpb.h:24: struct H264Picture : public ...
5 years, 8 months ago (2015-04-03 07:06:00 UTC) #11
Pawel Osciak
whoops, had to reupload. ptal.
5 years, 8 months ago (2015-04-03 07:08:47 UTC) #12
wuchengli
lgtm https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/vaapi_video_decode_accelerator.h File content/common/gpu/media/vaapi_video_decode_accelerator.h (right): https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/vaapi_video_decode_accelerator.h#newcode194 content/common/gpu/media/vaapi_video_decode_accelerator.h:194: // Protects input buffer and surface queues and ...
5 years, 8 months ago (2015-04-07 09:36:47 UTC) #16
kcwu1
lgtm https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/h264_dpb.h File content/common/gpu/media/h264_dpb.h (right): https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/h264_dpb.h#newcode31 content/common/gpu/media/h264_dpb.h:31: using Vector = std::vector<scoped_refptr<H264Picture>>; move this line and ...
5 years, 8 months ago (2015-04-07 09:42:47 UTC) #18
Pawel Osciak
https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/h264_dpb.h File content/common/gpu/media/h264_dpb.h (right): https://chromiumcodereview.appspot.com/1040513003/diff/80001/content/common/gpu/media/h264_dpb.h#newcode31 content/common/gpu/media/h264_dpb.h:31: using Vector = std::vector<scoped_refptr<H264Picture>>; On 2015/04/07 09:42:47, kcwu1 wrote: ...
5 years, 8 months ago (2015-04-08 08:36:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040513003/100001
5 years, 8 months ago (2015-04-08 08:36:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54765)
5 years, 8 months ago (2015-04-08 08:47:57 UTC) #24
Pawel Osciak
brettw@: Please content/common/BUILD.gn. Thanks.
5 years, 8 months ago (2015-04-08 09:00:23 UTC) #26
Pawel Osciak
dpranke@: may I please ask for OWNERS for content/common/BUILD.gn? Thank you.
5 years, 8 months ago (2015-04-10 04:46:13 UTC) #28
Dirk Pranke
The change looks fine, but I'm not an OWNER for that file (my top-level ownership ...
5 years, 8 months ago (2015-04-10 16:57:31 UTC) #29
brettw
BUILD.gn LGTM
5 years, 8 months ago (2015-04-10 18:00:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040513003/100001
5 years, 8 months ago (2015-04-10 18:14:15 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/13831) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 8 months ago (2015-04-10 18:20:17 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040513003/120001
5 years, 8 months ago (2015-04-11 07:36:18 UTC) #39
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 8 months ago (2015-04-11 10:32:53 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/d9ee533e4dace516a8a72a704c7cf8cafbab00de Cr-Commit-Position: refs/heads/master@{#324780}
5 years, 8 months ago (2015-04-11 10:33:35 UTC) #41
Adrian Kuegel
I think this broke the Codesearch bot: https://build.chromium.org/p/chromium.infra/builders/ChromiumOS%20Codesearch/builds/14/steps/compile/logs/stdio Can you please check? This is kind ...
5 years, 8 months ago (2015-04-13 08:14:21 UTC) #42
Pawel Osciak
On 2015/04/13 08:14:21, Adrian Kuegel wrote: > I think this broke the Codesearch bot: > ...
5 years, 8 months ago (2015-04-13 08:15:45 UTC) #43
Pawel Osciak
5 years, 8 months ago (2015-04-13 08:40:20 UTC) #44
Message was sent while issue was closed.
On 2015/04/13 08:15:45, Pawel Osciak wrote:
> On 2015/04/13 08:14:21, Adrian Kuegel wrote:
> > I think this broke the Codesearch bot:
> >
>
https://build.chromium.org/p/chromium.infra/builders/ChromiumOS%20Codesearch/...
> > 
> > Can you please check? This is kind of urgent, because if it fails, there
will
> be
> > no updates to the Codesearch index.
> 
> Sure, looking.

We've decided to https://codereview.chromium.org/1059853005/.

Powered by Google App Engine
This is Rietveld 408576698