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

Issue 9814001: Add VAVDA, the VAAPI Video Decode Accelerator for Intel CPUs. (Closed)

Created:
8 years, 9 months ago by Pawel Osciak
Modified:
8 years, 7 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

VAVDA is the hardware video decode accelerator for Chrome on Linux and ChromeOS for Intel CPUs (Sandy Bridge and newer). This CL enables VAVDA acceleration for ChromeOS, both for HTML5 video and Flash. The feature is currently hidden behind a command line flag and can be enabled by adding the --enable-vaapi parameter to command line. BUG=117062 TEST=Manual runs of test streams. Change-Id: I386e16739e2ef2230f52a0a434971b33d8654699 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137988

Patch Set 1 #

Total comments: 381

Patch Set 2 : #

Patch Set 3 : Fix for occasional decode freeze on output falling behind for more demanding streams. #

Total comments: 152

Patch Set 4 : Addressing previous CR + threading redesign #

Total comments: 97

Patch Set 5 : #

Total comments: 18

Patch Set 6 : #

Patch Set 7 : #

Total comments: 24

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3481 lines, -10 lines) Patch
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/media/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -7 lines 0 comments Download
A content/common/gpu/media/h264_dpb.h View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
A content/common/gpu/media/h264_dpb.cc View 1 2 3 4 5 6 7 1 chunk +118 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_h264_decoder.h View 1 2 3 4 5 6 7 1 chunk +335 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_h264_decoder.cc View 1 2 3 4 5 6 7 8 1 chunk +2063 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 1 chunk +208 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 1 chunk +572 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Pawel Osciak
8 years, 9 months ago (2012-03-21 06:57:24 UTC) #1
Ami GONE FROM CHROMIUM
I ran out of code-reviewing steam at vaapi_h264_decoder.cc:1739 (and before looking through VAVDA.{h,cc}). I'll hold ...
8 years, 9 months ago (2012-03-21 13:16:23 UTC) #2
Pawel Osciak
On 2012/03/21 13:16:23, Ami Fischman wrote: > I ran out of code-reviewing steam at vaapi_h264_decoder.cc:1739 ...
8 years, 9 months ago (2012-03-21 18:40:16 UTC) #3
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/1/content/common/gpu/media/h264_dpb.cc File content/common/gpu/media/h264_dpb.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/1/content/common/gpu/media/h264_dpb.cc#newcode132 content/common/gpu/media/h264_dpb.cc:132: return *(std::min_element(short_refs.begin(), short_refs.end(), On 2012/03/21 13:16:24, Ami Fischman wrote: ...
8 years, 9 months ago (2012-03-21 18:40:34 UTC) #4
Ami GONE FROM CHROMIUM
On Wed, Mar 21, 2012 at 7:40 PM, <posciak@chromium.org> wrote: > I'm sorry that parser ...
8 years, 9 months ago (2012-03-22 14:53:10 UTC) #5
Ami GONE FROM CHROMIUM
Please let me know when you have uploaded a new version of the patch. http://chromiumcodereview.appspot.com/9814001/diff/1/content/common/gpu/media/h264_dpb.cc ...
8 years, 9 months ago (2012-03-22 17:01:36 UTC) #6
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/1/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/1/content/browser/gpu/gpu_process_host.cc#newcode705 content/browser/gpu/gpu_process_host.cc:705: switches::kEnableVaapiDecodeAcceleration, On 2012/03/21 13:16:24, Ami Fischman wrote: > Keep ...
8 years, 8 months ago (2012-04-05 10:37:20 UTC) #7
Pawel Osciak
Updated with a fix for occasional decode freeze on output falling behind for more demanding ...
8 years, 8 months ago (2012-04-06 07:27:44 UTC) #8
Ami GONE FROM CHROMIUM
Didn't get through the CL during the weekend. Still need to review decoder.cc and vavda.{h,cc}. ...
8 years, 8 months ago (2012-04-09 02:41:47 UTC) #9
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/9814001/diff/1/content/common/gpu/media/vaapi_h264_decoder.cc File content/common/gpu/media/vaapi_h264_decoder.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/1/content/common/gpu/media/vaapi_h264_decoder.cc#newcode362 content/common/gpu/media/vaapi_h264_decoder.cc:362: DLOG(INFO) << "YUV420 not supported"; On 2012/04/05 10:37:20, posciak ...
8 years, 8 months ago (2012-04-09 21:35:53 UTC) #10
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/14001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/14001/content/browser/gpu/gpu_process_host.cc#newcode1 content/browser/gpu/gpu_process_host.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 7 months ago (2012-05-03 16:22:07 UTC) #11
Ami GONE FROM CHROMIUM
There are still a lot of comments here but I think they're mostly little things ...
8 years, 7 months ago (2012-05-03 23:22:53 UTC) #12
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/14001/content/common/gpu/media/vaapi_h264_decoder.cc File content/common/gpu/media/vaapi_h264_decoder.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/14001/content/common/gpu/media/vaapi_h264_decoder.cc#newcode192 content/common/gpu/media/vaapi_h264_decoder.cc:192: void Get(int32 input_id, int poc); On 2012/05/03 23:22:53, Ami ...
8 years, 7 months ago (2012-05-06 17:49:19 UTC) #13
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/9814001/diff/36002/content/common/gpu/media/vaapi_h264_decoder.cc File content/common/gpu/media/vaapi_h264_decoder.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/36002/content/common/gpu/media/vaapi_h264_decoder.cc#newcode859 content/common/gpu/media/vaapi_h264_decoder.cc:859: && pps->weighted_pred_flag) op goes on previous line https://chromiumcodereview.appspot.com/9814001/diff/36002/content/common/gpu/media/vaapi_h264_decoder.cc#newcode860 content/common/gpu/media/vaapi_h264_decoder.cc:860: ...
8 years, 7 months ago (2012-05-07 16:38:05 UTC) #14
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/36002/content/common/gpu/media/vaapi_h264_decoder.cc File content/common/gpu/media/vaapi_h264_decoder.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/36002/content/common/gpu/media/vaapi_h264_decoder.cc#newcode859 content/common/gpu/media/vaapi_h264_decoder.cc:859: && pps->weighted_pred_flag) On 2012/05/07 16:38:05, Ami Fischman wrote: > ...
8 years, 7 months ago (2012-05-07 17:58:00 UTC) #15
Pawel Osciak
8 years, 7 months ago (2012-05-07 18:11:20 UTC) #16
Ami GONE FROM CHROMIUM
LGTM brettw: could you please also OWNERS-review this CL?
8 years, 7 months ago (2012-05-07 18:14:11 UTC) #17
brettw
Mostly style nits. http://codereview.chromium.org/9814001/diff/49002/content/common/gpu/media/h264_dpb.cc File content/common/gpu/media/h264_dpb.cc (right): http://codereview.chromium.org/9814001/diff/49002/content/common/gpu/media/h264_dpb.cc#newcode5 content/common/gpu/media/h264_dpb.cc:5: #include "h264_dpb.h" Full include path. http://codereview.chromium.org/9814001/diff/49002/content/common/gpu/media/h264_dpb.h ...
8 years, 7 months ago (2012-05-07 20:34:10 UTC) #18
Pawel Osciak
https://chromiumcodereview.appspot.com/9814001/diff/49002/content/common/gpu/media/h264_dpb.cc File content/common/gpu/media/h264_dpb.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/49002/content/common/gpu/media/h264_dpb.cc#newcode5 content/common/gpu/media/h264_dpb.cc:5: #include "h264_dpb.h" On 2012/05/07 20:34:10, brettw wrote: > Full ...
8 years, 7 months ago (2012-05-07 20:49:55 UTC) #19
brettw
LGTM, thanks (I obviously didn't check the details).
8 years, 7 months ago (2012-05-07 21:08:25 UTC) #20
piman
https://chromiumcodereview.appspot.com/9814001/diff/49003/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/9814001/diff/49003/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode156 content/common/gpu/media/gpu_video_decode_accelerator.cc:156: static_cast<gfx::GLContextGLX*>(stub_->decoder()->GetGLContext()); drive-by: you're assuming x86 == GLX, which may ...
8 years, 7 months ago (2012-05-10 21:55:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/49003
8 years, 7 months ago (2012-05-16 22:12:16 UTC) #22
commit-bot: I haz the power
Can't apply patch for file content/common/gpu/media/gpu_video_decode_accelerator.cc. While running patch -p1 --forward --force; patching file content/common/gpu/media/gpu_video_decode_accelerator.cc ...
8 years, 7 months ago (2012-05-16 22:12:44 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/44005
8 years, 7 months ago (2012-05-17 13:02:20 UTC) #24
commit-bot: I haz the power
Try job failure for 9814001-44005 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-17 13:23:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/58002
8 years, 7 months ago (2012-05-17 13:34:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/55007
8 years, 7 months ago (2012-05-17 16:09:52 UTC) #27
commit-bot: I haz the power
Try job failure for 9814001-55007 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-17 16:45:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/55007
8 years, 7 months ago (2012-05-18 08:44:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/43021
8 years, 7 months ago (2012-05-18 09:08:41 UTC) #30
commit-bot: I haz the power
Try job failure for 9814001-43021 (retry) on mac_rel for step "check_deps". It's a second try, ...
8 years, 7 months ago (2012-05-18 09:48:27 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/61002
8 years, 7 months ago (2012-05-18 11:06:04 UTC) #32
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/DEPS: While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
8 years, 7 months ago (2012-05-18 11:06:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/53021
8 years, 7 months ago (2012-05-18 11:30:17 UTC) #34
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/DEPS: While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
8 years, 7 months ago (2012-05-18 11:30:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/59005
8 years, 7 months ago (2012-05-18 13:00:50 UTC) #36
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/DEPS: While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
8 years, 7 months ago (2012-05-18 13:01:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/62002
8 years, 7 months ago (2012-05-18 20:02:32 UTC) #38
commit-bot: I haz the power
Try job failure for 9814001-62002 (retry) on win for step "update". It's a second try, ...
8 years, 7 months ago (2012-05-18 20:59:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/9814001/62002
8 years, 7 months ago (2012-05-18 21:12:22 UTC) #40
commit-bot: I haz the power
8 years, 7 months ago (2012-05-19 00:10:48 UTC) #41
Change committed as 137988

Powered by Google App Engine
This is Rietveld 408576698