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.

YCbCr format in Windows CE 6.0 on DM355

Hi,
I am working on Display driver on TI's DM355(arm core) for Windows Embedded CE. The OSD supports 4 display windows. I am trying to configure Video window for YCbCr format.
Aim is to bring up the wince 6.0 desktop on the screen with video window.

The pixel packing supported(hardware) is Y1 Cr0 Y0 Cb0 (16 bpp)

In the wince, ddgpe.h provides an enum EDDGPEPixelFormat which has

ddgpePixelFormat_YUYV,
ddgpePixelFormat_UYVY,
ddgpePixelFormat_YUY2,
ddgpePixelFormat_YV12

And FourCCDescriptionTable provides these FOURCC codes :
{ FOURCC_YUY2, 16, 0x00FF00FF, 0x0000FF00, 0xFF000000 },
{ FOURCC_YUYV, 16, 0x00FF00FF, 0x0000FF00, 0xFF000000 },
{ FOURCC_YVYU, 16, 0xFF00FF00, 0x000000FF, 0x00FF0000 },
{ FOURCC_UYVY, 16, 0xFF00FF00, 0x000000FF, 0x00FF0000 },

gpe.h provides EGPEFormat gpe16YCrCb

I have Used: ddgpePixelFormat_YUYV, FOURCC_YVYU, 16, 0xFF00FF00, 0x000000FF, 0x00FF0000

I am not getting the display clear, I took a dump of FrmBufr and tried it inYUV editor...its not the image of desktop.
I tried some of these possible combinations....result was same or worse..

Any suggestions on which one i have to use ....?
Thanks in advance
Ragesh

  • My guess would be that you need to use YUYV format; however, since there is no YUYV FOURCC code available, you may need to use YVYU as you are doing and set the MODE.CS bit.  This will not fix what is in DDR2 already (hence seeing buffer in YUV editor will not change), but will change how data is interpreted by OSD and displayed on screen. 

    Optionally, you can change system to correct data in DDR2 such that you can see buffer in YUV editor correctly.  However, since I did not have any insight into how video data is getting into DDR2 buffer (e.g. via file you have, via VPFE...) I could not advise on this approach.  But we can look into this option if you can provide more details.

  • Thanks Jaun. Let me try out the first option. About the video data getting into DDR2 buffer, the data is put in the Frame buffer by Windows CE.So it will be a file loaded into frame buffer area.

     

     

  • I tried the option of using YVYU and setting  the MODE.CS bit..But it didn't  yield  result.The screenshot was the same.

    Thanks

    Ragesh