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.

I am using DM6467, how to use IMGLIB in linux?

     I am using DM6467 and XDM  with dvsdk_2_00_00_22 in Linux. I have modified the viddec_copy algorithm to accomplish my program and it works well.The .x64p was  compiled in Linux. Now I want to use some functions of IMGLIB to optimize my algorithm. I have downloaded c64plus-imglib_2_02_00_00_Linux-x86_Setup.bin from TI website.
     But I don't know how to configure IMGLIB and how to use it in viddec_copy algorithm in Linux.

    Thanks!

  • Hi Mary,

    Here is what you need to do. Copy the IMGLIB binary from ${IMGLIB_INSTALL_DIR}/lib into the lib folder of videc_copy algorithm. Then modify the package.xs file to link in the IMGLIB that you copied in the lib folder.In the file you will find a line where the variable name is computed

    name = "lib/viddec1_copy.a" + suffix;

    modify that to

    name = "lib/viddec1_copy.a" + suffix +";lib/imglib2.l64P";

    Now you can directly call into IMGLIB functions inside the viddec_copy code and the viddec_copy package will link into IMGLIB when your server builds.

    There is a second way of doing this directly in the server directory(where your .x64p builds) wherein you copy the IMGLIB binary to the server folder and use the lnk.cmd file to link IMGLIB when the server builds. This process has been described in step 2 of the section "Building codec unit server in the DVSDK". on the wiki here

    http://processors.wiki.ti.com/index.php/C64x%2B_iUniversal_Codec_Creation_-_from_memcpy_to_Canny_Edge_Detector#Building_the_Codec_Server

    Hope this helps. Good Luck

    Best Regards,

    Rahul