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

Issue 119153002: Move H264Parser and H264BitReader to media/filters. (Closed)

Created:
7 years ago by Pawel Osciak
Modified:
6 years, 11 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Move H264Parser and H264BitReader to media/filters. In preparation for wider usage in media code, move the H.264 parser and reader classes to media/filters from GPU-accelerated media locations, and into the media namespace. These classes have only been, up to now, used by hardware decode accelerators. Also, move their unittests along and make them a part of media_unittests, demoting H264ParserUnittest from being a standalone executable. While it was designed to be run on a set of streams from commandline, it should make more sense to run it more regularly (if only on just one stream), together with media tests, to prevent basic regressions, if it's to be used more widely than only in CrOS hardware acceleration classes. BUG=None TEST=Build VAVDA and vdaunittest for x86, build EVDA, vdaunittest and veaunittest for ARM. Also build and run media_unittests for both. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244132

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix parser unittest test stream path (use PathService::Get(base::DIR_SOURCE_ROOT...)) #

Patch Set 4 : Add test-25fps.h264 to isolate #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Rebase #

Patch Set 7 : And another #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -2146 lines) Patch
D content/common/gpu/media/h264_bit_reader.h View 1 chunk +0 lines, -79 lines 0 comments Download
D content/common/gpu/media/h264_bit_reader.cc View 1 chunk +0 lines, -112 lines 0 comments Download
D content/common/gpu/media/h264_bit_reader_unittest.cc View 1 chunk +0 lines, -72 lines 0 comments Download
M content/common/gpu/media/h264_dpb.h View 2 chunks +3 lines, -2 lines 0 comments Download
D content/common/gpu/media/h264_parser.h View 1 chunk +0 lines, -355 lines 0 comments Download
D content/common/gpu/media/h264_parser.cc View 1 chunk +0 lines, -1133 lines 0 comments Download
D content/common/gpu/media/h264_parser_unittest.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.h View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 6 chunks +14 lines, -14 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder.h View 6 chunks +12 lines, -12 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder.cc View 25 chunks +40 lines, -37 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -10 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -24 lines 0 comments Download
A + media/filters/h264_bit_reader.h View 3 chunks +8 lines, -8 lines 0 comments Download
A + media/filters/h264_bit_reader.cc View 1 4 chunks +12 lines, -11 lines 0 comments Download
A + media/filters/h264_bit_reader_unittest.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
A + media/filters/h264_parser.h View 13 chunks +29 lines, -26 lines 0 comments Download
A + media/filters/h264_parser.cc View 1 23 chunks +113 lines, -113 lines 0 comments Download
A + media/filters/h264_parser_unittest.cc View 1 2 3 4 3 chunks +14 lines, -35 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Pawel Osciak
7 years ago (2013-12-19 12:12:16 UTC) #1
Ami GONE FROM CHROMIUM
LGTM assuming the new files in media/ are straight-up copies.
7 years ago (2013-12-19 19:01:19 UTC) #2
Pawel Osciak
On 2013/12/19 19:01:19, Ami Fischman (OOO Dec23-Jan5) wrote: > LGTM assuming the new files in ...
7 years ago (2013-12-20 00:32:01 UTC) #3
Pawel Osciak
Adding random sample of OWNERS for: content/content_common.gypi content/content_tests.gypi avi@, piman@, darin@: would appreciate a singoff ...
7 years ago (2013-12-20 00:36:09 UTC) #4
Avi (use Gerrit)
All red in content? LGTM
7 years ago (2013-12-20 01:30:39 UTC) #5
Pawel Osciak
PS3: Use PathService::Get(base::DIR_SOURCE_ROOT...) for test stream path acquisition. Propagating LGTMs.
7 years ago (2013-12-24 07:23:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/119153002/110001
7 years ago (2013-12-24 07:23:25 UTC) #7
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 12 months ago (2013-12-24 13:45:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/119153002/110001
6 years, 12 months ago (2013-12-25 01:01:13 UTC) #9
Pawel Osciak
So the H264ParserTest in media_unittests now uses content/common/gpu/testdata/test-25fps.h264, also added it to isolate. Media OWNERS: ...
6 years, 12 months ago (2013-12-25 08:47:23 UTC) #11
Pawel Osciak
+maruel: please *.isolate.
6 years, 12 months ago (2013-12-25 08:51:51 UTC) #12
Ami GONE FROM CHROMIUM
On 2013/12/25 08:47:23, posciak wrote: > So the H264ParserTest in media_unittests now uses > content/common/gpu/testdata/test-25fps.h264, ...
6 years, 11 months ago (2014-01-01 03:50:28 UTC) #13
Pawel Osciak
On 2014/01/01 03:50:28, Ami Fischman (OOO Dec23-Jan5) wrote: > On 2013/12/25 08:47:23, posciak wrote: > ...
6 years, 11 months ago (2014-01-02 06:32:23 UTC) #14
Ami GONE FROM CHROMIUM
I prefer data dependencies to honor DEPS files ;) On Jan 1, 2014 8:32 PM, ...
6 years, 11 months ago (2014-01-02 06:43:07 UTC) #15
M-A Ruel
On 2014/01/02 06:43:07, Ami Fischman (OOO Dec23-Jan5) wrote: > I prefer data dependencies to honor ...
6 years, 11 months ago (2014-01-02 13:28:30 UTC) #16
Pawel Osciak
On 2014/01/02 06:43:07, Ami Fischman wrote: > I prefer data dependencies to honor DEPS files ...
6 years, 11 months ago (2014-01-06 05:49:06 UTC) #17
Ami GONE FROM CHROMIUM
Data goes in media/, content test depends on it from that location. Same thing I ...
6 years, 11 months ago (2014-01-06 06:00:36 UTC) #18
Pawel Osciak
On 2014/01/06 06:00:36, Ami Fischman wrote: > Data goes in media/, content test depends on ...
6 years, 11 months ago (2014-01-06 07:33:01 UTC) #19
Ami GONE FROM CHROMIUM
On Sun, Jan 5, 2014 at 11:33 PM, <posciak@chromium.org> wrote: > On 2014/01/06 06:00:36, Ami ...
6 years, 11 months ago (2014-01-06 16:26:34 UTC) #20
scherkus (not reviewing)
On 2014/01/06 16:26:34, Ami Fischman wrote: > On Sun, Jan 5, 2014 at 11:33 PM, ...
6 years, 11 months ago (2014-01-06 19:59:39 UTC) #21
scherkus (not reviewing)
(also some nits) https://chromiumcodereview.appspot.com/119153002/diff/600001/media/filters/h264_bit_reader_unittest.cc File media/filters/h264_bit_reader_unittest.cc (right): https://chromiumcodereview.appspot.com/119153002/diff/600001/media/filters/h264_bit_reader_unittest.cc#newcode8 media/filters/h264_bit_reader_unittest.cc:8: using media::H264BitReader; unless there's some strong ...
6 years, 11 months ago (2014-01-06 20:10:11 UTC) #22
piman
lgtm
6 years, 11 months ago (2014-01-08 04:25:48 UTC) #23
Pawel Osciak
We have more test streams in content/common/gpu/testdata and I think it's not the best idea ...
6 years, 11 months ago (2014-01-08 07:30:33 UTC) #24
Ami GONE FROM CHROMIUM
On Tue, Jan 7, 2014 at 11:30 PM, <posciak@chromium.org> wrote: > So in this CL ...
6 years, 11 months ago (2014-01-08 21:02:22 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/119153002/1490003
6 years, 11 months ago (2014-01-10 07:27:44 UTC) #26
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 09:11:30 UTC) #27
Message was sent while issue was closed.
Change committed as 244132

Powered by Google App Engine
This is Rietveld 408576698