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 JPEGENCODE ,But get wrong jpg image

I would like to raise the problem related to DM365 JPEGENCODE issue .

my sdk is dvsdk_2_10_01_18

I do my test  as fllows:

First , I modify the "encode" demo to capture a yuv file .The demo locates in  \dvsdk_demos_2_10_00_17\dm365\encode\

In capture.c file ,I add some code to save one yuv frame .

         /* Capture a frame */

        if (Capture_get(hCapture, &hCapBuf) < 0)

        {

            ERR("Failed to get capture buffer\n");

            cleanup(THREAD_FAILURE);

        } 

       fwrite(Buffer_getUserPtr(hCapBuf), Buffer_getNumBytesUsed(hCapBuf),1,outFile);  //save one frame yuv file

.........

sure , I can get the yuv file and get the h264 file too ,the h264 file can be played by vlc player.it says: the encode demo works well .

Second, I use jpgenc-r demo to  compress yuv file  which  I got  .

This demo is at \dm365_codecs_01_00_06\packages\ti\sdo\codecs\jpegenc\

the demo should use some params as bellow:

# <ParameterName> = <ParameterValue> # Comment
#
##########################################################################################
# Parameters
##########################################################################################
maxHeight = 720
maxWidth  = 1280
maxScans  = 25
dataEndianness = 1
forceChromaFormat = 2
inputChromaFormat = 9  //#4:422ILE,9:420SEMI_PLANAR,
inputWidth = 736
inputHeight = 576
captureWidth = 736
numAU = 0
genHeader = 0
qValue = 97
rstInterval = 84
rotation = 0
disableEOI = 0

the jpg  demo can compress the yuv to jpg ,but the jpg is not a color image .  I will append it as attachment.

Can anyone help me, thanks a lot !