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

Undocumented return value from ippiDecodeHuffmanRow_JPEG_1u16s_C1P4

vepro_hoffmann
初学者
1,243 次查看

Hello,

I'm having a problem with the status returned by ippiDecodeHuffmanRow_JPEG_1u16s_C1P4.

I get ippStsJPEGDCTRangeErr as returned status and I'm not sure what I should make of it.

I want to decompress JPEG lossless and there is no DCT as far as I know.

Any ideas?

0 项奖励
1 解答
Vladimir_Dudnik
1,243 次查看
Hello,
you are right, the name of returned status is not that appropriate in this case. Basically that may indicate that huffman tables you are using are not correspond to the data encoded. For example, using baseline standard huffman tables in attempt to decode 16-bit lossless data may cause that error.
Regards,
Vladimir

在原帖中查看解决方案

0 项奖励
6 回复数
Vladimir_Dudnik
1,244 次查看
Hello,
you are right, the name of returned status is not that appropriate in this case. Basically that may indicate that huffman tables you are using are not correspond to the data encoded. For example, using baseline standard huffman tables in attempt to decode 16-bit lossless data may cause that error.
Regards,
Vladimir

0 项奖励
mingzhong_yu
初学者
1,243 次查看
Hello,

I have the same problem when using uic to decodeimages from theDDSM project. Could you tell me whether you've solved the problem or not? And how?

By the way, I'm using IPP 6.0.0.062.

Thanks!
0 项奖励
mingzhong_yu
初学者
1,243 次查看
Hello, Vladimir

Could you give me some ideas on how to solve the problem? The images are 16-bitimages with the extension .ljpeg.

The programreport errorin functioncall ReadImageJPEG -> DecodeScanLosslessIN -> DecodeHuffmanMCURowLS -> ippiDecodeHuffmanRow_JPEG_1u16s_C1P4.

There are 4 images in the case,the programis ok with three images, but failwith one.

Thanks!
0 项奖励
Vladimir_Dudnik
1,243 次查看
Hello,

regardless of the status name (which was not defined quite well) it indicates about some issues in encoded bitstream. In case of lossy DCT based compression it tell that either quantized DCT coefficients exceed allowed range or huffman tables contain illegal entries. In case of lossless compression (what seems to be your case) it indicate issues with huffman tables. Could you please attach problem file here so we can look into it more carefully?

Regards,
Vladimir
0 项奖励
mingzhong_yu
初学者
1,243 次查看
Hello, all

I found the reason, which is the file error caused during network transfer.

The program runs smoothly when I download the images again from the ftp.

Thanks all the same.

0 项奖励
Vladimir_Dudnik
1,243 次查看
Thanks for updating us. That is what status codes stand for - to indicate error conditions.

Vladimir
0 项奖励
回复