Internal data structure to describe tensor region. More...
Public Attributes | |
guint | x |
guint | y |
guint | w |
guint | h |
Internal data structure to describe tensor region.
SECTION:element-tensor_crop
tensor_crop is a GStreamer element to crop the regions of incoming tensor.
tensor_crop has two always sink pads - raw and info. The raw pad accepts tensor (other/tensor) which will be cropped with crop info. The info pad has capability for flexible tensor stream (other/tensors-flexible), that can have a various buffer size for crop info. Incoming buffer on info pad should be an array of crop info. Note that NNStreamer supports maximum NNS_TENSOR_SIZE_LIMIT memory blocks in a buffer. So, when incoming buffer on info pad has more than NNS_TENSOR_SIZE_LIMIT crop-info array, tensor_crop will ignore the data.
The output is always in the format of other/tensors-flexible.
<refsect2> <title>Example launch line</title> |[ gst-launch-1.0 tensor_crop name=crop ! (cropped tensors) ... \ videotestsrc ! videoconvert ! video/x-raw,format=RGB ! tensor_converter ! tee name=t \ t. ! queue ! crop.raw \ t. ! queue ! (process raw video tensor and push buffer which includes crop info) ! crop.info ]| </refsect2>
Definition at line 50 of file gsttensor_crop.c.
guint tensor_region_s::h |
Definition at line 55 of file gsttensor_crop.c.
guint tensor_region_s::w |
Definition at line 54 of file gsttensor_crop.c.
guint tensor_region_s::x |
Definition at line 52 of file gsttensor_crop.c.
guint tensor_region_s::y |
Definition at line 53 of file gsttensor_crop.c.