Skip to contentSkip to conversation

libdrm/fourcc: Add formats R8, RG88, GR88

PATCH In review Dongseong Hwang 3 participants 4 messages Apr 21, 2016 – Apr 22, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdrm/fourcc: Add formats R8, RG88, GR88

Follow-up of kernel patch: https://lists.freedesktop.org/archives/dri-devel/2015-July/086041.html

The Kodi/XBMC and ChromeOS developers want to transcode NV12 to RGB with OpenGL shaders, importing the two source planes through EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.

Cc Rainer Hochecker <[email protected]>
Cc Benjamin Widawsky <[email protected]>
CC Chad Versace <[email protected]>
---
 include/drm/drm_fourcc.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/drm/drm_fourcc.h +7 -0
index e741b09..ca2f488 100644
@@ -34,6 +34,13 @@
 /* color index */
 #define DRM_FORMAT_C8		fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
 
+/* 8 bpp Red */
+#define DRM_FORMAT_R8		fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
+
+/* 16 bpp RG */
+#define DRM_FORMAT_RG88		fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
+#define DRM_FORMAT_GR88		fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
+
 /* 8 bpp RGB */
 #define DRM_FORMAT_RGB332	fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
 #define DRM_FORMAT_BGR233	fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
Signature · 6 lines
2.5.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 7 lines · Dongseong Hwang

Follow-up of kernel patch: https://lists.freedesktop.org/archives/dri-devel/2015-July/086041.html

The Kodi/XBMC and ChromeOS developers want to transcode NV12 to RGB with OpenGL shaders, importing the two source planes through EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.

Can we please add a note about the commit and tree where this is based on. See how Danel Vetter has done it recently (barring the typo -s/fromd/from/).

Thank you !
Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

Ok, I'll send new patch with the commit and tree.

Thanks and Regards,
Dongseong

Quoted 11 lines · Emil Velikov
Quoted 1 line · Dongseong Hwang

Follow-up of kernel patch:

https://lists.freedesktop.org/archives/dri-devel/2015-July/086041.html

Quoted 6 lines

The Kodi/XBMC and ChromeOS developers want to transcode NV12 to RGB with OpenGL shaders, importing the two source planes through EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.

Quoted 7 lines

Can we please add a note about the commit and tree where this is based on. See how Danel Vetter has done it recently (barring the typo -s/fromd/from/).

Thank you !
Emil

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 1 line · Dongseong

Ok, I'll send new patch with the commit and tree.

You can't do that yet since the commit hasn't landed in upstream. Taking a sha1 from your own tree is useless. My point of noting the sha1 is that it must be from a non-rebasing tree which will land in Linus' tree, so that in the future it can be found again.
-Daniel

Quoted 30 lines

Thanks and Regards,
Dongseong

Quoted 11 lines · Emil Velikov
Quoted 1 line · Dongseong Hwang

Follow-up of kernel patch:

https://lists.freedesktop.org/archives/dri-devel/2015-July/086041.html

Quoted 6 lines

The Kodi/XBMC and ChromeOS developers want to transcode NV12 to RGB with OpenGL shaders, importing the two source planes through EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.

Quoted 7 lines

Can we please add a note about the commit and tree where this is based on. See how Danel Vetter has done it recently (barring the typo -s/fromd/from/).

Thank you !
Emil

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel