projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5763f6
)
msdk: map P012_LE to VA_FOURCC_P016
author
Haihao Xiang
<haihao.xiang@intel.com>
Tue, 10 Mar 2020 08:03:55 +0000
(16:03 +0800)
committer
Haihao Xiang
<haihao.xiang@intel.com>
Mon, 23 Mar 2020 06:31:29 +0000
(06:31 +0000)
In media driver, VA_FOURCC_P016 is used for semi-planar 12 bits YUV
format, the corresponding RT format is VA_RT_FORMAT_YUV420_12
sys/msdk/gstmsdkallocator_libva.c
patch
|
blob
|
history
diff --git
a/sys/msdk/gstmsdkallocator_libva.c
b/sys/msdk/gstmsdkallocator_libva.c
index
47e7cb5
..
e12719e
100644
(file)
--- a/
sys/msdk/gstmsdkallocator_libva.c
+++ b/
sys/msdk/gstmsdkallocator_libva.c
@@
-579,6
+579,10
@@
gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV444_10;
va_fourcc = VA_FOURCC_Y410;
break;
+ case GST_VIDEO_FORMAT_P012_LE:
+ va_chroma = VA_RT_FORMAT_YUV420_12;
+ va_fourcc = VA_FOURCC_P016;
+ break;
#endif
default:
goto error_unsupported_format;