VCU h264 encoder: How to crop image while encoding
We have a custom video format that is not aligned to 32-bytes.
We inserted a block to pad the image to the right width (32-bytes aligned) so that the VCU encoder would accept the format.
We now want to crop the image while encoding by specifying a width and stride/pitch for the video.
I understand from the documentation that the VCU can encode image formats aligned to 8-bytes.
So, we have an input video format of 1080x808 that is padded to 1088x808. The video encodes fine. We do, however, only want to encode/output 1080x808, as is the original size of the video. As I understand it, the VCU is capable of handling width + pitch/stride.
We are using gstreamer in the application.
How is this feature enabled?
I have tried some settings in gstreamer that did not work, as well as trying to set "crop:(l,t)/WxH" format property using v4l2 API:s. Unsuccessful.