Hi,
I test the rotation of the JPEG decoder of DM365, but it does not work.
The original JPEG decoder works well, but the introduction of IJPEGDEC_DynamicParams
does not make any change. I am wondering if I miss something in the code.
The following is what I add for the JPEG decoder:
dynParams.size = sizeof(dynParams);
dynParams.decodeHeader = XDM_DECODE_AU;
dynParams.numAU = XDM_DEFAULT;
dynParams.displayWidth = XDM_DEFAULT;
extDynParams.imgdecDynamicParams = dynParams;
extDynParams.disableEOI = 0;
extDynParams.resizeOption = 0;
extDynParams.subRegionUpLeftX = XDM_DEFAULT;
extDynParams.subRegionUpLeftY = XDM_DEFAULT;
extDynParams.subRegionDownRightX = XDM_DEFAULT;
extDynParams.subRegionDownRightY = XDM_DEFAULT;
extDynParams.rotation = 180;
//status = IMGDEC1_control(decoder, XDM_SETPARAMS, &dynParams, &d_status);
status = IMGDEC1_control(decoder, XDM_SETPARAMS, &extDynParams, &d_status);
Is there anything I need to add?
Any advice will be welcomed.
Thank you in advance.
Best regards,
Ray