I convert color space from YUY2 to RGB24 by hardware path. But it cannot be included YUY2 format in caps of imxvideoconvert_ipu . However, in spec file of imx6q , said it can support any one of color formats defined in MPEG-4 standard.
Hello,
You may look at section 7.3.15 (Video conversion) of "i.MX_Linux_User's_Guide.pdf"
in recent Linux BSP doc package.
"Use gst-inspect-1.0 to get each convertor's capability and supported input and output formats."
In particular :
root@imx6qdlsolo:~# gst-inspect-1.0 imxvideoconvert_ipu
Factory Details:
Rank primary + 1 (257)
Long-name IMX ipu Video Converter
Klass Filter/Converter/Video
Description Video CSC/Resize/Rotate/Deinterlace.
Author Multimedia Team <shmmmw@freescale.com>
Plugin Details:
Name imxvideoconvert.imx
Description IMX Video Convert Plugins
Filename /usr/lib/gstreamer-1.0/libgstimxvideoconvert.so
Version 4.0.9
License LGPL
Source module imx-gst1.0-plugin
Binary package Freescle Gstreamer Multimedia Plugins
Origin URL http://www.freescale.com
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstBaseTransform
+----GstVideoFilter
+----imxvideoconvert_ipu
Pad Templates:
SRC template: 'src'
Availability: Always
Capabilities:
video/x-raw
format: { I420, NV12, YV12, UYVY, RGB16, RGBx, Y42B, Y444, v308, BGR, RGB, BGRx, BGRA, RGBA, ABGR }
video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)
format: { I420, NV12, YV12, UYVY, RGB16, RGBx, Y42B, Y444, v308, BGR, RGB, BGRx, BGRA, RGBA, ABGR }
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-raw
format: { I420, NV12, YV12, UYVY, RGB16, RGBx, Y42B, Y444, v308, BGR, RGB, BGRx, BGRA, RGBA, ABGR }
video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)
format: { I420, NV12, YV12, UYVY, RGB16, RGBx, Y42B, Y444, v308, BGR, RGB, BGRx, BGRA, RGBA, ABGR }
Element Flags:
no flags set
Element Implementation:
Has change_state() function: gst_element_change_state_func
Element has no clocking capabilities.
Element has no URI handling capabilities.
Pads:
SINK: 'sink'
Pad Template: 'sink'
SRC: 'src'
Pad Template: 'src'
Element Properties:
name : The name of the object
flags: readable, writable
String. Default: "imxvideoconvert_ipu0"
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
qos : Handle Quality-of-Service events
flags: readable, writable
Boolean. Default: true
rotation : Rotation that shall be applied to output frames
flags: readable, writable
Enum "ImxVideoConvertRotationMode" Default: 0, "none"
(0): none - No rotation
(1): rotate-90 - Rotate 90 degrees
(2): rotate-180 - Rotate 180 degrees
(3): rotate-270 - Rotate 270 degrees
(4): horizontal-flip - Flip horizontally
(5): vertical-flip - Flip vertically
deinterlace : Deinterlacing mode to be used for incoming frames (ignored if frames are not interlaced)
flags: readable, writable
Enum "ImxVideoConvertDeinterlaceMode" Default: 0, "none"
(0): none - No deinterlace
(1): low-motion - low-motion deinterlace
(2): mid-motion - midium-motion deinterlace
(3): high-motion - high-motion deinterlace
composition-meta-enable: Enable overlay composition meta processing
flags: readable, writable
Boolean. Default: false
in-place : Handle composition meta in place in pass through mode, video overlay composition will blended onto input buffer
flags: readable, writable
Boolean. Default: false
root@imx6qdlsolo:~#
Regards,
Yuri.
Most likely, your version of imxvideoconvert_ipu does not support the YUY2 format. Type 'gst-inspect-1.0 imxvideoconvert_ipu' for the list of supported formats.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------