Dear all:
I encounter two issue about decode MJPEG
1.
the image as below ( Note the lower right corner of the image)

This phenomenon not always appear. so That's strange
I don't know what's wrong?
I think the only adjustment of ALG_VidDecRunPrm in ALG_vidDecRun
my code is following:
whOffset = 0;
runPrm.inAddr = inAddr;
runPrm.outAddr = gDECODE_ctrl.decBufVirtAddr[gDECODE_ctrl.curDecBufId];
runPrm.inDataSize = inDataSize;
runPrm.outOffsetH = OSA_align(frame->width+whOffset, 32);
runPrm.outOffsetV = frame->height+whOffset;
runPrm.inputBufId = gDECODE_ctrl.curDecBufId;
Does whOffset need to change?Is it has proper value?
Or anyone can give me other suggestion?
2.
Other question about create MJPEG encoder parameters.
I found qValue it has the greate impact for decoder.
It occur decode fail or Alignment trap during try and error.
I has four resolution used ( 320x256 . 800x480 . 1280x736 . 1920x1088 )
Is qValue has the recommanded value or the equation to calculate?
Thanks for your visit