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

Issue 27498002: Add vaapi_h264_decoder_test. (Closed)

Created:
7 years, 2 months ago by chihchung
Modified:
6 years, 10 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wuchengli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add vaapi_h264_decoder_unittest program. The program reads an H.264 bitstream file and writes a file containing the decoded frames in I420 format. Alternatively it verifies MD5 sum of the decoded frames. It can be used for development verification and regression testing. BUG=none TEST=run through H.264.1 Base/Ext/Main profile test streams on link. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250987

Patch Set 1 #

Patch Set 2 : fix destruct order #

Total comments: 51

Patch Set 3 : address review comments #

Total comments: 8

Patch Set 4 : address review comments #

Patch Set 5 : change to gtest and add md5 verification #

Total comments: 35

Patch Set 6 : address review comments #

Total comments: 2

Patch Set 7 : split into GetVaImage/ReturnVaImage #

Total comments: 4

Patch Set 8 : Add ForTesting suffix #

Total comments: 24

Patch Set 9 : address review comments #

Total comments: 4

Patch Set 10 : address review comments #

Patch Set 11 : rebase #

Patch Set 12 : fix error found by clang #

Patch Set 13 : fix more clang errors #

Patch Set 14 : Make it compile for component=shared_library #

Patch Set 15 : Add gfx_geometry dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -4 lines) Patch
M content/common/gpu/media/va_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
A content/common/gpu/media/vaapi_h264_decoder_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +387 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_wrapper.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +47 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
chihchung
7 years, 2 months ago (2013-10-16 10:42:17 UTC) #1
Pawel Osciak
Initial pass. Please read and apply: http://www.chromium.org/developers/coding-style http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml You should also find "git cl format" ...
7 years, 2 months ago (2013-10-20 23:53:11 UTC) #2
chihchung
Thanks a lot for reviewing! Please take another look. Thanks. https://codereview.chromium.org/27498002/diff/4001/content/common/gpu/media/vaapi_h264_decoder_test.cc File content/common/gpu/media/vaapi_h264_decoder_test.cc (right): https://codereview.chromium.org/27498002/diff/4001/content/common/gpu/media/vaapi_h264_decoder_test.cc#newcode1 ...
7 years, 2 months ago (2013-10-21 09:33:05 UTC) #3
Pawel Osciak
What do you think about my gtest suggestion? What is your plan to do with ...
7 years, 1 month ago (2013-11-21 06:31:41 UTC) #4
chihchung
Thanks a lot for the review. Most of the issues are fixed. I will work ...
7 years, 1 month ago (2013-11-21 12:17:31 UTC) #5
chihchung
Change it to a unit test and add MD5 sum, so we don't need the ...
7 years, 1 month ago (2013-11-22 13:06:47 UTC) #6
Pawel Osciak
Sorry it took me so long. https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode19 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:19: // DISPLAY=:0 ./vaapi_h264_run_decoder ...
7 years ago (2013-11-29 04:25:12 UTC) #7
chihchung
https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode19 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:19: // DISPLAY=:0 ./vaapi_h264_run_decoder --input_file input.264 On 2013/11/29 04:25:13, posciak ...
7 years ago (2013-11-29 14:06:29 UTC) #8
Pawel Osciak
https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode267 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:267: LOG(FATAL) << "initialize decoder loop failed"; On 2013/11/29 14:06:30, ...
7 years ago (2013-12-03 08:52:06 UTC) #9
chihchung
Hi Ami, Please take a look at this test. Thanks! https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/188001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode267 ...
7 years ago (2013-12-03 10:57:39 UTC) #10
Ami GONE FROM CHROMIUM
I'm probably missing some important context :( https://codereview.chromium.org/27498002/diff/248001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/248001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode24 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:24: // expected ...
7 years ago (2013-12-03 21:17:15 UTC) #11
chihchung
https://codereview.chromium.org/27498002/diff/248001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/248001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode24 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:24: // expected MD5 sum is given. On 2013/12/03 21:17:16, ...
7 years ago (2013-12-04 05:38:10 UTC) #12
Ami GONE FROM CHROMIUM
> > (1) It produces and compares the YUV data instead of RGB data. This ...
7 years ago (2013-12-05 01:45:17 UTC) #13
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode19 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:19: // DISPLAY=:0 ./vaapi_h264_decoder_unittest --input_file input.264 s/264/h264/ to line up ...
7 years ago (2013-12-05 02:11:42 UTC) #14
chihchung
Thanks a lot for the review and suggestions! Please take another look. Thanks! https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File ...
7 years ago (2013-12-09 05:10:07 UTC) #15
Ami GONE FROM CHROMIUM
LGTM % nits https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode120 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:120: return false; On 2013/12/09 05:10:08, chihchung ...
7 years ago (2013-12-09 18:55:55 UTC) #16
chihchung
+jochen for content/content_tests.gypi owner approval. https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc File content/common/gpu/media/vaapi_h264_decoder_unittest.cc (right): https://codereview.chromium.org/27498002/diff/268001/content/common/gpu/media/vaapi_h264_decoder_unittest.cc#newcode123 content/common/gpu/media/vaapi_h264_decoder_unittest.cc:123: media::VideoCodecProfile profile = media::H264PROFILE_HIGH; ...
6 years, 12 months ago (2013-12-24 07:33:46 UTC) #17
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-03 11:07:25 UTC) #18
chihchung
The CQ bit was checked by chihchung@chromium.org
6 years, 10 months ago (2014-02-11 10:58:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chihchung@chromium.org/27498002/438001
6 years, 10 months ago (2014-02-11 10:58:30 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-11 12:25:57 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=71959
6 years, 10 months ago (2014-02-11 12:25:58 UTC) #22
chihchung
The CQ bit was checked by chihchung@chromium.org
6 years, 10 months ago (2014-02-12 04:52:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chihchung@chromium.org/27498002/718001
6 years, 10 months ago (2014-02-12 04:54:13 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 10:05:26 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=72251
6 years, 10 months ago (2014-02-12 10:05:27 UTC) #26
chihchung
The CQ bit was checked by chihchung@chromium.org
6 years, 10 months ago (2014-02-12 12:08:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chihchung@chromium.org/27498002/1018001
6 years, 10 months ago (2014-02-12 12:08:20 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 13:18:28 UTC) #29
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=72281
6 years, 10 months ago (2014-02-12 13:18:28 UTC) #30
chihchung
The CQ bit was checked by chihchung@chromium.org
6 years, 10 months ago (2014-02-13 05:50:31 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chihchung@chromium.org/27498002/1298001
6 years, 10 months ago (2014-02-13 05:51:53 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 07:30:24 UTC) #33
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=72517
6 years, 10 months ago (2014-02-13 07:30:25 UTC) #34
chihchung
The CQ bit was checked by chihchung@chromium.org
6 years, 10 months ago (2014-02-13 08:52:45 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chihchung@chromium.org/27498002/1588001
6 years, 10 months ago (2014-02-13 08:52:51 UTC) #36
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 14:32:46 UTC) #37
Message was sent while issue was closed.
Change committed as 250987

Powered by Google App Engine
This is Rietveld 408576698