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

Issue 2689453002: Introduce gfx::BufferFormat::YUYV_422

Created:
3 years, 10 months ago by dshwang
Modified:
3 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, kalyank, mac-reviews_chromium.org, marcheu, ozone-reviews_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce gfx::BufferFormat::YUYV_422 YUYV is only format supported by all linux stack such as kernel, mesa, minigbm, and gpu decoder. So ChromeOS IA prefers to use YUYV for video decoding. crrev.com/2648633005 depends on this CL. BUG=683347 TEST=gl_unittests, ozone_unittests CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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

Patch Set 1 #

Patch Set 2 : build fix #

Patch Set 3 : rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -21 lines) Patch
M components/exo/buffer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_internals_ui.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gpu_memory_buffer_support.cc View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/host/gpu_memory_buffer_support.cc View 1 2 2 chunks +16 lines, -9 lines 0 comments Download
M ui/gfx/buffer_format_util.cc View 1 2 5 chunks +22 lines, -10 lines 0 comments Download
M ui/gfx/buffer_types.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gfx/mac/io_surface.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gfx/mojo/buffer_types.mojom View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/mojo/buffer_types_struct_traits.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 7 chunks +7 lines, -0 lines 0 comments Download
M ui/gl/gl_image_native_pixmap.cc View 1 2 5 chunks +7 lines, -0 lines 0 comments Download
M ui/gl/test/gl_image_test_support.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/drm_util.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (19 generated)
dshwang
dcastagna@, as you reviewed in https://codereview.chromium.org/2648633005/, YUYV introduction part is extracted to here. bajones@: could ...
3 years, 10 months ago (2017-02-09 03:47:27 UTC) #5
Daniele Castagna
ccing marcheu
3 years, 10 months ago (2017-02-09 03:55:15 UTC) #8
dshwang
On 2017/02/09 03:55:15, Daniele Castagna wrote: > ccing marcheu Thanks for ccing. marcheu@, could you ...
3 years, 10 months ago (2017-02-10 23:33:10 UTC) #13
dshwang
marcheu@, could you review? This prototype consists of 6 CLs. cc: UYVY video is not ...
3 years, 10 months ago (2017-02-21 22:04:07 UTC) #16
dshwang
dcastagna@, could we proceed this review? "mmap(dma_buf) failure" and this CL is not related. Gpu ...
3 years, 9 months ago (2017-02-28 02:18:24 UTC) #17
Daniele Castagna
On 2017/02/28 at 02:18:24, dongseong.hwang wrote: > dcastagna@, could we proceed this review? > > ...
3 years, 9 months ago (2017-02-28 03:09:40 UTC) #18
dshwang
On 2017/02/28 03:09:40, Daniele Castagna wrote: > On 2017/02/28 at 02:18:24, dongseong.hwang wrote: > > ...
3 years, 9 months ago (2017-02-28 04:05:15 UTC) #19
dshwang
Hi Daniele, could you resume to review it again? Now dma_buf issue is fixed. :)
3 years, 6 months ago (2017-06-01 22:36:03 UTC) #22
dshwang
On 2017/06/01 22:36:03, dshwang wrote: > Hi Daniele, could you resume to review it again? ...
3 years, 6 months ago (2017-06-03 00:02:01 UTC) #28
Daniele Castagna
Can UYVY be used instead? That is what we're using on Mac already. It'd be ...
3 years, 6 months ago (2017-06-03 20:50:20 UTC) #29
dshwang
On 2017/06/03 20:50:20, Daniele Castagna wrote: > Can UYVY be used instead? That is what ...
3 years, 6 months ago (2017-06-06 00:19:18 UTC) #30
dshwang
Discussed about UYVY support in mesa with Chad and Kristian. Mesa is willing to accept ...
3 years, 6 months ago (2017-06-08 23:38:01 UTC) #31
Daniele Castagna
On 2017/06/08 at 23:38:01, dongseong.hwang wrote: > Discussed about UYVY support in mesa with Chad ...
3 years, 6 months ago (2017-06-13 19:20:43 UTC) #32
dshwang
3 years, 6 months ago (2017-06-16 21:08:25 UTC) #33
On 2017/06/13 19:20:43, Daniele Castagna wrote:
> On 2017/06/08 at 23:38:01, dongseong.hwang wrote:
> > Discussed about UYVY support in mesa with Chad and Kristian. Mesa is willing
> to accept UYUV support. Intel mesa engineers began implementing it.
> Great. This solution seems better.

Johnson is working on UYUV support
https://lists.freedesktop.org/archives/mesa-dev/2017-June/159576.html

> > On the other hands, I think NV12 is better choice while it's not overlayable
> in IA yet. Could you review NV12 CL in
> https://codereview.chromium.org/2678343011/ ?
> What do you mean by this? That NV12 is a better choice while we can't do HW
> overlays? Will we ever be able to use HW overlays with NV12?

Gen9 Intel GPU hardware (i.e. Kabylake and Apollolake) supports NV12, but there
is missing bit in kernel.
Vidya is working in progress in upstream kernel.
https://patchwork.freedesktop.org/series/25377/
After it's landed, I'll backport it to cros kernel v4.4

Powered by Google App Engine
This is Rietveld 408576698