Hello
I am going on my adaptation/debug for my YUV camera into the IPNC software infrastructure.
I work on the resizer configuration since it is the last stage, and the only one after the yuv data come directly from the Isif through the ipipeif.
I output images in YUV420, transcoded from YUV422, but i do not change the size. Size of image is VGA.
I found in drv_ipipe.c some settings which proved problematic. Some enable bits were not enabled in the resz.setup structure. So the output image was black (the buffer default value in my case). After changing this, I got YUV data written mistakenly in the binary file I could watch with an hexadecimal editor. I got this :
Y Data - 640 pixel width on 480 lines filled with black pixels
followed but C data - 640 pixel width on 240 lines approximately (there are 3 more lines).
I checked the image viewer and the YUV buffer viewer confirmed my data.
I changed the OSA_FileWrite procedure arguments so that in YUV420 we output not 2 times the resolution (like in YUV422) but only 1.5 times the resolution (iIs it a minor bug ?).
and I also output all the resizer configuration we can get in the drv_ipipe resizer part. Here they are for my resizer A only.
My understanding is that the OUT START ADDR equivalent to Start Address (SAD in the RSZ registers) is the Y start address, and it matches the Base address (BAD).
We have the same mechanism for Chroma address (SAD and BAD). I checked the offset versus address and it is OK, everything matches. All the enable flags are also OK (concerning the YUV420) in resizer.
OUT START ADDR = 0x84dda000
OUT LINE OFFSET = 640
OUT YUV420 COUT START ADDR = 0x84e25000
OUT YUV420 COUT LINE OFFSET = 640
OUT BASE ADDR = 0x84dda000
OUT START LINE = 0
OUT END LINE = 480
OUT YUV420 COUT BASE ADDR = 0x84e25000
OUT YUV420 COUT START LINE = 0
OUT YUV420 COUT END LINE = 240
Any suggestions about this issue ?
Thank you in advance