mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
vaapipostroc: GLTextureUploadMeta in sink template
Advertise GLTextureUploadMeta in sink caps template. https://bugzilla.gnome.org/show_bug.cgi?id=752130
This commit is contained in:
parent
001a5c637d
commit
954037cd24
1 changed files with 6 additions and 3 deletions
|
@ -48,11 +48,16 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapipostproc);
|
|||
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
|
||||
GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE, "{ ENCODED, I420, YV12, NV12 }")
|
||||
|
||||
# define GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS \
|
||||
GST_VIDEO_CAPS_MAKE_WITH_FEATURES( \
|
||||
GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }")
|
||||
|
||||
/* Default templates */
|
||||
/* *INDENT-OFF* */
|
||||
static const char gst_vaapipostproc_sink_caps_str[] =
|
||||
GST_VAAPIPOSTPROC_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_MODES "; "
|
||||
GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_MODES;
|
||||
/* *INDENT-ON* */
|
||||
|
@ -61,9 +66,7 @@ static const char gst_vaapipostproc_sink_caps_str[] =
|
|||
static const char gst_vaapipostproc_src_caps_str[] =
|
||||
GST_VAAPIPOSTPROC_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE_WITH_FEATURES (
|
||||
GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }") ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VAAPIPOSTPROC_GLTEXUPLOAD_CAPS "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
|
Loading…
Reference in a new issue