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

Issue 2503063002: media: Inform VideoBlit/MFTransform of video color information (Closed)

Created:
4 years, 1 month ago by hubbe
Modified:
4 years ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This should a bunch of color decoding bugs on windows. For DX9, this means using VideoProcessBlt instead of StretchRect() (There is a fallback path for StretchRect, not sure if that is needed.) This is controlled by "--enable-features=video-blit-color-accuracy" which defaults to off and will be enabled by an experiment. BUG=655417, 650977, 576419, 576411 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/070e970240f13d29be8930f9316f39ace711a116 Cr-Commit-Position: refs/heads/master@{#435431}

Patch Set 1 #

Total comments: 2

Patch Set 2 : moved enum translation to color_space_win.cc #

Total comments: 4

Patch Set 3 : flag controlled, updated dx11 path #

Total comments: 2

Patch Set 4 : comments addressed #

Total comments: 2

Patch Set 5 : oops #

Patch Set 6 : compile fix #

Patch Set 7 : compile fix #

Patch Set 8 : merged #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -34 lines) Patch
M media/base/media_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/gpu/dxva_picture_buffer_win.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.h View 1 2 3 8 chunks +23 lines, -4 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.cc View 1 2 3 4 10 chunks +163 lines, -27 lines 2 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/color_space.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/color_space_win.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A ui/gfx/color_space_win.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download

Messages

Total messages: 69 (44 generated)
hubbe
Next I plan to figure out how to do this for dx11.
4 years, 1 month ago (2016-11-15 19:13:38 UTC) #5
ccameron
https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h#newcode171 ui/gfx/color_space.h:171: static ColorSpace FromSkColorSpace(const sk_sp<SkColorSpace>& sk_color_space); I think it would ...
4 years, 1 month ago (2016-11-15 19:24:00 UTC) #6
hubbe
https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h#newcode171 ui/gfx/color_space.h:171: static ColorSpace FromSkColorSpace(const sk_sp<SkColorSpace>& sk_color_space); On 2016/11/15 19:24:00, ccameron ...
4 years, 1 month ago (2016-11-16 18:29:05 UTC) #9
ccameron
On 2016/11/16 18:29:05, hubbe wrote: > https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h > File ui/gfx/color_space.h (right): > > https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h#newcode171 > ...
4 years, 1 month ago (2016-11-16 21:38:52 UTC) #10
hubbe
On 2016/11/16 21:38:52, ccameron wrote: > On 2016/11/16 18:29:05, hubbe wrote: > > https://codereview.chromium.org/2503063002/diff/1/ui/gfx/color_space.h > ...
4 years, 1 month ago (2016-11-16 22:01:54 UTC) #11
hubbe
On 2016/11/16 22:01:54, hubbe wrote: > On 2016/11/16 21:38:52, ccameron wrote: > > On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 22:40:09 UTC) #12
hubbe
On 2016/11/16 22:40:09, hubbe wrote: > On 2016/11/16 22:01:54, hubbe wrote: > > On 2016/11/16 ...
4 years, 1 month ago (2016-11-17 00:54:27 UTC) #14
jbauman
https://codereview.chromium.org/2503063002/diff/20001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/20001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode596 media/gpu/dxva_video_decode_accelerator_win.cc:596: LOG(ERROR) << "DX9 DECODING"; Remove these. https://codereview.chromium.org/2503063002/diff/20001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode716 media/gpu/dxva_video_decode_accelerator_win.cc:716: HRESULT ...
4 years, 1 month ago (2016-11-17 01:02:22 UTC) #16
hubbe
Updated dx11 path. Now flag-controlled. Updated CL description. PTAL. https://codereview.chromium.org/2503063002/diff/20001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/20001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode596 media/gpu/dxva_video_decode_accelerator_win.cc:596: ...
4 years, 1 month ago (2016-11-17 18:46:59 UTC) #22
ccameron
lgtm
4 years, 1 month ago (2016-11-17 19:54:44 UTC) #25
hubbe
Ping?
4 years, 1 month ago (2016-11-22 18:10:36 UTC) #26
jbauman
https://codereview.chromium.org/2503063002/diff/40001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/40001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode2691 media/gpu/dxva_video_decode_accelerator_win.cc:2691: return true; We may need to reinitialize this if ...
4 years, 1 month ago (2016-11-22 22:16:59 UTC) #27
hubbe
https://codereview.chromium.org/2503063002/diff/40001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/40001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode2691 media/gpu/dxva_video_decode_accelerator_win.cc:2691: return true; On 2016/11/22 22:16:59, jbauman wrote: > We ...
4 years ago (2016-11-23 21:21:26 UTC) #29
jbauman
https://codereview.chromium.org/2503063002/diff/60001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/60001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode2718 media/gpu/dxva_video_decode_accelerator_win.cc:2718: video_format_converter_mft_ = NULL; You can't set this to NULL ...
4 years ago (2016-11-23 22:20:14 UTC) #31
hubbe
https://codereview.chromium.org/2503063002/diff/60001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/60001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode2718 media/gpu/dxva_video_decode_accelerator_win.cc:2718: video_format_converter_mft_ = NULL; On 2016/11/23 22:20:14, jbauman wrote: > ...
4 years ago (2016-11-23 23:59:21 UTC) #36
jbauman
lgtm
4 years ago (2016-11-24 00:01:49 UTC) #37
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/2503063002/120001
4 years ago (2016-11-29 20:48:04 UTC) #48
commit-bot: I haz the power
Failed to apply patch for media/base/media_switches.h: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-29 20:59:25 UTC) #50
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/2503063002/140001
4 years ago (2016-11-30 03:22:16 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-30 05:24:07 UTC) #59
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/2503063002/140001
4 years ago (2016-11-30 20:34:43 UTC) #61
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-11-30 21:53:55 UTC) #64
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/070e970240f13d29be8930f9316f39ace711a116 Cr-Commit-Position: refs/heads/master@{#435431}
4 years ago (2016-11-30 21:56:17 UTC) #66
brucedawson
https://codereview.chromium.org/2503063002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc File media/gpu/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/2503063002/diff/140001/media/gpu/dxva_video_decode_accelerator_win.cc#newcode754 media/gpu/dxva_video_decode_accelerator_win.cc:754: if (hr) The experimental VC++ /analyze builder gives the ...
4 years ago (2016-12-06 21:41:15 UTC) #68
hubbe
4 years ago (2016-12-06 21:46:34 UTC) #69
Message was sent while issue was closed.
https://codereview.chromium.org/2503063002/diff/140001/media/gpu/dxva_video_d...
File media/gpu/dxva_video_decode_accelerator_win.cc (right):

https://codereview.chromium.org/2503063002/diff/140001/media/gpu/dxva_video_d...
media/gpu/dxva_video_decode_accelerator_win.cc:754: if (hr)
On 2016/12/06 21:41:15, brucedawson wrote:
> The experimental VC++ /analyze builder gives the following on this line and
the
> other three checks of |hr|:
> 
> warning C6230: Implicit cast between semantically different integer types: 
> using HRESULT in a Boolean context.
> 
> It wants you to use if (FAILED(hr)) instead. The difference is that the FAILED
> macro checks whether hr is negative or not - a positive but non-zero result
does
> not actually indicate a failure.
> 
> If the non-standard use of hr is intended then a comment is probably
worthwhile.
> If not intended then if (FAILED(hr)) would be better I think.

Will fix in a followup CL.

Powered by Google App Engine
This is Rietveld 408576698