tiscaler - TexasInstruments/edgeai-gst-plugins GitHub Wiki
TI Scaler
tiscaler
is used to scale up or scale down frames and also crop. If cropping feature is used, input region is cropped first followed by scaling. It uses GstVideoFilter class and ARM NEON optimized kernel to scale the frame.
Hierarchy
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstBaseTransform
+----GstVideoFilter
+----GstTIScaler
Pad templates
sink
video/x-raw
format: { (string)NV12 }
width: [ 1, 8192 ]
height: [ 1, 8192 ]
Availability – always
Direction – sink
Object type – GstPad
src
video/x-raw
format: { (string)NV12 }
width: [ 1, 8192 ]
height: [ 1, 8192 ]
Availability – always
Direction – src
Object type – GstPad
Properties
method
Interpolation method
Flags : Read / Write
Enum "GstTIScalerMethod" (0): nearest-neighbour - Nearest Neighbour Interpolation (1): bilinear - Bilinear Interpolation
Default value : (1)-Bilinear Interpolation
name
The name of the object
String Default value : "tiscaler0"
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
roi-height
Height of the cropped region of interest
Unsigned Integer Default value : Input Height
roi-startx
Starting X coordinate of the cropped region of interest
Unsigned Integer Default value : 0
roi-starty
Starting Y coordinate of the cropped region of interest
Unsigned Integer Default value : 0
roi-width
Width of the cropped region of interest
Unsigned Integer Default value : Input Width
Pipeline examples
Single scaler without cropping
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=640,height=360 ! \
tiscaler ! video/x-raw,width=1280,height=720 ! fakesink
Single scaler with cropping
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=640,height=360 ! \
tiscaler roi-startx=100 roi-starty=50 roi-width=250 roi-height=300 ! \
video/x-raw,width=1280,height=720 ! fakesink