Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Aris_Basic
New Contributor I
42 Views

Saving Mono (1bit per pixel) PNG with UIC

is there support for 1bit per pixel images within UICs PNG implementation ?
currently it looks like it always saves it as 8bit per pixel image with interesting area squashed.
(regardless of image Allocation as 8bit image with 1/8 of the with or 1bit per pixel image)
0 Kudos
3 Replies
Sergey_K_Intel
Employee
42 Views

Hi Aris,
No, UIC's PNG supports 8/16 bits unsigned only. Look intouic_png_enc.cpp:
[cpp] // Depth support check switch(dataType) { case T8u: case T16u: break; default: return ExcStatusFail; } // Color support check switch(m_iColor) { case BGRA: case RGBA: m_iColor = PNG_COLOR_TYPE_RGB_ALPHA; break; case BGR: case RGB: m_iColor = PNG_COLOR_TYPE_RGB; break; case GrayscaleAlpha: m_iColor = PNG_COLOR_TYPE_GRAY_ALPHA; break; case Grayscale: m_iColor = PNG_COLOR_TYPE_GRAY; break; default: return ExcStatusFail; }[/cpp] Regards,
Sergey
Aris_Basic
New Contributor I
42 Views

is there going to be anya dditional work done on UIC to add missing features ?
(specifically in JPEG2000 but also in PNG,JPEG,....)
Sergey_K_Intel
Employee
42 Views

Aris,
Some kind of work is of course will be done on UIC, especially when it concerns problem correcting. I would set the priority of codecs as 1-st JPEG, then JPEG2000, then others. The prioritization is ruled by overall codec demand/popularity, then if there is a room for performance improvement (there is nothing to improve in BMP :)).
The changes can happen in the mid-year when the next IPP updates/releases come.
Regards,
Sergey
Reply