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

I think IJL_DIB_PAD_BYTES macro have bug.

naoki_moriuchi
Beginner
691 Views
Hi, this is Naoki Moriuchi from Japan.
I think your problem is caused by IJL_DIB_PAD_BYTES macro.
Please try the following code for DIBPadBytes.
----------------------------------------------------------------------------------

int bitmap_width = ((jcprops.DIBWidth * 8 + 31) / 32) * 4;

jcprops.DIBPadBytes = (bitmap_width - jcprops.DIBWidth) * jcprops.DIBChannels;

----------------------------------------------------------------------------------

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
691 Views

Hi Naoki,

in what circumstances you found IJL_DIB_PAD_BYTES macro does not work correctly?

Regards,
Vladimir

0 Kudos
Reply