Cropping in Argus camera

Hi team i am using imx415 in xavier nx dev kit in jet pack 5.1.2 with l4t 35.4.1 in my device tree entry is 3840x 2160 but in my image sensor i will crop the image to 1920x1080p so my stream need to be 1080p resolution in 4k with remaining space to be filled in black i was getting the expected image but there is an slight corruption in the image see the image for reference


but if i take the image in v4l2 as raw then the stream is proper with out any corruption

is there any way i can resolve the issue i need this for my face recognition algorithm so it would be perfeecr for the future working

The 1920x1080 should be 1/4 size of 3840x2160 but from the size looks like 1/2.
Why do you use argus or VIC nvvidconv to crop?

As i need it should be 4k and need to crop the specific area with remaining area to covered in black and doesn’t want change the pipeline and it should be dynamic so that’s why we gone for the sensor crop with 4k as an resolution but in coordinates we would say 1080p

Suppose it could be alignment cause the problem. Could you try 256 alignment size like 2048x1080

still the same issue.

if my camera gives 1920x1080 but my kernel is configured it as 4k(3840x2160) in dtb and this artifact is coming .so is there any way i can tell the kernel to fill the remaining image with 0 or ff to fill the complete image for the image output.

or

if i can reduce the size by half while queue or dequeue but my end goal is to take 1080 in 4K

can you suggest me some solution for the kernel side.

What’s I mean is camera give 2048x1080 or 1792x1080 and kernel configure as 4k

still the same behavior . why the kernel expect he same width as the defined width is there any war i can bypass that issue ?

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks
~0422

I don’t understand your question.