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.

help: IMGENC1_control error

I down JPEG lib and get a encode.x64P , so i want to encode picture with it , but have something error when i use IMGENC1_control().

I set:

params.size = sizeof(IMGENC1_Params);
     params.maxWidth              = 720;
     params.maxHeight             = 480;
 params.maxScans              = 0;
     params.dataEndianness        = XDM_BYTE;
     params.forceChromaFormat     = XDM_YUV_420P;

 /* set the parameters for encoding */
     dynParams.size    = sizeof(IIMGENC1_DynamicParams);
     dynParams.numAU   = 0;
     dynParams.inputChromaFormat  = XDM_YUV_420P;
     dynParams.inputHeight   = 720;
     dynParams.inputWidth   = 480;
     dynParams.captureWidth   = 0;
     dynParams.generateHeader  = XDM_ENCODE_AU;
     dynParams.qValue   = 80;


encStatus.size = sizeof(encStatus);
     if (IMGENC1_control(hEncode, XDM_SETPARAMS, &dynParams, &encStatus) ==XDM_EFAIL) {
         fprintf(stderr, "error: could not set PARAMS: 0x%x\n",encStatus.extendedError);
  printf("%d\n ",encStatus.bufInfo.minNumInBufs);
  printf("%d\n ",encStatus.bufInfo.minNumOutBufs);
  printf("%d\n ",encStatus.bufInfo.minOutBufSize[0]);
  printf("%d\n ",encStatus.bufInfo.minInBufSize[0]);
 }
 printf("2  OK\n");

then,the printing  error is:

error: could not set PARAMS: 0x1
0
 256
 179184
 179152

so , I know that I was unseccessed of using IMGENC1_control() to get right memory allocated ,but why?

please gave me an answer, thanks.