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.

DM365 Default parameter values for JPEGENC

Hello,

in  ijpegenc.h there is following declaration of extern variable with default parameters for encoder.

/*
* ======== IJPEGENC_PARAMS ========
* Default parameter values for JPEGENC instance objects
*/
extern IJPEGENC_Params IJPEGENC_PARAMS;

Unfortunately I can't found where this symbol is defined. When the application is linked with jpeg encoder library (libimx.a, libjpenc.a) I'm getting undefined reference to `IJPEGENC_PARAMS' errors...

codec build id is: 01.00.00.12 (the one from dvsdk 4.02)

regards
Jan

 

 

  • According to codec guide are almost all fields of  IJPEGENC_Params and  IJPEGENC_DynamicParams equal to NULL, but supplied header really should not contain the extern definition of default parameters when they are not defined in the library.

  • I could find these variables are defined in the library.

    Please check the way it is being used.

    Regards, RSV

  • RSV Prasad said:

    I could find these variables are defined in the library.

     

    I can't see them there... 

    $ arm-none-linux-gnueabi-nm dvsdk/codecs-dm365/packages/ti/sdo/codecs/jpegenc/lib/libjpgenc.a | grep -i param
    000002dc T JPEGENC_TI_EDMA_GetPaRamDstAddr
    00000034 T JPEGENC_TI_EDMA_MakeOptionParam
    000001ac T JPEGENC_TI_EDMA_SetPaRamDstAddr
    000001ec T JPEGENC_TI_EDMA_SetPaRamEntry
    000001cc T JPEGENC_TI_EDMA_SetPaRamSrcAddr
    U Init_updnsmpl_point_op_Params
    U imxenc_set_parameters_sign
    U imxenc_set_parameters_sign
    00000bd0 T JPEGENC_TI_SEQ_GetParam_Enc
    U JPEGENC_TI_EDMA_MakeOptionParam
    U JPEGENC_TI_EDMA_SetPaRamEntry
    00000670 T JPEGENC_TI_updateParams
    00000004 C edma_param_base_addr
    U JPEGENC_TI_SEQ_GetParam_Enc
    00001d30 T JPEGENC_TI_SetCodecParamSequence
    00000000 r IJPEGENC_TI_DYNAMICPARAMS
    U JPEGENC_TI_updateParams

    Maybe there is wrong version in dvsdk 4.02?

     

  • Could be...

    Can you please change " extern IJPEGENC_Params IJPEGENC_PARAMS" to " extern IJPEGENC_Params IJPEGENC_TI_PARAMS" in ijpegenc.h and see if it works?

    Regards, RSV

  • RSV Prasad said:

    Can you please change " extern IJPEGENC_Params IJPEGENC_PARAMS" to " extern IJPEGENC_Params IJPEGENC_TI_PARAMS" in ijpegenc.h and see if it works?

    It does not work. Which version of jpeg encoder do you use?