hi,

I have encoutered a problem when I am using DM365 jpeg decoder.

I capture a number of 720x576 yuv422 images, encode them and then decode
them.

encode process has no problem, decode process return error sometimes, and
most of the time  the result is correct.

the extendedError of outArgs is 0x8800, which indicate a bit stream error.

I also try to save the jpeg file and display with photoshop and acdsee,
there is no error.

I have try to capture 768x576 yuv422 images, I have the same result.

Here is my jpeg codec params :

static const IMGDEC1_Params jpgdec_fix_params_default = {
        .size              = sizeof(IMGDEC1_Params),
        .maxWidth          = 720,
        .maxHeight         = 576,
        .maxScans          = 0,
        .forceChromaFormat = XDM_YUV_422ILE,
        .dataEndianness    = XDM_BYTE,
};

static const IMGDEC1_DynamicParams jpgdec_var_params_default = {
        .size              = sizeof(IMGDEC1_DynamicParams),
        .numAU             = 0,
        .decodeHeader      = XDM_DECODE_AU,
        .displayWidth      = 0,
};

static const IMGENC1_Params jpgenc_fix_params_default = {
        .size              = sizeof(IMGENC1_Params),
        .maxWidth          = 720,
        .maxHeight         = 576,
        .maxScans          = XDM_DEFAULT,
        .dataEndianness    = XDM_BYTE,
        .forceChromaFormat = XDM_YUV_422P,
};

static const IMGENC1_DynamicParams jpgenc_var_params_default = {
        .size              = sizeof(IMGENC1_DynamicParams),
        .numAU             = XDM_DEFAULT,
        .inputChromaFormat = XDM_YUV_422ILE,
        .inputWidth        = 720,
        .inputHeight       = 576,
        .captureWidth      = 720,
        .generateHeader    = XDM_ENCODE_AU,
        .qValue            = 65,
};


thanks

Frank
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to