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.

Question about the TMS320DM36x VICP Algorithms and Codecs Integration?

Hi ,

In the TMS320DM36x VICP Algorithms and Codecs Integration doc,

8 Getting Over Limitations of DMA Channels Usage

2. Open edma.h and update the #defines DM365_DMACH2EVENT_MAP0 and
DM365_DMACH2EVENT_MAP1.
--------------------> update to what ?

Could you help about the group ID. How to put the H264, JPEG, DEI together?

Is below OK?
    {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
    {name: "dei", mod: DEI, local: true, groupId: 1},
or

    {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
    {name: "dei", mod: DEI, local: true, groupId: 2},

or

    {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    {name: "jpegenc", mod: JPEGENC, local: true, groupId: 2},
    {name: "dei", mod: DEI, local: true, groupId: 2},

which one is best?

Thanks

 

  • Hi,

     

    The values for DM365_DMACH2EVENT_MAP0 and DM365_DMACH2EVENT_MAP1 are system specific and therefore no specific value is mentioned. The purpose was to let the audience check these values and make sure if channels are not reserved for LSP unnecessarily. The values that we use are specified below.

    #define DM365_DMACH2EVENT_MAP0        0x0C00000Cu
    #define DM365_DMACH2EVENT_MAP1        0x80000000u

    Regarding putting H.264, JPEG and DEI together:

    1. H.264 and JPEG have to be in the same group id since their total DMA channel usage is 64+.

    2. JPEG and DEI can be put in different group id but protected with semaphore locks since codec engine will not protect them. Make use of the parameter askIMCOPRes by setting it to 0 while creating DEI.

     

    This way H.264 and DEI can run concurrently. However, JPEG and DEI can only run sequentially.

     

    Hence the proposed grp id setting would be:

        {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
        {name: "dei", mod: DEI, local: true, groupId: 2},

     

    regards,

    Harmeet

     

     

  • Thanks.

    I find my DM365_DMACH2EVENT_MAP0  and DM365_DMACH2EVENT_MAP1 is different from yours.

    Below is my define(linux-2.6.18_pro500)

    #define DM365_DMACH2EVENT_MAP0          0xCC00303Cu
    #define DM365_DMACH2EVENT_MAP1          0x80000F00u


    The TMS320DM36x VICP Algorithms and Codecs Integration doc say user can update the DM365_DMACH2EVENT_MAP0 and DM365_DMACH2EVENT_MAP1  to make H264 and JPEG run concurrently. How to update the value ?

    And our system meet some performance issue  when run below:

    UYVY -> DEI (D1) -- > resize  --> h264enc (D1)    --> network

                                     |

                                   -- > resize  --> jpegenc (D1)      --> network

    when disable the DEI, h264 and jpeg can run at 25fps(PAL), but when enable the DEI, the h264 and jpeg can't reach 25fps(PAL). DEI + h264 can reach 25fps(no Jpeg). and DEI + jpeg also can reach 25fps(no h264).

    so i want try to  make the H264 and JPEG run concurrently by Getting Over Limitations of DMA Channels Usage(SPRAB82), Could you give us some advice?

     

    please refer this link:

    http://e2e.ti.com/support/embedded/f/354/p/52031/193787.aspx#193787

    Zack

     

     

     

     

     

  • Zack,

     

    From the link which you shared, I got the information that you run DDR @ 243MHz. You can actually try to clock it up to 270MHz for extra performance. You can contact your local FAE support for this.

    Secondly, there is an improved performance H.264 release version 2.0 that is going to be released soon in a week or so. Please find out the details from your local support.

    So, you can check your system with the above  two modifications.

     

    Apart from this you can try the following:

    1. Regarding DMA channels, please review and free up the channels which ever you can from LSP usage. Thereafter you can get H.264 and JPEG run concurrently by putting H.264 in group id 1 and jpeg and dei in group id 2. and check out the system.

    2. Try to keep h264, dei and jpeg in different threads. I am not sure here because it depends on your system data flow.

     

    regards,

    Harmeet

     

  • Thanks,

    1.  we run the dei and h264 jpeg in three thread.

    2. For Up the DDR clock, is there have some help link?

    3. For the DMA channel, which LSP docment i can get some help?

    Zack