Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

JPEG2000 Problem

pawelpus
Beginner
734 Views
Hi,

I have a problem with decoding jp2 image. I can open this image in IrfanView or Paint Shop Pro 9 but when I am trying to decode it using IPP JPEG2000 Sample I have got the error:

Bad packet header bits padding was found.

This exception happens in phbitin.h in function Flush(..).
Is it possible to avoid this? What exactly does this function do? If I make this function empty then the final result is not ofcourse the same as it is in IrfanView or PSP9.

Regards,
Pawel
0 Kudos
4 Replies
Vladimir_Dudnik
Employee
734 Views
Hi Pawel,
which version of IPP/sample do you use? Can you attach file which cause problem to this thread? Or you can submit your bug report to technical support channel (premier.intel.com)
Regards,
Vladimir
0 Kudos
Mikhail_Kulikov__Int
New Contributor I
734 Views
Hi,
the best way to achive resolution is to submit this issue to http://premier.intel.com/.
You need a registration (evaluation is acceptable).
But before it, please, download the latest version of the JPEG 2000 codec sample fromIntel site and try it. It could be resolved already.
The text message itself is intended to indicate damage in jp2 file, but it (and its place of generation) is not too specific tofind [possible] bug in the codec and answer right here, so to keep your time, please attach your jp2 file to the message for supporting service, it will be only usefull to help.
Thanks & Regards,
Mikhail.
0 Kudos
pawelpus
Beginner
734 Views
Hi Vladimir,

I used ipp sample with ID = w_ipp-JPEG2000_p_4.0.005. However I have found what wrong is. The problem is that this jp2 file contains incorrect color space value. It is 16 (RGB) but it is 18 (YCbCr) in real. This ipp sample does not support that color space but with few modifications I was able to read this file.

Regards,
Pawel
0 Kudos
Vladimir_Dudnik
Employee
734 Views
Great, thanks for informing
Vladimir
0 Kudos
Reply