Re: [PATCH spice-streaming-agent 2/2] gst-plugin: Use autovideoconvert element for color space conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 6/27/19 10:43 AM, Frediano Ziglio wrote:
When vaapi based encoder is used it's likely that also vaapi based
conversion is available (using the vaapipostproc element).
Moving to autovideoconvert will automatically choose a suitable
convert element according to elements availability (e.g. in the
vaapi case it would select vaapipostproc due to its high rank).

Signed-off-by: Snir Sheriber <ssheribe@xxxxxxxxxx>
Really minor: vaapi -> VAAPI ?


Sure



Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

---
At first i had a patch to choose vaapipostproc manually but then i remembered
this element
which suppose to do it automatically (it seems vaapipostproc has high enough
rank). I think
it's preferred although it's in gst-plugins-bad
---
  src/gst-plugin.cpp | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gst-plugin.cpp b/src/gst-plugin.cpp
index cf660eb..d8e2d89 100644
--- a/src/gst-plugin.cpp
+++ b/src/gst-plugin.cpp
@@ -215,7 +215,7 @@ void GstreamerFrameCapture::pipeline_init(const
GstreamerEncoderSettings &settin
      if (!capture) {
          throw std::runtime_error("Gstreamer's capture element cannot be
          created");
      }
-    GstObjectUPtr<GstElement>
convert(gst_element_factory_make("videoconvert", "convert"));
+    GstObjectUPtr<GstElement>
convert(gst_element_factory_make("autovideoconvert", "convert"));
      if (!convert) {
          throw std::runtime_error("Gstreamer's 'videoconvert' element cannot
          be created");
Change 'videoconvert' to 'audiovideoconvert' here?


Yes, Missed that.

Snir.



      }
Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]