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.

JPEGDEC demo parameter problem.

Hi, 

I find a confusing thing when I run the JPEGDEC test application on EVM6678L(CCS5.0), It's about the parameter ChromaFormat in Testparams.cfg.

The details is:

  • If I comment the output code in TestAppDecoder.c(line637, TestApp_WriteOutputData(ftestFile, &outputBufDesc, (IIMGDEC1_OutArgs *)&outArgs);), no matter what the ChromaFormat be set, algorithm processing will be OK. That is to say both ChromaFormat=XDM_GRAY and ChromaFormat=XDM_RGB will work; 
  • If the output code is not commented and ChromaFormat set to be XDM_GRAY or XDM_RGB, errors occur. And when ChromaFormat=XDM_GRAY, error is "Decoder ERROR 4000......", ChromaFormat=XDM_RGB, error is "Process function returned an Error...  ".
  • It seems have nothing to do with other parameters, but I am not sure of other values of ChromaFormat, I am sure if ChromaFormat is set to "0"(=>default), the processing works well.
Thanks.
  • I have tried again, and find that whether comment the output code or not, if I set ChromaFormat to be non-default, the error will be always on.

    And, further more, I find that some parameters like ResizeOption doesn't function in the program(that is to say no matter 1/2 or 1/4, output will be NOT resized.)

    Anyone know how to solve the problem?

  • Shiqiang,

    It appears that your question is specific to the codec, so I am moving this thread over to the Codecs Forum in hopes that it will get a faster response there.

    Dave

  • Hi Shiqiang,

    JPEG_PS_Decoder_C6678_Datasheet.pdf refers that only supported output formats are "YUV planar or YUV 422 interleaved output"

    Which could be a little bit confusing but  implies that valid ChromaFormats are “default”, “XDM_YUV_420P”, XDM_RGB (Which is 444 interleaved) and “XDM_YUV_422ILE” (which is 422 UYVY little endian)

     From testparams.cfg we have:

     ChromaFormat   = 0          # 0 =>default  1 => XDM_YUV_420P, 2 => XDM_YUV_422P 3 => XDM_YUV_422IBE,

                                                    # 4 => XDM_YUV_422ILE, 5 => XDM_YUV_444P ,6 => XDM_YUV_411P ,

                                                    # 7 =>XDM_GRAY , 8 => XDM_RGB

    Deconding \TestVecs\Input\REMI0003.JPG with chroma output options "0", "1", "4" and "8" worked OK in my setup. Please let me know if you face any issue using these formats in yours.

    Thank you,

    Paula