mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
vaapiencode: handle DMABuf caps feature in sink pad
Add DMABuff caps features in all encoders' sink pad.
This commit is contained in:
parent
2541a33d6c
commit
2ee518a988
8 changed files with 16 additions and 1 deletions
|
@ -379,7 +379,8 @@ ensure_allowed_sinkpad_caps (GstVaapiEncode * encode)
|
|||
if (!encode->encoder)
|
||||
return TRUE;
|
||||
|
||||
out_caps = gst_caps_from_string (GST_VAAPI_MAKE_SURFACE_CAPS);
|
||||
out_caps = gst_caps_from_string (GST_VAAPI_MAKE_SURFACE_CAPS ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS);
|
||||
if (!out_caps)
|
||||
goto failed_create_va_caps;
|
||||
|
||||
|
|
|
@ -84,6 +84,8 @@ static const char gst_vaapiencode_h264_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ static const char gst_vaapiencode_h264_fei_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -58,6 +58,8 @@ static const char gst_vaapiencode_h265_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ static const char gst_vaapiencode_jpeg_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -57,6 +57,8 @@ static const char gst_vaapiencode_mpeg2_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ static const char gst_vaapiencode_vp8_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ static const char gst_vaapiencode_vp9_sink_caps_str[] =
|
|||
GST_VAAPI_MAKE_SURFACE_CAPS ", "
|
||||
GST_CAPS_INTERLACED_FALSE "; "
|
||||
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
Loading…
Reference in a new issue