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

JPEG Encode fail on ippiEncodeHuffman8x8_JPEG_16s1u_C1

Kelvin
Beginner
388 Views
Hi,

I use jpeg sample to encode image of size 720x480
as follows:

-------------------------------------
int linestep = img_w*3 + DIB_PAD_BYTES(img_w, 3);
encoder.SetSource(pBGR, img_w, img_h, 3, linestep, JC_BGR);
encoder.SetDestination(95, JS_444, JC_YCBCR);
errCode = encoder.WriteWholeImage(pJpeg, JPEGSize);
---------------------------------------

It returns internal error and debug mode report

IPP Error: ippiEncodeHuffman8x8_JPEG_16s1u_C1() failed - -62

It seems happen only on those image which we overlap
some line or text on it. e.g.

http://graphics.usc.edu/~tatchung/test.jpg

I also try JPEG samples 4.1 but same problem
happens. I'm using IPP 4.1.

Is it a known problem ?

Thanks.

- Kelvin
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
388 Views
Hi,
No, there were no such bug with IPP JPEG codec, can you reproduce this bug in JPEGView sample?
Note, you can see textual descripion of errors in ippdefs.h file. Here, status = -62 stands for ippStsJPEGOutOfBufErr = -62, /* Attempt to access out of the buffer */.
The reason can be not enough buffer size for output JPEG data. Can you increase buffer for compressed JPEG data?
Regards,
Vladimir
0 Kudos
Kelvin
Beginner
388 Views
Vladimir,

You're right ! Thanks for helping me
to solve the problem. :-)

- Kelvin
0 Kudos
Vladimir_Dudnik
Employee
388 Views
Hi Kelvin,
you are welcome:)
Regards,
Vladimir
0 Kudos
Reply