I am using sw osd lib. in our project (we use dm368). I am taking reference from TI's ipnc ref. design for my sw osd application.
Can anybody suggest how to use SWOSD_winDrawHandle() API.?
in Document it is mentioned that Arg2 – mainWinAddr- Input – Main window Address.
I have captured YUV420 semiplanar data from V4L2 device and kept in a buffer(address pBuffer).So in this case can i give address of this YUV buffer(pBuffer) as Arg2 of SWOSD_winDrawHandle() api.?
The SWOSD_winDrawHandle is declared as shown below:
int SWOSD_winDrawHandle(SWOSD_Hndl *Hndl, short* mainWinAddrY, short* mainWinAddrUV);
The first arguemnt is SWOSD handle.
Second argument is the adress of Y plane.
And third argument is the address of UV plane.
Thanks for the reply.
prototype of SWOSD_winDrawHandle() function in alg_ti_swosd.h is as below.
int SWOSD_winDrawHandle(SWOSD_Hndl *Hndl, short* mainWinAddr);
Here there is no arg. like short* mainWinAddrUV.
Did you use sw osd lib.? Can you share code segment from your aplication?
Below are parameters list, when I try to overlay 160x64 logo onto 1280X720 YUV420psemi window using SW OSD lib. mainWinPrm format 1 mainWinPrm width 1280 mainWinPrm height 720 mainWinPrm lineOffset 0 bmpWinPrm enable 1 bmpWinPrm format 1 bmpWinPrm startX 0 bmpWinPrm startY 0 bmpWinPrm width 160 bmpWinPrm height 64 bmpWinPrm lineOffset 160 bmpWinPrm transperencyVal 0 bmpWinPrm transperencyRange 72 bmpWinPrm transperencyEnable 0 bmpWinPrm resizeEnable 0 bmpWinPrm userTransparancy 0 bmpWinPrm bmpWinAddr 0x40021000 bmpWinPrm bmpWinAddrUV 0x40228000 activate 0x1 numBmpWin 0x1c
Could anyone please verify above parameters?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.