cross-arch jpeg example

cross-arch jpeg example

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 ).

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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[i]],bitstream);
you need
status = write_byte(quant_tbl[i],bitstream);

Hope it helps.
Thanks for your report.


Leave a Comment

Please sign in to add a comment. Not a member? Join today