vaapiencode: handle DMABuf caps feature in sink pad

Add DMABuff caps features in all encoders' sink pad.
This commit is contained in:
Wangfei 2019-03-15 14:29:41 +08:00 committed by Víctor Manuel Jáquez Leal
parent 2541a33d6c
commit 2ee518a988
8 changed files with 16 additions and 1 deletions

View file

@ -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;

View file

@ -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* */

View file

@ -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* */

View file

@ -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* */

View file

@ -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* */

View file

@ -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* */

View file

@ -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* */

View file

@ -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* */