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.

JPEG2000 on C6678 Rate config ERROR

hi,

It works well when i run the codec jpeg2000 example project on 6678 evm, but there is a ERROR 0xc034 when i set the rate 0.5 and the"imgWidth" "imgHeight" half of input image based on example project of j2e.

The ERROR 0xc034 description is "the specified value for target length is not with the valid range" in JPEG2K Encoder C6678 User Guide.

Is there any other config need to modify? Need u help!

Thank you!

ps.the config is followed.

wavetype REV53

guardbit 2

fracbits 0

levels 5

progorder 3

qstyle 0

qexp 0

qnant 0

rate 0.5 #default is 1

wrap 1

xtitle 640

ytitle 480

colorxform 0

layers 1

CorlorBlockWidth 64

CorlorBlockHeight 64

PrecincSize 119

profile 0

imgWidth 320 #default is 640

imgHeight 240 #default is 480

numComponents 3

dynamicRange 8

  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

    Thank you.

    Note: We strongly recommend you to create new e2e thread for your queries instead of following up on an old/closed e2e thread, new threads gets more attention than old threads and can provide link of old threads or information on the new post for clarity and faster response.

  • Hi,

    For JPEG2000 encoder, when you want to change "rate" parameter, two other parameters "wavetype" and "qstyle" need to be set properly.

    So, to use "rate" other than default value = 0", that is in your case,
    for rate = 0.5, please set "wavetype = IRREV97" and "qstyle = 2".

    Please let me know for any questions.

    Thanks,
    Praveen.

    ps : the new config will be as follows.

    wavetype IRREV97

    guardbit 2

    fracbits 0

    levels 5

    progorder 3

    qstyle 2

    qexp 0

    qnant 0

    rate 0.5 #default is 0

    wrap 1

    xtitle 640

    ytitle 480

    colorxform 0

    layers 1

    CorlorBlockWidth 64

    CorlorBlockHeight 64

    PrecincSize 119

    profile 0

    imgWidth 320 #default is 640

    imgHeight 240 #default is 480

    numComponents 3

    dynamicRange 8
  • Praveen,

    Thanks for you help, the project works well now, and i have one more question.

    In another  answer in e2e, the output width/height should be set to rate*input width/height , but it also works when i set other values, so what effects do this parameters have on the results when the same rate?

    Forgive me for my poor knowledge on JPEG2000.

  • Hi,


    Can please mention the e2e URL that you are taking about ?

    Also, can you please elaborate your question, sorry I did not understand the question properly.


    Thanks,

    Praveen