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

UIC JPEG Codec produces non JFIF files

Aris_Basic
New Contributor I
232 Views
for some reason with update 7.0 update 5 (might have been happening with earlier versions aswell)
JPEG images created with UIC codec have Adobe in header instead of JFIF
recent beta and dev versions of chrome on windows can not open these files properly and
picassaweb is unabelt o recognize them as proper jpeg images.
is there a reason for using Adobe instead of JFIF and is there a way to change it so it uses JFIF ?
0 Kudos
1 Reply
Sergey_K_Intel
Employee
232 Views
Aris,
According to source codes
[cpp]  if(m_jpeg_mode != JPEG_LOSSLESS)
  {
    switch(m_jpeg_color)
    {
      case JC_GRAY:
      case JC_YCBCR:
        jerr = WriteAPP0();
        if(JPEG_OK != jerr)
        {
          LOG0("Error: WriteAPP0() failed");
          return jerr;
        }
        break;

      case JC_RGB:
      case JC_CMYK:
      case JC_YCCK:
        jerr = WriteAPP14();
        if(JPEG_OK != jerr)
        {
          LOG0("Error: WriteAPP14() failed");
          return jerr;
        }
        break;

      default:
        break;
    }
  }
[/cpp]
UIC creates JFIF files for ordinary JPEG color models (Gray or YCbCr). All others (RGB, CMYK, YCCK) get Adobe application segment marker APP14. What kind of color model do you use during encoder initialization?
0 Kudos
Reply