Hi All,
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.?
Regards,
Sanjay
Hi Snajay,
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.
regards,
Anand
Hi Anand,
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?
regards
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?