I would like to resize the decoded image to match the display resolution. The H.264 decoder outputs a 420SP image. But it appears the resizer cannot accept a 420SP image. From looking at the source in the kernel it seems it can resize either the Y or the C images.
I'm using DMAI and my question is.... Can I call Resize_config and then Resize_execute twice for each image buffer I get from the decoder? This would be once for Y and once for C. I would have to create cloned reference buffers to get the dimensions and buffer size/location dynamically assigned for both the source and destination buffers.
Since this seems to be quite and exercise I'd like to know that it will work before forging ahead. If I can call config and execute twice for each display buffer, can it be done in real time? Is calling config going to slow things down?
JohnA
Hi John,Maybe you can look at example: /examples-davinci/imp-prev-rsz/dm365/do_resize_420_420.cin : linux-driver-examples-psp03.01.01.38.tar.gzfrom : http://arago-project.org/git/projects/?p=examples-davinci.git;a=summary (under tags)
Regards,Marko.
Thanks Marko,
I downloaded the file and am taking a look at it now.