Lines Matching refs:ImageInfo
543 if (OffsetVal > ImageInfo.LargestExifOffset){
544 ImageInfo.LargestExifOffset = OffsetVal;
626 strncpy(ImageInfo.CameraMake, (char *)ValuePtr, ByteCount < 31 ? ByteCount : 31);
630 strncpy(ImageInfo.CameraModel, (char *)ValuePtr, ByteCount < 39 ? ByteCount : 39);
635 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
640 if (!isdigit(ImageInfo.DateTime[0])){
643 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
646 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
650 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] =
655 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
663 memcpy(ImageInfo.Comments, ValuePtr, ByteCount);
664 ImageInfo.CommentWidchars = ByteCount/2;
669 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
692 strncpy(ImageInfo.Comments, (char *)ValuePtr+a, 199);
697 strncpy(ImageInfo.Comments, (char *)ValuePtr, MAX_COMMENT_SIZE-1);
704 ImageInfo.ApertureFNumber = (float)ConvertAnyFormat(ValuePtr, Format);
711 if (ImageInfo.ApertureFNumber == 0){
712 ImageInfo.ApertureFNumber
720 ImageInfo.FocalLength.num = Get32u(ValuePtr);
721 ImageInfo.FocalLength.denom = Get32u(4+(char *)ValuePtr);
727 ImageInfo.Distance = (float)ConvertAnyFormat(ValuePtr, Format);
733 ImageInfo.ExposureTime = (float)ConvertAnyFormat(ValuePtr, Format);
739 if (ImageInfo.ExposureTime == 0){
740 ImageInfo.ExposureTime
747 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format);
760 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format);
762 if (ImageInfo.Orientation < 0 || ImageInfo.Orientation > 8){
763 ErrNonfatal("Undefined rotation value %d", ImageInfo.Orientation, 0);
764 ImageInfo.Orientation = 0;
798 ImageInfo.ExposureBias = (float)ConvertAnyFormat(ValuePtr, Format);
802 ImageInfo.Whitebalance = (int)ConvertAnyFormat(ValuePtr, Format);
806 ImageInfo.LightSource = (int)ConvertAnyFormat(ValuePtr, Format);
810 ImageInfo.MeteringMode = (int)ConvertAnyFormat(ValuePtr, Format);
814 ImageInfo.ExposureProgram = (int)ConvertAnyFormat(ValuePtr, Format);
818 if (ImageInfo.ISOequivalent == 0){
822 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
827 ImageInfo.ExposureMode = (int)ConvertAnyFormat(ValuePtr, Format);
831 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
832 if ( ImageInfo.ISOequivalent < 50 ){
834 ImageInfo.ISOequivalent *= 200;
839 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format);
849 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase;
887 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format);
893 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format);
928 if (Offset > ImageInfo.LargestExifOffset){
929 ImageInfo.LargestExifOffset = Offset;
938 ImageInfo.ThumbnailAtEnd = FALSE;
954 ImageInfo.ThumbnailOffset = ThumbnailOffset;
955 ImageInfo.ThumbnailSize = ThumbnailSize;
1023 ImageInfo.ThumbnailAtEnd = ImageInfo.ThumbnailOffset >= ImageInfo.LargestExifOffset ? TRUE : FALSE;
1025 printf("Thumbnail %s end", (ImageInfo.ThumbnailAtEnd ? "at" : "NOT at"));
1049 ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits / FocalplaneXRes);
1051 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0
1052 && ImageInfo.FocalLength35mmEquiv == 0){
1055 ImageInfo.FocalLength35mmEquiv = (int)(
1056 (double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom
1057 / ImageInfo.CCDWidth * 36 + 0.5);
1231 if (ImageInfo.numDateTimeTags){
1233 dateTime = ImageInfo.DateTime;
1458 return OrientTab[ImageInfo.Orientation];
1469 ImageInfo.ThumbnailOffset == 0 ||
1470 ImageInfo.ThumbnailSize == 0){
1474 if (ImageInfo.ThumbnailAtEnd == FALSE){
1502 return ImageInfo.ThumbnailOffset+8;
1542 printf("File name : %s\n",ImageInfo.FileName);
1543 printf("File size : %d bytes\n",ImageInfo.FileSize);
1552 if (ImageInfo.CameraMake[0]){
1553 printf("Camera make : %s\n",ImageInfo.CameraMake);
1554 printf("Camera model : %s\n",ImageInfo.CameraModel);
1556 if (ImageInfo.DateTime[0]){
1557 printf("Date/Time : %s\n",ImageInfo.DateTime);
1559 printf("Resolution : %d x %d\n",ImageInfo.Width, ImageInfo.Height);
1561 if (ImageInfo.Orientation > 1){
1563 printf("Orientation : %s\n", OrientTab[ImageInfo.Orientation]);
1566 if (ImageInfo.IsColor == 0){
1570 if (ImageInfo.FlashUsed >= 0){
1571 if (ImageInfo.FlashUsed & 1){
1573 switch (ImageInfo.FlashUsed){
1594 switch (ImageInfo.FlashUsed){
1602 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
1603 printf("Focal length : %4.1fmm",(double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom);
1604 if (ImageInfo.FocalLength35mmEquiv){
1605 printf(" (35mm equivalent: %dmm)", ImageInfo.FocalLength35mmEquiv);
1610 if (ImageInfo.DigitalZoomRatio > 1){
1612 printf("Digital Zoom : %1.3fx\n", (double)ImageInfo.DigitalZoomRatio);
1615 if (ImageInfo.CCDWidth){
1616 printf("CCD width : %4.2fmm\n",(double)ImageInfo.CCDWidth);
1619 if (ImageInfo.ExposureTime){
1620 if (ImageInfo.ExposureTime < 0.010){
1621 printf("Exposure time: %6.4f s ",(double)ImageInfo.ExposureTime);
1623 printf("Exposure time: %5.3f s ",(double)ImageInfo.ExposureTime);
1625 if (ImageInfo.ExposureTime <= 0.5){
1626 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1630 if (ImageInfo.ApertureFNumber){
1631 printf("Aperture : f/%3.1f\n",(double)ImageInfo.ApertureFNumber);
1633 if (ImageInfo.Distance){
1634 if (ImageInfo.Distance < 0){
1637 printf("Focus dist. : %4.2fm\n",(double)ImageInfo.Distance);
1641 if (ImageInfo.ISOequivalent){
1642 printf("ISO equiv. : %2d\n",(int)ImageInfo.ISOequivalent);
1645 if (ImageInfo.ExposureBias){
1648 printf("Exposure bias: %4.2f\n",(double)ImageInfo.ExposureBias);
1651 switch(ImageInfo.Whitebalance) {
1661 switch(ImageInfo.LightSource) {
1685 if (ImageInfo.MeteringMode){ // 05-jan-2001 vcs
1686 switch(ImageInfo.MeteringMode) {
1699 if (ImageInfo.ExposureProgram){ // 05-jan-2001 vcs
1700 switch(ImageInfo.ExposureProgram) {
1729 switch(ImageInfo.ExposureMode){
1738 if (ImageInfo.DistanceRange) {
1740 switch(ImageInfo.DistanceRange) {
1756 if (ImageInfo.Process != M_SOF0){
1766 if (ProcessTable[a].Tag == ImageInfo.Process){
1773 if (ImageInfo.GpsInfoPresent){
1774 printf("GPS Latitude : %s\n",ImageInfo.GpsLat);
1775 printf("GPS Longitude: %s\n",ImageInfo.GpsLong);
1776 if (ImageInfo.GpsAlt[0]) printf("GPS Altitude : %s\n",ImageInfo.GpsAlt);
1780 if (ImageInfo.Comments[0]){
1783 if (!ImageInfo.CommentWidchars){
1785 c = ImageInfo.Comments[a];
1789 if (ImageInfo.Comments[a+1] != '\0'){
1800 printf("%.*ls\n", ImageInfo.CommentWidchars, (wchar_t *)ImageInfo.Comments);
1803 if (ImageInfo.ThumbnailOffset){
1804 printf("Map: %05d-%05d: Thumbnail\n",ImageInfo.ThumbnailOffset, ImageInfo.ThumbnailOffset+ImageInfo.ThumbnailSize);
1816 printf("\"%s\"",ImageInfo.FileName);
1818 printf(" %dx%d",ImageInfo.Width, ImageInfo.Height);
1820 if (ImageInfo.ExposureTime){
1821 if (ImageInfo.ExposureTime <= 0.5){
1822 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1824 printf(" (%1.1f)",ImageInfo.ExposureTime);
1828 if (ImageInfo.ApertureFNumber){
1829 printf(" f/%3.1f",(double)ImageInfo.ApertureFNumber);
1832 if (ImageInfo.FocalLength35mmEquiv){
1833 printf(" f(35)=%dmm",ImageInfo.FocalLength35mmEquiv);
1836 if (ImageInfo.FlashUsed >= 0 && ImageInfo.FlashUsed & 1){
1840 if (ImageInfo.IsColor == 0){