AM67A: e5010 Encoded - Changing Area of Interest (AOI) causes overhead

Part Number: AM67A

Tool/software:

Hello,

we would like to compress images with varying size using the e5010 JPEG encoder. One use case is the provisioning of cropped image regions. From the documentation we have the impression that the ioctl command VIDIOC_S_SELECTION is suitable for our task. However, using it on the fly (after having performed all ioctl-initialization commands) does not work. Our current workaround is to reinitialize the V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE buffer for each encoding call. This causes a high delay and we are wondering if there is a way to select an AOI with preinitialized buffers. If this is the case, could you please provide a sequence of ioctl-commands that have to be executed for changing the AOI in potentially every cycle (using VIDIOC_S_SELECTION)?

Another issue we are experiencing is, that we are limited to images with a width that is a multiple of 64. The height seems to be restricted to a multiple of 8. Is there a way to reduce these steps?

Thank you in advance and greetings

Richard Arndt

  • Hi Richard,

    Widths of 16 are supported, they just get rounded up to 64 because HW has to use that. Because of HW requirements we have it configured as multiple of 64.

    Also are you fine setting up a buffer of the biggest resolution and then crop it from there. This way you never would need to negotiate a new buffer pool but just crop the one already allocated.

    Best Regards,

    Suren