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.

DM6446 JPEG Encoder problem about multiple frames

I need to encode video frames into JPEG on DM6446. I downloaded JPEG Baseline Encoder from Ti. 

The codec is called by DMAI 1.16.

After successfully encoding the first frame by calling Ienc1_process(the outArgs.bytesGenerated=24Kbytes, the second call Ienc1_process

give bad result. The return value of Ienc1_process is ok, but the outArgs.bytesGenerated=573 bytes and outArgs.currentAU = 0.

It seems that only the first call of Ienc1_process can give correct result. I've verified this by calling Ienc1_delete to destroy the codec and Ienc1_create to create a new codec before each  Ienc1_process,

create-process-delete for each frame is not a good solution. How can I encode multiple frames by create-process-process-...-delete? Thanks