This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Image Rotation in Camera HAL

Hi,

I am working on OMAP 3 based custom platform.

We have camera sensor and doing JPEG encoding in Camera HAL using DSP acceleration. I am trying to find a way to rotate (desired angle 0/90/180/270) and then encode it? How can I do it? Does DSP HW Image encoder support rotation? Is there any other way to do the image rotation?

Thanks,

Srinivas

  • Hi Srinivas,

    The omap35xx provides ability for rotation of memory blocks such a picture stored in the memory. You can read about rotation in the Technical reference manual - Section 11.2.4.1.5 Rotation Engine and Section 11.2.6. You can find an useful example for rotation in section 9.5.7 90-Degree Clockwise Image Rotation. There is a link to the TRM:

    http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf

    BR

    Tsvetolin Shulev

  • Hi Tsvetolin Shulev,

    Thanks for the information.

    I gone through the TRM section and also found that Frame Buffer and Overlay/DSS subsystems are using this. How can we use this in Camera HAL?  I am thinking to create V4L2 based Kernel driver and access VRFB from there. This Kernel driver I can access from Camera HAL. I am expecting possible memory overhead. Please let me know if there is any simpler way? Also point me if there is any sample piece of code?

    Thanks,
    Srinivas 

  • I was trying to find solution through Google.Image rotate toolkit comes to my eyes.It defenitely meet your requirments ,rotate image with desired angle and encode them.

  • If you wanna save these complicated steps and find a easy way, you can google image rotation and you will find many useful tools, or google how to rotate image to get instructive articles. Good luck:) I think image rotation programmes can enable to quickly convert files. i have use imaging sdk which can original layouts hyperlinks, Images and tables retained in word ,text, image, Epub, html.but i forgot download the wedsite ,go to google. By the way , pay attention to your system platform, select the suitable one . I use an imaging sdk driver found on the internet . Install it and it becomes a selectable option.Then you can rotate image in any program at all, including Adobe Acrobat . Just open an image, select rotate, and choice a form you want, then you can do image rotation ,the task will be finished in several seconds. if you haven´t found a good choice , you can have a try. best wishes.