Skip to content

tiovxpyramid

Marco Herrera edited this page Mar 11, 2022 · 1 revision

TIOVX Pyramid

tiovxpyramid converts video frames to a pyramid representation using the TIOVX Modules API.

Hierarchy

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

Pad templates

sink

      video/x-raw
                 format: { (string)GRAY8, (string)GRAY16_LE }
                  width: [ 1, 1920 ]
                 height: [ 1, 1088 ]
      video/x-raw(memory:batched)
                 format: { (string)GRAY8, (string)GRAY16_LE }
                  width: [ 1, 1920 ]
                 height: [ 1, 1088 ]
           num-channels: [ 1, 16 ]

Availability – always

Direction – sink

Object type – GstPad

src

      application/x-pyramid-tiovx
                 format: { (string)GRAY8, (string)GRAY16_LE }
                  width: [ 1, 1920 ]
                 height: [ 1, 1088 ]
                 levels: [ 1, 8 ]
                  scale: [ 0.25, 1 ]
      application/x-pyramid-tiovx(memory:batched)
                 format: { (string)GRAY8, (string)GRAY16_LE }
                  width: [ 1, 1920 ]
                 height: [ 1, 1088 ]
                 levels: [ 1, 8 ]
                  scale: [ 0.25, 1 ]
           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 : "tiovxcolorconvert0"

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

Enum "GstTIOVXColorConvertTarget

(0): VPAC_MSC1

(1): VPAC_MSC2

Default value : VPAC_MSC1 (0)

Pipeline examples

Single tioxxpyramid

gst-launch-1.0                                                                       \
videotestsrc num-buffers=20 is-live=true ! "video/x-raw, height=1024, width=1024" !  \
tiovxpyramid ! "application/x-pyramid-tiovx, format=GRAY8, scale=0.5, levels=2"   !  \
fakesink -e

Batched processing

gst-launch-1.0                                                                                                   \
videotestsrc num-buffers=20 is-live=true pattern=0 ! "video/x-raw, width=1024, height=1024, format=GRAY8" ! mux. \
videotestsrc num-buffers=20 is-live=true pattern=1 ! "video/x-raw, width=1024, height=1024, format=GRAY8" ! mux. \
tiovxmux name=mux ! "video/x-raw(memory:batched), height=1024, width=1024, format=GRAY8" !                       \
tiovxpyramid ! "application/x-pyramid-tiovx(memory:batched), scale=0.5, levels=2" !                              \
tiovxdemux name=demux                                                                                            \
demux. ! queue ! fakesink                                                                                        \
demux. ! queue ! fakesink
Clone this wiki locally