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.

DM355 OSD transparency problem

Other Parts Discussed in Thread: TMS320DM355

Hi

I need a partial 50% transparent menu over my screen. What I have been able to do so for is a 50 % transparent menu over whole of the screen using halfhalf.attr file on frame buffer 2. Need help.

If not the complete solution, if anybody can even help me with understanding the .attr file, that would be very helpful.It has many many 3's and then many many stange Y like symbols. When opened with a binary text editor it shows 33's instead of 3's and FF's instead of the strange Y like symbols. How do they achieve 50% transparency?

  • OSD1 hardware window is configured by software as attribute window used for blending purposes by default.  The way this attribute window controls the blending between the data present in the video windows and OSD0 window is by allowing each nible (4-bits) in this window to define the blending for a single pixel of OSD0, with allowed values between 0 and 7 (providing only 8 possible levels of blending); even though only 3-bits of the nible are used to support the 8 levels of blending, nibles were chosen for hardware data alignment reasons.   The blending works as follows

       value = 0  (hex 0x0) --> 100% video, 0% OSD

       .......

       value = 3  (hex 0x3) --> 50% video, 50% OSD

    .......

       value = 3  (hex 0x3) --> 0% video, 100% OSD

    Therefore the 33s you are seeing in the binary editor are the nibles corresponding to the pixels that are 50% video and 50% OSD; the FFs you are seeing are the nibles corresponding to pixels that are 100% OSD and 0% video.  That said, if you have more nibles defined in the .attr file than number po pixels being displayed, not all nibles in attr file may be being used by attribute window (e.g. maybe only the 33s).  Therefore, keep in mind that the attr window size needs to be the resolution of the video being displayed (720x480) devided by 2 since we are using nibles (2 nibles per byte).

    Hope this helps.

  • thank you very much for a very detailed answer, Juan

  • Hi ,

    I am working on dm355 linux platform.

    following getting started guide tms320dm355 dvevm v1.30, i got the kernel and root file system, got success Booting via TFTP using NFS file system.

    but unable to run the demo, getting osd display output but no video display and error as shown below.

    root@10.10.10.242:/opt/dvsdk/dm355# ls
    cmemk.ko decode.txt encode encodedecode.txt log.txt web
    data dm350mmap.ko encode.txt interface mapdmaq
    decode dvevmdemo encodedecode loadmodules.sh thirdpartydemos

    root@10.10.10.242:/opt/dvsdk/dm355# ./decode -v data/videos/davincieffect_pal.mpeg4

    Decode demo started.
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    Decode Error: Failed FBIOPUT_VSCREENINFO on /dev/fb/3 (Invalid argument)
    Decode Error: Failed to open video decode algorithm
    root@10.10.10.242:/opt/dvsdk/dm355#


    kindly do the needfull.

    Thanks and regards,

    Mohammed asif.
  • Hi Asif,
    Please do not follow very old threads.
    Please create a new thread for your query.

    For DM3x Devices do post your query at the below mentioned link
    e2e.ti.com/.../100