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.

osd display probelm

Hello!

I'm learning on DM8168  board dvrrdk2.0, osd display problems are as follows:
1. How to display  Chinese osd? I consulted dvrrdk3.0 demo_osd. C file, I use ascii_420sp_1078_28.c, ascii_422i_1078_28.c,unicode_cn_420sp_420_30.c,four files and unicode_cn_422i_420_30.c files to can display date and time in dvrrdk2.0. but it can not diaplay Chinese. Can you give me some ideas or Suggestions?

  • hi Fei,

    Because we've a lot of changes on the later RDK, which maybe you'll meet if you doing RDK, so it's better using the latest RDK.

    To use the font on 2.0, you can reference the documetns in DVR3.0 DM81xx_DVR_RDK_Software_OSD_Text_Render_Notes

    one thing to reminder you in unicde process

    to get the font index, for example,

     for non-unicode, you can use char* example="example88";
                   for unicode, you should following the following example
                   in unicode: if you want use “通道8”,all the 3 font index shuld be 2byte width,

    UInt16 example8[]= "通道8\0008\000"; here 8\000 stand for 8 in unicode, because
     it is unicode, so '8' is just 1 byte, we need
                   convert it to 2 byte, so we add '\000' to the end of
    this char,

    here  we can't use the libc string api, because it consider '\000' as the end of
    string. so if you use libc string api, you'll lost the second '8'.