mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +00:00
plugin: encode: set sink's raw caps to GST_VAAPI_FORMATS_ALL.
Then encode plugin just supports raw formats declared in vaapi video format map. This modification makes the template caps more precise.
This commit is contained in:
parent
b1bab9a317
commit
2cad0e5629
7 changed files with 7 additions and 7 deletions
|
@ -82,7 +82,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -62,7 +62,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_fei_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -56,7 +56,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h265_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -53,7 +53,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_jpeg_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -55,7 +55,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_mpeg2_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -53,7 +53,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_vp8_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
|
@ -53,7 +53,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_vaapi_vp9_encode_debug);
|
|||
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_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
|
||||
GST_CAPS_INTERLACED_FALSE ";"
|
||||
GST_VAAPI_MAKE_DMABUF_CAPS ","
|
||||
GST_CAPS_INTERLACED_FALSE;
|
||||
|
|
Loading…
Reference in a new issue