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.

How to implement JPEG encoding software for DM365

Hello.

I'm trying to implement JPEG encoding software with DVSDK 2.10.01.18.

I would like to call VISA APIs from my middleware and make an executable application linking my middleware with CODEC Engine, Framework Components, and some other necessary modules.

Could you let me know which software/module in DVSDK I have to link and
how to link them including my middleware in order to realize JPEG encoding, please?

Of course, I can find some sample applications, but I'm not sure how to implement to my software and how to link to it.

thank you

  • DVTB in DVSDK 2.10.01.18 has sample application for using JPEG encoder. You can use it as reference to implement your application.

    The key things to look at are:

    1. Modify the XDC config file (encode.cfg in your case) to add support for JPEG encoder. You might have to add the following lines if they dont exist

    var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');

    var myEngine = Engine.create("alg_server", [

        {name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
        {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},  

    2. The above steps will ensure that JPEG encode is linked in the code. Now, you need to call the following in your application .

    a. IMGENC1_create()

    b. IMGENC1_control() for setting up dynamic parameters

    c. IMGENC1_process() to call the JPEG encode operation

    d. IMGENC1_delete() to delete JPEG handle.

    For the above API usage, you can refer to DVTB application.

    Hope this helps.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.