From: Seungha Yang Date: Mon, 4 Apr 2022 11:47:03 +0000 (+0900) Subject: qsvencoder: Don't use USAGE_HINT_ENCODER and enable derived image support X-Git-Tag: 1.22.0~1922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26fa35dcdf19863513aa3001d838941eb6463a81;p=platform%2Fupstream%2Fgstreamer.git qsvencoder: Don't use USAGE_HINT_ENCODER and enable derived image support Peformance issue by disabled derived image support was reported Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp index 213b565..684fbab 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp @@ -893,7 +893,7 @@ gst_qsv_encoder_prepare_va_pool (GstQsvEncoder * self, priv->internal_pool = gst_va_pool_new_with_config (caps, GST_VIDEO_INFO_SIZE (aligned_info), 0, 0, - VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER, GST_VA_FEATURE_DISABLED, + VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC, GST_VA_FEATURE_AUTO, allocator, ¶ms); gst_object_unref (allocator); @@ -1479,12 +1479,9 @@ gst_qsv_encoder_propose_allocation (GstVideoEncoder * encoder, GstQuery * query) return FALSE; } - /* Will not use derived image - * https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1110 - */ pool = gst_va_pool_new_with_config (caps, GST_VIDEO_INFO_SIZE (&info), priv->surface_pool->len, 0, - VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER, GST_VA_FEATURE_DISABLED, + VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC, GST_VA_FEATURE_AUTO, allocator, ¶ms); if (!pool) {