-
Notifications
You must be signed in to change notification settings - Fork 4
tiscaler
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.
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstBaseTransform
+----GstVideoFilter
+----GstTIScaler
video/x-raw
format: { (string)NV12 }
width: [ 1, 8192 ]
height: [ 1, 8192 ]
Availability – always
Direction – sink
Object type – GstPad
video/x-raw
format: { (string)NV12 }
width: [ 1, 8192 ]
height: [ 1, 8192 ]
Availability – always
Direction – src
Object type – GstPad
Interpolation method
Flags : Read / Write
Enum "GstTIScalerMethod" (0): nearest-neighbour - Nearest Neighbour Interpolation (1): bilinear - Bilinear Interpolation
Default value : (1)-Bilinear Interpolation
The name of the object
String Default value : "tiscaler0"
The parent of the object
Flags : Read / Write
GstObject Default value : N/A
Handle Quality-of-Service events Flags : Read / Write
Boolean Default value : false
Height of the cropped region of interest
Unsigned Integer Default value : Input Height
Starting X coordinate of the cropped region of interest
Unsigned Integer Default value : 0
Starting Y coordinate of the cropped region of interest
Unsigned Integer Default value : 0
Width of the cropped region of interest
Unsigned Integer Default value : Input Width
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=640,height=360 ! \
tiscaler ! video/x-raw,width=1280,height=720 ! fakesink
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