Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

UIC JPEG Codec produces non JFIF files

Aris_Basic
New Contributor I
108 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
108 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?
Reply