Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ranjan_K_
Beginner
76 Views

Not able to Convert from JPEG to BItMAP

Hello ,

 

I am using IPP library for conversion of JPEG to BMP file. Lib is Not able to convert to BMP data if file has 

Photometric Interpretation =   MONOCHROME2 and Sample Per Pixel is 1.I am getting IppJpeg.JERRCODE.JPEG_BAD_SAMPLING Error .

It is working fine if Photometric Interpretation =   RGB/YCBr  and Sample Per Pixel is 3 .

Please suggest.

0 Kudos
2 Replies
Sergey_K_Intel
Employee
76 Views

Hi Ranjan,

What IPP library version, function, IPP sample do you mean?

Though, IPP doesn't support JPEG decompression for quite long, may be we could provide some hints.

Ranjan_K_
Beginner
76 Views

Hello Sergey,

Thanks for reply.

Library :     I am using  ipps-5.1.dll    Version: v5.1 

I got alternative solution ,in JPEGDecoder : Changing The horizontal sampling value of  MONOCHROME2  images from 2 to 1".

Its work fine for me.

Regards,

Ranjan Kumar

Reply