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

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)

Created:
4 years, 3 months ago by hubbe
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Attach color space information to hardware decoded NV12 video frames. This extracts the color information from the h264 stream and attaches it to the video frame. Currently this is only done if the result is NV12 as we don't have the code yet to do it for RGB frames. BUG=622133, 647725 Committed: https://crrev.com/b213e899246050d799ccb6df0e40837b619da8fb Committed: https://crrev.com/f33dc1134c8c48a11280e8f62c96d749c4caf4a0 Cr-Original-Commit-Position: refs/heads/master@{#422942} Cr-Commit-Position: refs/heads/master@{#423776}

Patch Set 1 #

Patch Set 2 : forgot to actually set the color space on the video frame #

Patch Set 3 : fix owners file #

Patch Set 4 : compile fixes for several platforms #

Total comments: 18

Patch Set 5 : comments addressed + compile fixes #

Total comments: 16

Patch Set 6 : comments addressed #

Patch Set 7 : compile fix #

Total comments: 1

Patch Set 8 : compile fix #

Total comments: 10

Patch Set 9 : comment fixed + compile fix #

Patch Set 10 : revert OWNERS #

Total comments: 2

Patch Set 11 : ipc cleanup #

Patch Set 12 : minor bugfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -61 lines) Patch
M content/renderer/pepper/video_decoder_shim.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/h264_parser.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M media/filters/h264_parser.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +29 lines, -7 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/dxva_picture_buffer_win.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.h View 1 2 3 4 5 6 chunks +15 lines, -4 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +38 lines, -18 lines 0 comments Download
M media/gpu/fake_video_decode_accelerator.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/ipc/client/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -5 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -8 lines 0 comments Download
M media/gpu/ipc/common/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/ipc/common/media_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -6 lines 0 comments Download
M media/gpu/ipc/service/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -4 lines 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M media/gpu/vt_video_decode_accelerator_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M media/video/picture.h View 4 chunks +6 lines, -0 lines 0 comments Download
M media/video/picture.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits_macros.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 93 (59 generated)
hubbe
This code is probably full of Wrong, looking for constructive criticism for how to make ...
4 years, 3 months ago (2016-09-15 23:30:21 UTC) #12
sandersd (OOO until July 31)
Just comments on the parser for tonight. https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc#newcode819 media/filters/h264_parser.cc:819: // Default ...
4 years, 3 months ago (2016-09-16 00:55:20 UTC) #17
Pawel Osciak
https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc#newcode819 media/filters/h264_parser.cc:819: // Default color space information. On 2016/09/16 00:55:20, sandersd ...
4 years, 3 months ago (2016-09-16 04:37:39 UTC) #21
hubbe
https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/60001/media/filters/h264_parser.cc#newcode819 media/filters/h264_parser.cc:819: // Default color space information. On 2016/09/16 00:55:20, sandersd ...
4 years, 3 months ago (2016-09-16 18:03:30 UTC) #25
sandersd (OOO until July 31)
I'll go over the rest of the code after lunch. https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc#newcode125 ...
4 years, 3 months ago (2016-09-16 18:50:26 UTC) #28
sandersd (OOO until July 31)
https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc#newcode128 media/filters/h264_parser.cc:128: static_cast<gfx::ColorSpace::PrimaryID>(colour_primaries), On 2016/09/16 18:50:26, sandersd wrote: > This is ...
4 years, 3 months ago (2016-09-16 19:31:47 UTC) #29
hubbe
On 2016/09/16 19:31:47, sandersd wrote: > https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc > File media/filters/h264_parser.cc (right): > > https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc#newcode128 > ...
4 years, 3 months ago (2016-09-16 19:39:25 UTC) #30
sandersd (OOO until July 31)
On 2016/09/16 19:39:25, hubbe wrote: > On 2016/09/16 19:31:47, sandersd wrote: > > > https://codereview.chromium.org/2345123002/diff/80001/media/filters/h264_parser.cc ...
4 years, 3 months ago (2016-09-16 19:42:05 UTC) #31
hubbe
On 2016/09/16 19:42:05, sandersd wrote: > On 2016/09/16 19:39:25, hubbe wrote: > > On 2016/09/16 ...
4 years, 3 months ago (2016-09-16 19:54:35 UTC) #32
sandersd (OOO until July 31)
Looks like there is still some work for DXVA, everything else is good. https://codereview.chromium.org/2345123002/diff/80001/media/filters/gpu_video_decoder.cc File ...
4 years, 3 months ago (2016-09-16 21:54:14 UTC) #33
hubbe
https://codereview.chromium.org/2345123002/diff/80001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://codereview.chromium.org/2345123002/diff/80001/media/filters/gpu_video_decoder.cc#newcode610 media/filters/gpu_video_decoder.cc:610: frame->set_color_space(picture.color_space()); On 2016/09/16 21:54:13, sandersd wrote: > This is ...
4 years, 3 months ago (2016-09-21 22:04:26 UTC) #36
sandersd (OOO until July 31)
lgtm +jbauman@ in case he wants to review DXVA changes as well. https://codereview.chromium.org/2345123002/diff/80001/media/gpu/ipc/common/OWNERS File media/gpu/ipc/common/OWNERS ...
4 years, 3 months ago (2016-09-23 00:33:50 UTC) #48
jbauman
https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode1607 media/gpu/dxva_video_decode_accelerator_win.cc:1607: void DXVAVideoDecodeAccelerator::DoDecode(const gfx::ColorSpace& color_space) { Another idea would be ...
4 years, 3 months ago (2016-09-23 00:55:25 UTC) #49
hubbe
https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode1607 media/gpu/dxva_video_decode_accelerator_win.cc:1607: void DXVAVideoDecodeAccelerator::DoDecode(const gfx::ColorSpace& color_space) { On 2016/09/23 00:55:25, jbauman ...
4 years, 3 months ago (2016-09-23 04:43:01 UTC) #50
jbauman
On 2016/09/23 04:43:01, hubbe wrote: > https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc > File media/gpu/dxva_video_decode_accelerator_win.cc (right): > > https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode1607 > ...
4 years, 3 months ago (2016-09-23 23:17:18 UTC) #51
hubbe
On 2016/09/23 23:17:18, jbauman wrote: > On 2016/09/23 04:43:01, hubbe wrote: > > > https://codereview.chromium.org/2345123002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc ...
4 years, 2 months ago (2016-09-26 19:30:41 UTC) #52
jbauman
On 2016/09/26 19:30:41, hubbe wrote: > On 2016/09/23 23:17:18, jbauman wrote: > > On 2016/09/23 ...
4 years, 2 months ago (2016-09-26 22:52:44 UTC) #53
Pawel Osciak
https://codereview.chromium.org/2345123002/diff/140001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/140001/media/filters/h264_parser.cc#newcode126 media/filters/h264_parser.cc:126: // Comers from VUI section SPS. (E s/Comers/Comes/ "(E" ...
4 years, 2 months ago (2016-09-27 07:01:21 UTC) #54
hubbe
https://codereview.chromium.org/2345123002/diff/140001/media/filters/h264_parser.cc File media/filters/h264_parser.cc (right): https://codereview.chromium.org/2345123002/diff/140001/media/filters/h264_parser.cc#newcode126 media/filters/h264_parser.cc:126: // Comers from VUI section SPS. (E On 2016/09/27 ...
4 years, 2 months ago (2016-09-28 21:32:58 UTC) #57
jbauman
lgtm
4 years, 2 months ago (2016-09-29 22:56:23 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345123002/180001
4 years, 2 months ago (2016-09-30 20:05:43 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/270956)
4 years, 2 months ago (2016-09-30 20:16:24 UTC) #65
hubbe
Adding OWNERS and security reviewers. bbudge: content/renderer/pepper/video_decoder_shim.cc tsepez: media/gpu/ipc/common/media_messages.h ui/gfx/ipc/color/gfx_param_traits_macros.h
4 years, 2 months ago (2016-10-03 22:36:08 UTC) #67
Tom Sepez
https://codereview.chromium.org/2345123002/diff/180001/media/gpu/ipc/common/media_messages.h File media/gpu/ipc/common/media_messages.h (right): https://codereview.chromium.org/2345123002/diff/180001/media/gpu/ipc/common/media_messages.h#newcode123 media/gpu/ipc/common/media_messages.h:123: typedef std::pair<bool, bool> BoolPair; This needs to be in ...
4 years, 2 months ago (2016-10-03 22:44:09 UTC) #68
bbudge
content/renderer/pepper lgtm
4 years, 2 months ago (2016-10-03 22:56:13 UTC) #69
hubbe
https://codereview.chromium.org/2345123002/diff/180001/media/gpu/ipc/common/media_messages.h File media/gpu/ipc/common/media_messages.h (right): https://codereview.chromium.org/2345123002/diff/180001/media/gpu/ipc/common/media_messages.h#newcode123 media/gpu/ipc/common/media_messages.h:123: typedef std::pair<bool, bool> BoolPair; On 2016/10/03 22:44:09, Tom Sepez ...
4 years, 2 months ago (2016-10-04 20:19:37 UTC) #71
Tom Sepez
IPC LGTM, thanks!
4 years, 2 months ago (2016-10-04 20:24:30 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345123002/200001
4 years, 2 months ago (2016-10-04 20:35:02 UTC) #77
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-04 21:40:22 UTC) #79
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/b213e899246050d799ccb6df0e40837b619da8fb Cr-Commit-Position: refs/heads/master@{#422942}
4 years, 2 months ago (2016-10-04 21:44:10 UTC) #81
hubbe
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2399133002/ by hubbe@chromium.org. ...
4 years, 2 months ago (2016-10-06 18:24:37 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345123002/220001
4 years, 2 months ago (2016-10-06 23:21:21 UTC) #89
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-10-07 01:41:06 UTC) #91
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 01:43:04 UTC) #93
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/f33dc1134c8c48a11280e8f62c96d749c4caf4a0
Cr-Commit-Position: refs/heads/master@{#423776}

Powered by Google App Engine
This is Rietveld 408576698