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.

YUV420 or RGB format display on DM355 (using X11 Library)

Hi,

I have been trying to display YUV420 video on DM355 using X11 library functions available with the board tools. I have tried using XPutImage( ) function. But I get the following error message sequence -

Couldn't create display...
Error in getting context...
Error initialising ENXvImageSink.

Is is possible to use this method to display YUV420 / RGB sequence on this board or is there any other method to do the same.

P.S: I have also tried converting YUV420 to YUV422 (UYVY) format and it has worked well. But the problem with this method is it consumes almost 60% or more of the processor bandwidth.

 Regards,

Sandeep

  • I am not an expert on X11, but I am guessing it tries to set frame buffer driver to YUV420 or RGB mode; if driver does not support these pixel formats (as is probably the case in DM355), then it return an error which gets propagated to X11.

    By default, DM355 OSD window takes in RGB565 and video window(s) take in YCbCr 422.  Inside DM355, all windows get converted to YCbCr 422 and merged together for display in digital YCbCr 422 or RGB (or analog BT.656).  Therefore, if you have RGB565 data, you can theoretically just send it directly to OSD window.  With YUV420 (aka YcbCr 420), conversion must happen in software (X11, your own algorithm) before asking DM355 to display it.  If you are implementing your own algorithm, you probably can take advantage of features X11 may not be aware of, such as using special linked-DMA transactions to shuffle data around.

  • currently we have DM355 EVM eval board.

    We are able to mount the NFS.

    we cross compiled the sample GTK+ applications which comes with the SDK and tried to run it on the target ( DM355 - ARM processor) .

    we got the following error  -- " cannot open output device". pls let us know where are we missing out.

     also when i tried to run startX , we got somw output in the TV connected ( TV out) in the board.

    pls let us know which way we need to proceed ?

     Rgds,

    Bala