For the VCU2 decoder the output buffer
vertical alignment of active video can be adjusted provided that actual buffer height is
sufficient. For example, when the decoder gets 720x240 resolution video as input, then
actual output video buffer resolution will be 736x256 (considering 64 line alignment).
Configuration parameter output-position=<x,y> can
be applied. The x and y parameters decide the position of active video data in the
buffer. For example, if output-position is set to
<0,1>, the top line in the video buffer is skipped and active video data will be
written from the second line onwards.
ctrlsw-decoder -in in.avc -avc -o out.yuv --output-position 0,2
GStreamer output-position property.
gst-launch-1.0 filesrc location=in.avc ! h264parse ! omxh264dec output-position="<0,2>" ! filesink location=out.yuv