From: Seungha Yang Date: Mon, 4 Apr 2022 11:36:14 +0000 (+0900) Subject: Revert "vah264enc: Disable derived image support" X-Git-Tag: 1.22.0~1923 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b74da32b5cc82fc31c8ffea8af965b98b2ad7c4d;p=platform%2Fupstream%2Fgstreamer.git Revert "vah264enc: Disable derived image support" This reverts commit 0011feb0d660f331abde5b1e36f1c56e9cf3b014. The commit caused performance-wise regression for some platforms Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c index 5072650..b514c3b 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c @@ -3165,7 +3165,7 @@ _get_sinkpad_pool (GstVaH264Enc * self) allocator = gst_va_allocator_new (self->display, surface_formats); self->raw_pool = gst_va_pool_new_with_config (caps, size, 1, 0, - usage_hint, GST_VA_FEATURE_DISABLED, allocator, ¶ms); + usage_hint, GST_VA_FEATURE_AUTO, allocator, ¶ms); if (!self->raw_pool) { gst_object_unref (allocator); return NULL; @@ -3710,7 +3710,7 @@ gst_va_h264_enc_propose_allocation (GstVideoEncoder * venc, GstQuery * query) return FALSE; pool = gst_va_pool_new_with_config (caps, size, 1, 0, usage_hint, - GST_VA_FEATURE_DISABLED, allocator, ¶ms); + GST_VA_FEATURE_AUTO, allocator, ¶ms); if (!pool) { gst_object_unref (allocator); goto config_failed;