Skip to content

tiovxdlcolorconvert

abhaychirania2411 edited this page Jun 1, 2023 · 2 revisions

TIOVX DL Color Convert

tiovxdlcolorconvert is used to convert video frames between different video formats.

Hierarchy

GObject
 ╰──GInitiallyUnowned
     ╰──GstObject
         ╰──GstElement
             ╰──GstBaseTransform
                 ╰──GstTIOVXSiso
                     ╰──GstTIOVXDLColorconvert

Pad templates

sink

      video/x-raw
                 format: { (string)RGB, (string)NV12, (string)NV21, (string)I420 }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
      video/x-raw(memory:batched)
                 format: { (string)RGB, (string)NV12, (string)NV21, (string)I420 }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
           num-channels: [ 1, 16 ]

Availability – always

Direction – sink

Object type – GstPad

src

      video/x-raw
                 format: { (string)RGB, (string)NV12, (string)I420 }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
      video/x-raw(memory:batched)
                 format: { (string)RGB, (string)NV12, (string)I420 }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
           num-channels: [ 1, 16 ]

Availability – always

Direction – src

Object type – GstPad

Properties

in-pool-size

Number of buffers to allocate in input pool

Unsigned Integer. Range: 2 - 16 Default value : 2

name

The name of the object

String Default value : "tiovxdlcolorconvert0"

out-pool-size

Number of buffers to allocate in output pool

Flags : Read / Write

Unsigned Integer. Range: 2 - 16 Default value : 2

parent

The parent of the object

Flags : Read / Write

GstObject Default value : N/A

qos

Handle Quality-of-Service events Flags : Read / Write

Boolean Default value : false

target

TIOVX target to use by this element

Flags : Read / Write

Enum

Default value : MPU-0 (5) Enum "GstTIOVXDLColorConvertTarget

(5): MPU-0 - A72 instance 1, assigned to A72_0 core

Available conversions

RGB → [NV12]

I420 → [NV12]

NV12 → [I420,RGB]

NV21 → [I420,RGB]

UYVY → [NV12]

YUY2 → [NV12]

Pipeline examples

Single dlcolorconvert

gst-launch-1.0                                                                 \
videotestsrc num-buffers=20 is-live=true ! "video/x-raw,format=RGB" !          \
tiovxdlcolorconvert in-pool-size=4 out-pool-size=4 ! "video/x-raw,format=NV12" ! \
fakesink -e