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

Issue 825843002: Add JPEG decoder for VAAPI JPEG decode acceleration (Closed)

Created:
5 years, 12 months ago by kcwu
Modified:
5 years, 10 months ago
CC:
chromium-reviews, binji+watch_chromium.org, yusukes+watch_chromium.org, tzik, posciak+watch_chromium.org, noelallen1, jam, mcasas+watch_chromium.org, raymes+watch_chromium.org, feature-media-reviews_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, nfullagar1, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mjpeg-vaapi-jpeg-parser
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add JPEG decoder for VAAPI JPEG decode acceleration BUG=335778 TEST=build and run vaapi_jpeg_decoder_unittest Committed: https://crrev.com/b17ead43a82b5767b86a00ffb59a64e42ed35e6f Cr-Commit-Position: refs/heads/master@{#313881}

Patch Set 1 #

Patch Set 2 : rebase+revise due to parser cl #

Total comments: 85

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Total comments: 34

Patch Set 5 : addressed wuchengli's comments #

Total comments: 14

Patch Set 6 : #

Patch Set 7 : rebase #

Total comments: 28

Patch Set 8 : addressed posciak's comments #

Total comments: 7

Patch Set 9 : #

Total comments: 9

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -36 lines) Patch
M content/common/gpu/media/va.sigs View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder_unittest.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
A content/common/gpu/media/vaapi_jpeg_decoder.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_jpeg_decoder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +305 lines, -0 lines 0 comments Download
A content/common/gpu/media/vaapi_jpeg_decoder_unittest.cc View 1 2 3 4 5 6 7 1 chunk +136 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/vaapi_video_encode_accelerator.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_wrapper.h View 1 2 3 4 5 6 7 8 9 3 chunks +32 lines, -11 lines 0 comments Download
M content/common/gpu/media/vaapi_wrapper.cc View 1 2 3 4 5 6 7 8 9 4 chunks +62 lines, -15 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (3 generated)
kcwu
Please take a look. What I am not sure is adding media::MJPEGPROFILE. Will it make ...
5 years, 12 months ago (2014-12-24 11:59:17 UTC) #2
kcwu
Owen, please help review this one as well. Thanks
5 years, 12 months ago (2014-12-26 04:02:47 UTC) #4
kcwu
rebased parser changes. please take a look.
5 years, 11 months ago (2015-01-07 11:15:50 UTC) #5
wuchengli
I haven't finished the review. Please address these first. https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/va.sigs File content/common/gpu/media/va.sigs (right): https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/va.sigs#newcode14 content/common/gpu/media/va.sigs:14: ...
5 years, 11 months ago (2015-01-12 09:08:53 UTC) #6
wuchengli
https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode110 content/common/gpu/media/vaapi_jpeg_decoder.cc:110: if (!vaapi_wrapper_->CreateSurfaces(size, 1, &va_surfaces)) We should reuse the surface ...
5 years, 11 months ago (2015-01-12 13:48:05 UTC) #7
Owen Lin
https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode7 content/common/gpu/media/vaapi_jpeg_decoder.cc:7: #include <algorithm> not used? https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode8 content/common/gpu/media/vaapi_jpeg_decoder.cc:8: #include <limits> not ...
5 years, 11 months ago (2015-01-13 06:17:59 UTC) #8
kcwu
https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/va.sigs File content/common/gpu/media/va.sigs (right): https://codereview.chromium.org/825843002/diff/20001/content/common/gpu/media/va.sigs#newcode14 content/common/gpu/media/va.sigs:14: VAStatus vaCreateImage(VADisplay dpy, VAImageFormat *format, int width, int height, ...
5 years, 11 months ago (2015-01-16 15:12:56 UTC) #9
Owen Lin
lgtm % nits https://codereview.chromium.org/825843002/diff/40001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/40001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode7 content/common/gpu/media/vaapi_jpeg_decoder.cc:7: #include <vector> not used. https://codereview.chromium.org/825843002/diff/40001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode91 content/common/gpu/media/vaapi_jpeg_decoder.cc:91: ...
5 years, 11 months ago (2015-01-19 09:29:31 UTC) #10
kcwu
https://codereview.chromium.org/825843002/diff/40001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/40001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode7 content/common/gpu/media/vaapi_jpeg_decoder.cc:7: #include <vector> On 2015/01/19 09:29:31, Owen Lin wrote: > ...
5 years, 11 months ago (2015-01-19 09:58:18 UTC) #11
wuchengli
https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode13 content/common/gpu/media/vaapi_jpeg_decoder.cc:13: static JpegHuffmanTable default_dc_table[kJpegMaxHuffmanTableNumBaseline] = { Why this is exposed ...
5 years, 11 months ago (2015-01-20 07:55:54 UTC) #12
wuchengli
https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.h File content/common/gpu/media/vaapi_jpeg_decoder.h (right): https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.h#newcode41 content/common/gpu/media/vaapi_jpeg_decoder.h:41: bool Decode(const media::JpegParseResult& parse_result, This can be static and ...
5 years, 11 months ago (2015-01-20 15:41:41 UTC) #13
kcwu
https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/60001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode13 content/common/gpu/media/vaapi_jpeg_decoder.cc:13: static JpegHuffmanTable default_dc_table[kJpegMaxHuffmanTableNumBaseline] = { On 2015/01/20 07:55:53, wuchengli ...
5 years, 11 months ago (2015-01-21 12:23:48 UTC) #14
wuchengli
LGTM. Please still fix my comments in this patchset. Pawel. Need owner approval. Thanks. https://codereview.chromium.org/825843002/diff/80001/content/common/gpu/media/vaapi_jpeg_decoder.cc ...
5 years, 11 months ago (2015-01-21 13:19:58 UTC) #15
kcwu
https://codereview.chromium.org/825843002/diff/80001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://codereview.chromium.org/825843002/diff/80001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode114 content/common/gpu/media/vaapi_jpeg_decoder.cc:114: DLOG(ERROR) << "VAAPI don't supports horizontal sampling factor of ...
5 years, 11 months ago (2015-01-23 07:51:33 UTC) #16
Pawel Osciak
https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode90 content/common/gpu/media/vaapi_jpeg_decoder.cc:90: static bool IsVaapiSupportedJpeg(const media::JpegParseResult& jpeg) { Please add a ...
5 years, 11 months ago (2015-01-25 08:51:11 UTC) #17
kcwu
https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode90 content/common/gpu/media/vaapi_jpeg_decoder.cc:90: static bool IsVaapiSupportedJpeg(const media::JpegParseResult& jpeg) { On 2015/01/25 08:51:11, ...
5 years, 11 months ago (2015-01-26 12:12:10 UTC) #18
Pawel Osciak
https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode234 content/common/gpu/media/vaapi_jpeg_decoder.cc:234: (max_h_factor * 8); On 2015/01/26 12:12:09, kcwu wrote: > ...
5 years, 11 months ago (2015-01-27 00:55:45 UTC) #19
kcwu
https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_wrapper.cc File content/common/gpu/media/vaapi_wrapper.cc (right): https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_wrapper.cc#newcode118 content/common/gpu/media/vaapi_wrapper.cc:118: static VAProfile FallbackVaProfileIfNecessary( On 2015/01/27 00:55:44, Pawel Osciak wrote: ...
5 years, 11 months ago (2015-01-27 01:12:46 UTC) #20
kcwu
https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode234 content/common/gpu/media/vaapi_jpeg_decoder.cc:234: (max_h_factor * 8); On 2015/01/27 00:55:44, Pawel Osciak wrote: ...
5 years, 11 months ago (2015-01-27 08:12:26 UTC) #21
wuchengli
On 2015/01/27 08:12:26, kcwu wrote: > https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc > File content/common/gpu/media/vaapi_jpeg_decoder.cc (right): > > https://chromiumcodereview.appspot.com/825843002/diff/120001/content/common/gpu/media/vaapi_jpeg_decoder.cc#newcode234 > ...
5 years, 10 months ago (2015-01-29 09:05:40 UTC) #22
wuchengli
https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.cc File content/common/gpu/media/vaapi_wrapper.cc (right): https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.cc#newcode365 content/common/gpu/media/vaapi_wrapper.cc:365: const base::Closure& report_error_to_uma_cb) { Not used. Remove. https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.h File ...
5 years, 10 months ago (2015-01-30 06:39:00 UTC) #23
wuchengli
https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.h File content/common/gpu/media/vaapi_wrapper.h (right): https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.h#newcode142 content/common/gpu/media/vaapi_wrapper.h:142: // smaller or equal to the surface. If |size| ...
5 years, 10 months ago (2015-01-30 06:39:48 UTC) #24
kcwu
https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.cc File content/common/gpu/media/vaapi_wrapper.cc (right): https://codereview.chromium.org/825843002/diff/160001/content/common/gpu/media/vaapi_wrapper.cc#newcode365 content/common/gpu/media/vaapi_wrapper.cc:365: const base::Closure& report_error_to_uma_cb) { On 2015/01/30 06:38:59, wuchengli wrote: ...
5 years, 10 months ago (2015-01-30 06:52:35 UTC) #25
wuchengli
lgtm
5 years, 10 months ago (2015-01-30 06:56:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825843002/180001
5 years, 10 months ago (2015-01-30 06:57:53 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-01-30 07:55:26 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 07:56:11 UTC) #30
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b17ead43a82b5767b86a00ffb59a64e42ed35e6f
Cr-Commit-Position: refs/heads/master@{#313881}

Powered by Google App Engine
This is Rietveld 408576698