summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-16 16:25:02 +0800
committerHe Junyan <junyan.he@hotmail.com>2019-12-16 16:32:39 +0800
commit2cad0e56291c87f1b5e458c62a1e314f7cb2f8c9 (patch)
treee3f766aa4a11781cc7e8b7b212d40d10fca457a5
parentb1bab9a3178fc627fd1f119b2d88a3ee6e99d67e (diff)
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.
-rw-r--r--gst/vaapi/gstvaapiencode_h264.c2
-rw-r--r--gst/vaapi/gstvaapiencode_h264_fei.c2
-rw-r--r--gst/vaapi/gstvaapiencode_h265.c2
-rw-r--r--gst/vaapi/gstvaapiencode_jpeg.c2
-rw-r--r--gst/vaapi/gstvaapiencode_mpeg2.c2
-rw-r--r--gst/vaapi/gstvaapiencode_vp8.c2
-rw-r--r--gst/vaapi/gstvaapiencode_vp9.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/gst/vaapi/gstvaapiencode_h264.c b/gst/vaapi/gstvaapiencode_h264.c
index 4d452a09..e1d91b67 100644
--- a/gst/vaapi/gstvaapiencode_h264.c
+++ b/gst/vaapi/gstvaapiencode_h264.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_h264_fei.c b/gst/vaapi/gstvaapiencode_h264_fei.c
index c09eaea8..c45e8d2a 100644
--- a/gst/vaapi/gstvaapiencode_h264_fei.c
+++ b/gst/vaapi/gstvaapiencode_h264_fei.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c
index ed00a938..711f5e14 100644
--- a/gst/vaapi/gstvaapiencode_h265.c
+++ b/gst/vaapi/gstvaapiencode_h265.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_jpeg.c b/gst/vaapi/gstvaapiencode_jpeg.c
index 0de5cb38..d532429e 100644
--- a/gst/vaapi/gstvaapiencode_jpeg.c
+++ b/gst/vaapi/gstvaapiencode_jpeg.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_mpeg2.c b/gst/vaapi/gstvaapiencode_mpeg2.c
index 810de09f..a01042f6 100644
--- a/gst/vaapi/gstvaapiencode_mpeg2.c
+++ b/gst/vaapi/gstvaapiencode_mpeg2.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_vp8.c b/gst/vaapi/gstvaapiencode_vp8.c
index 64a3879f..767ec385 100644
--- a/gst/vaapi/gstvaapiencode_vp8.c
+++ b/gst/vaapi/gstvaapiencode_vp8.c
@@ -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;
diff --git a/gst/vaapi/gstvaapiencode_vp9.c b/gst/vaapi/gstvaapiencode_vp9.c
index 97d2e136..6fed2382 100644
--- a/gst/vaapi/gstvaapiencode_vp9.c
+++ b/gst/vaapi/gstvaapiencode_vp9.c
@@ -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;