Lines Matching refs:ImageInfo
543 if (OffsetVal > ImageInfo.LargestExifOffset){ in ProcessExifDir()
544 ImageInfo.LargestExifOffset = OffsetVal; in ProcessExifDir()
626 strncpy(ImageInfo.CameraMake, (char *)ValuePtr, ByteCount < 31 ? ByteCount : 31); in ProcessExifDir()
630 strncpy(ImageInfo.CameraModel, (char *)ValuePtr, ByteCount < 39 ? ByteCount : 39); in ProcessExifDir()
635 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19); in ProcessExifDir()
640 if (!isdigit(ImageInfo.DateTime[0])){ in ProcessExifDir()
643 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19); in ProcessExifDir()
646 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){ in ProcessExifDir()
650 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] = in ProcessExifDir()
655 if (ImageInfo.Comments[0]){ // We already have a jpeg comment. in ProcessExifDir()
663 memcpy(ImageInfo.Comments, ValuePtr, ByteCount); in ProcessExifDir()
664 ImageInfo.CommentWidchars = ByteCount/2; in ProcessExifDir()
669 if (ImageInfo.Comments[0]){ // We already have a jpeg comment. in ProcessExifDir()
692 strncpy(ImageInfo.Comments, (char *)ValuePtr+a, 199); in ProcessExifDir()
697 strncpy(ImageInfo.Comments, (char *)ValuePtr, MAX_COMMENT_SIZE-1); in ProcessExifDir()
704 ImageInfo.ApertureFNumber = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
711 if (ImageInfo.ApertureFNumber == 0){ in ProcessExifDir()
712 ImageInfo.ApertureFNumber in ProcessExifDir()
720 ImageInfo.FocalLength.num = Get32u(ValuePtr); in ProcessExifDir()
721 ImageInfo.FocalLength.denom = Get32u(4+(char *)ValuePtr); in ProcessExifDir()
727 ImageInfo.Distance = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
733 ImageInfo.ExposureTime = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
739 if (ImageInfo.ExposureTime == 0){ in ProcessExifDir()
740 ImageInfo.ExposureTime in ProcessExifDir()
747 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
760 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
762 if (ImageInfo.Orientation < 0 || ImageInfo.Orientation > 8){ in ProcessExifDir()
763 ErrNonfatal("Undefined rotation value %d", ImageInfo.Orientation, 0); in ProcessExifDir()
764 ImageInfo.Orientation = 0; in ProcessExifDir()
798 ImageInfo.ExposureBias = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
802 ImageInfo.Whitebalance = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
806 ImageInfo.LightSource = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
810 ImageInfo.MeteringMode = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
814 ImageInfo.ExposureProgram = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
818 if (ImageInfo.ISOequivalent == 0){ in ProcessExifDir()
822 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
827 ImageInfo.ExposureMode = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
831 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
832 if ( ImageInfo.ISOequivalent < 50 ){ in ProcessExifDir()
834 ImageInfo.ISOequivalent *= 200; in ProcessExifDir()
839 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
849 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase; in ProcessExifDir()
887 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
893 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
928 if (Offset > ImageInfo.LargestExifOffset){ in ProcessExifDir()
929 ImageInfo.LargestExifOffset = Offset; in ProcessExifDir()
938 ImageInfo.ThumbnailAtEnd = FALSE; in ProcessExifDir()
954 ImageInfo.ThumbnailOffset = ThumbnailOffset; in ProcessExifDir()
955 ImageInfo.ThumbnailSize = ThumbnailSize; in ProcessExifDir()
1023 …ImageInfo.ThumbnailAtEnd = ImageInfo.ThumbnailOffset >= ImageInfo.LargestExifOffset ? TRUE : FALSE; in process_EXIF()
1025 printf("Thumbnail %s end", (ImageInfo.ThumbnailAtEnd ? "at" : "NOT at")); in process_EXIF()
1049 ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits / FocalplaneXRes); in process_EXIF()
1051 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0 in process_EXIF()
1052 && ImageInfo.FocalLength35mmEquiv == 0){ in process_EXIF()
1055 ImageInfo.FocalLength35mmEquiv = (int)( in process_EXIF()
1056 (double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom in process_EXIF()
1057 / ImageInfo.CCDWidth * 36 + 0.5); in process_EXIF()
1210 if (ImageInfo.numDateTimeTags){ in create_EXIF()
1212 dateTime = ImageInfo.DateTime; in create_EXIF()
1422 return OrientTab[ImageInfo.Orientation]; in ClearOrientation()
1433 ImageInfo.ThumbnailOffset == 0 || in RemoveThumbnail()
1434 ImageInfo.ThumbnailSize == 0){ in RemoveThumbnail()
1438 if (ImageInfo.ThumbnailAtEnd == FALSE){ in RemoveThumbnail()
1466 return ImageInfo.ThumbnailOffset+8; in RemoveThumbnail()
1506 printf("File name : %s\n",ImageInfo.FileName); in ShowImageInfo()
1507 printf("File size : %d bytes\n",ImageInfo.FileSize); in ShowImageInfo()
1516 if (ImageInfo.CameraMake[0]){ in ShowImageInfo()
1517 printf("Camera make : %s\n",ImageInfo.CameraMake); in ShowImageInfo()
1518 printf("Camera model : %s\n",ImageInfo.CameraModel); in ShowImageInfo()
1520 if (ImageInfo.DateTime[0]){ in ShowImageInfo()
1521 printf("Date/Time : %s\n",ImageInfo.DateTime); in ShowImageInfo()
1523 printf("Resolution : %d x %d\n",ImageInfo.Width, ImageInfo.Height); in ShowImageInfo()
1525 if (ImageInfo.Orientation > 1){ in ShowImageInfo()
1527 printf("Orientation : %s\n", OrientTab[ImageInfo.Orientation]); in ShowImageInfo()
1530 if (ImageInfo.IsColor == 0){ in ShowImageInfo()
1534 if (ImageInfo.FlashUsed >= 0){ in ShowImageInfo()
1535 if (ImageInfo.FlashUsed & 1){ in ShowImageInfo()
1537 switch (ImageInfo.FlashUsed){ in ShowImageInfo()
1558 switch (ImageInfo.FlashUsed){ in ShowImageInfo()
1566 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) { in ShowImageInfo()
1567 … printf("Focal length : %4.1fmm",(double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom); in ShowImageInfo()
1568 if (ImageInfo.FocalLength35mmEquiv){ in ShowImageInfo()
1569 printf(" (35mm equivalent: %dmm)", ImageInfo.FocalLength35mmEquiv); in ShowImageInfo()
1574 if (ImageInfo.DigitalZoomRatio > 1){ in ShowImageInfo()
1576 printf("Digital Zoom : %1.3fx\n", (double)ImageInfo.DigitalZoomRatio); in ShowImageInfo()
1579 if (ImageInfo.CCDWidth){ in ShowImageInfo()
1580 printf("CCD width : %4.2fmm\n",(double)ImageInfo.CCDWidth); in ShowImageInfo()
1583 if (ImageInfo.ExposureTime){ in ShowImageInfo()
1584 if (ImageInfo.ExposureTime < 0.010){ in ShowImageInfo()
1585 printf("Exposure time: %6.4f s ",(double)ImageInfo.ExposureTime); in ShowImageInfo()
1587 printf("Exposure time: %5.3f s ",(double)ImageInfo.ExposureTime); in ShowImageInfo()
1589 if (ImageInfo.ExposureTime <= 0.5){ in ShowImageInfo()
1590 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime)); in ShowImageInfo()
1594 if (ImageInfo.ApertureFNumber){ in ShowImageInfo()
1595 printf("Aperture : f/%3.1f\n",(double)ImageInfo.ApertureFNumber); in ShowImageInfo()
1597 if (ImageInfo.Distance){ in ShowImageInfo()
1598 if (ImageInfo.Distance < 0){ in ShowImageInfo()
1601 printf("Focus dist. : %4.2fm\n",(double)ImageInfo.Distance); in ShowImageInfo()
1605 if (ImageInfo.ISOequivalent){ in ShowImageInfo()
1606 printf("ISO equiv. : %2d\n",(int)ImageInfo.ISOequivalent); in ShowImageInfo()
1609 if (ImageInfo.ExposureBias){ in ShowImageInfo()
1612 printf("Exposure bias: %4.2f\n",(double)ImageInfo.ExposureBias); in ShowImageInfo()
1615 switch(ImageInfo.Whitebalance) { in ShowImageInfo()
1625 switch(ImageInfo.LightSource) { in ShowImageInfo()
1649 if (ImageInfo.MeteringMode){ // 05-jan-2001 vcs in ShowImageInfo()
1650 switch(ImageInfo.MeteringMode) { in ShowImageInfo()
1663 if (ImageInfo.ExposureProgram){ // 05-jan-2001 vcs in ShowImageInfo()
1664 switch(ImageInfo.ExposureProgram) { in ShowImageInfo()
1693 switch(ImageInfo.ExposureMode){ in ShowImageInfo()
1702 if (ImageInfo.DistanceRange) { in ShowImageInfo()
1704 switch(ImageInfo.DistanceRange) { in ShowImageInfo()
1720 if (ImageInfo.Process != M_SOF0){ in ShowImageInfo()
1730 if (ProcessTable[a].Tag == ImageInfo.Process){ in ShowImageInfo()
1737 if (ImageInfo.GpsInfoPresent){ in ShowImageInfo()
1738 printf("GPS Latitude : %s\n",ImageInfo.GpsLat); in ShowImageInfo()
1739 printf("GPS Longitude: %s\n",ImageInfo.GpsLong); in ShowImageInfo()
1740 if (ImageInfo.GpsAlt[0]) printf("GPS Altitude : %s\n",ImageInfo.GpsAlt); in ShowImageInfo()
1744 if (ImageInfo.Comments[0]){ in ShowImageInfo()
1747 if (!ImageInfo.CommentWidchars){ in ShowImageInfo()
1749 c = ImageInfo.Comments[a]; in ShowImageInfo()
1753 if (ImageInfo.Comments[a+1] != '\0'){ in ShowImageInfo()
1764 printf("%.*ls\n", ImageInfo.CommentWidchars, (wchar_t *)ImageInfo.Comments); in ShowImageInfo()
1767 if (ImageInfo.ThumbnailOffset){ in ShowImageInfo()
1768 …printf("Map: %05d-%05d: Thumbnail\n",ImageInfo.ThumbnailOffset, ImageInfo.ThumbnailOffset+ImageInf… in ShowImageInfo()
1780 printf("\"%s\"",ImageInfo.FileName); in ShowConciseImageInfo()
1782 printf(" %dx%d",ImageInfo.Width, ImageInfo.Height); in ShowConciseImageInfo()
1784 if (ImageInfo.ExposureTime){ in ShowConciseImageInfo()
1785 if (ImageInfo.ExposureTime <= 0.5){ in ShowConciseImageInfo()
1786 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime)); in ShowConciseImageInfo()
1788 printf(" (%1.1f)",ImageInfo.ExposureTime); in ShowConciseImageInfo()
1792 if (ImageInfo.ApertureFNumber){ in ShowConciseImageInfo()
1793 printf(" f/%3.1f",(double)ImageInfo.ApertureFNumber); in ShowConciseImageInfo()
1796 if (ImageInfo.FocalLength35mmEquiv){ in ShowConciseImageInfo()
1797 printf(" f(35)=%dmm",ImageInfo.FocalLength35mmEquiv); in ShowConciseImageInfo()
1800 if (ImageInfo.FlashUsed >= 0 && ImageInfo.FlashUsed & 1){ in ShowConciseImageInfo()
1804 if (ImageInfo.IsColor == 0){ in ShowConciseImageInfo()