summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-18 00:40:58 +0800
committerHe Junyan <junyan.he@hotmail.com>2019-12-18 20:34:27 +0800
commit61de88e58030e245b596fd10af422615c08cb9a3 (patch)
tree18e0bddf39111ef9feb132c8cfb5384ec3abaebc
parent4bb41e6ca3973176046f92d7dcd7a4f63f08dd1c (diff)
plugin: encode: change the dmabuf caps to all supported formats.
The encode's dmabuf caps definition is obsolete, it can support more formats now. Re-define it to include all supported formats in video format map.
-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 e1d91b67..018917f8 100644
--- a/gst/vaapi/gstvaapiencode_h264.c
+++ b/gst/vaapi/gstvaapiencode_h264.c
@@ -84,7 +84,7 @@ static const char gst_vaapiencode_h264_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_h264_fei.c b/gst/vaapi/gstvaapiencode_h264_fei.c
index c45e8d2a..5a998afb 100644
--- a/gst/vaapi/gstvaapiencode_h264_fei.c
+++ b/gst/vaapi/gstvaapiencode_h264_fei.c
@@ -64,7 +64,7 @@ static const char gst_vaapiencode_h264_fei_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c
index 711f5e14..5fb2cfbd 100644
--- a/gst/vaapi/gstvaapiencode_h265.c
+++ b/gst/vaapi/gstvaapiencode_h265.c
@@ -58,7 +58,7 @@ static const char gst_vaapiencode_h265_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_jpeg.c b/gst/vaapi/gstvaapiencode_jpeg.c
index d532429e..34a0efd0 100644
--- a/gst/vaapi/gstvaapiencode_jpeg.c
+++ b/gst/vaapi/gstvaapiencode_jpeg.c
@@ -55,7 +55,7 @@ static const char gst_vaapiencode_jpeg_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_mpeg2.c b/gst/vaapi/gstvaapiencode_mpeg2.c
index a01042f6..06b3458c 100644
--- a/gst/vaapi/gstvaapiencode_mpeg2.c
+++ b/gst/vaapi/gstvaapiencode_mpeg2.c
@@ -57,7 +57,7 @@ static const char gst_vaapiencode_mpeg2_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_vp8.c b/gst/vaapi/gstvaapiencode_vp8.c
index 767ec385..001a2f30 100644
--- a/gst/vaapi/gstvaapiencode_vp8.c
+++ b/gst/vaapi/gstvaapiencode_vp8.c
@@ -55,7 +55,7 @@ static const char gst_vaapiencode_vp8_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */
diff --git a/gst/vaapi/gstvaapiencode_vp9.c b/gst/vaapi/gstvaapiencode_vp9.c
index 6fed2382..1fd0f8ed 100644
--- a/gst/vaapi/gstvaapiencode_vp9.c
+++ b/gst/vaapi/gstvaapiencode_vp9.c
@@ -55,7 +55,7 @@ static const char gst_vaapiencode_vp9_sink_caps_str[] =
GST_CAPS_INTERLACED_FALSE "; "
GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_FALSE ";"
- GST_VAAPI_MAKE_DMABUF_CAPS ","
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, GST_VAAPI_FORMATS_ALL) ","
GST_CAPS_INTERLACED_FALSE;
/* *INDENT-ON* */