
40
Image Processing Plugins
4.1.11.1 Example Using gst-launch
This pipeline outputs a test video generated in YUY2 format in a video window.
gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2 ! videoconvert ! xvimagesink
If the video sink selected does not support YUY2,
videoconvert
will automatically convert the video to a format
understood by the video sink.
Note
: The element ‘xvimagesink’ is only supported on Linux. It is recommended to use the ‘glimagesink’ or
‘d3dvideosink’ elements to display the window on Windows.
4.1.12 videoscale
This element resizes video frames. By default the element will try to negotiate to the same size on the source and
sinkpad so that no scaling is needed. It is therefore safe to insert this element in a pipeline to get more robust
behavior without any cost if no scaling is needed.
This element supports a wide range of color spaces including various YUV and RGB formats and is therefore
generally able to operate anywhere in a pipeline.
For more details, refer to the official documentation at:
https://gstreamer.freedesktop.org/documentation/videoscale/index.html?gi-language=c#videoscale-page
4.1.12.1 Example Using gst-launch
This pipeline resizes the frames from videotestsrc to 720x576 and displays it via xvimagesink.
gst-launch-1.0 videotestsrc ! videoscale ! video/x-raw,width=720,height=576 !
xvimagesink
Note
: The element ‘xvimagesink’ is only supported on Linux. It is recommended to use the ‘glimagesink’ or
‘d3dvideosink’ elements to display the window on Windows.
4.1.13 videocrop
This element crops video frames, meaning it can remove parts of the picture on the left, right, top or bottom of the
picture and output a smaller picture with the unwanted parts removed.
For more details, refer to the official documentation at:
https://gstreamer.freedesktop.org/documentation/videocrop/videocrop.html?gi-language=c#videocrop
Note
: No special effort is made to handle chroma-subsampled formats in the case of odd-valued cropping and
compensation for sub-unit chroma plane shifts in the case where the left or top property is set to an odd number.
Summary of Contents for EVA SDK
Page 1: ...EVA SDK User s Manual Manual Rev 1 2 Revision Date July 20 2021 Part Number 50M 00010 1020...
Page 4: ...iv Preface This page intentionally left blank...
Page 8: ...4 Introduction This page intentionally left blank...
Page 10: ...6 Setting Environment Variables This page intentionally left blank...
Page 78: ...74 Image Processing Plugins This page intentionally left blank...
Page 110: ...106 Convert for OpenVINO Model This page intentionally left blank...