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

cross-arch jpeg example

Maciej_K_
Beginner
494 Views
It doesn't work well for me. It seems that that encoder passes a raw quantization tables to ippiDCTQuantFwdTableInit_JPEG_8u16u() instead a zig-zag ordered ones. I'm using VC++ ( win32 ).
0 Kudos
1 Reply
Intel_C_Intel
Employee
494 Views

Oh, yes, you are right, it is our mistake. Fortunately, it is easy to fix. You need to change function write_dqt(), file jpgmisc.c, line 673:
instead of
status = write_byte(quant_tbl[zig_zag_tab_index],bitstream);
you need
status = write_byte(quant_tbl,bitstream);

Hope it helps.
Thanks for your report.

Regards,
Vladimir

0 Kudos
Reply