Lines Matching full:imageinfo
548 if (OffsetVal > ImageInfo.LargestExifOffset){
549 ImageInfo.LargestExifOffset = OffsetVal;
631 strncpy(ImageInfo.CameraMake, (char *)ValuePtr, ByteCount < 31 ? ByteCount : 31);
635 strncpy(ImageInfo.CameraModel, (char *)ValuePtr, ByteCount < 39 ? ByteCount : 39);
640 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
645 if (!isdigit(ImageInfo.DateTime[0])){
648 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
651 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
655 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] =
660 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
668 memcpy(ImageInfo.Comments, ValuePtr, ByteCount);
669 ImageInfo.CommentWidchars = ByteCount/2;
674 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
697 strncpy(ImageInfo.Comments, (char *)ValuePtr+a, 199);
702 strncpy(ImageInfo.Comments, (char *)ValuePtr, MAX_COMMENT_SIZE-1);
709 ImageInfo.ApertureFNumber = (float)ConvertAnyFormat(ValuePtr, Format);
716 if (ImageInfo.ApertureFNumber == 0){
717 ImageInfo.ApertureFNumber
725 ImageInfo.FocalLength.num = Get32u(ValuePtr);
726 ImageInfo.FocalLength.denom = Get32u(4+(char *)ValuePtr);
732 ImageInfo.Distance = (float)ConvertAnyFormat(ValuePtr, Format);
738 ImageInfo.ExposureTime = (float)ConvertAnyFormat(ValuePtr, Format);
744 if (ImageInfo.ExposureTime == 0){
745 ImageInfo.ExposureTime
752 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format);
765 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format);
767 if (ImageInfo.Orientation < 0 || ImageInfo.Orientation > 8){
768 ErrNonfatal("Undefined rotation value %d", ImageInfo.Orientation, 0);
769 ImageInfo
803 ImageInfo.ExposureBias = (float)ConvertAnyFormat(ValuePtr, Format);
807 ImageInfo.Whitebalance = (int)ConvertAnyFormat(ValuePtr, Format);
811 ImageInfo.LightSource = (int)ConvertAnyFormat(ValuePtr, Format);
815 ImageInfo.MeteringMode = (int)ConvertAnyFormat(ValuePtr, Format);
819 ImageInfo.ExposureProgram = (int)ConvertAnyFormat(ValuePtr, Format);
823 if (ImageInfo.ISOequivalent == 0){
827 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
832 ImageInfo.ExposureMode = (int)ConvertAnyFormat(ValuePtr, Format);
836 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
837 if ( ImageInfo.ISOequivalent < 50 ){
839 ImageInfo.ISOequivalent *= 200;
844 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format);
854 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase;
892 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format);
898 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format);
933 if (Offset > ImageInfo.LargestExifOffset){
934 ImageInfo.LargestExifOffset = Offset;
943 ImageInfo.ThumbnailAtEnd = FALSE;
959 ImageInfo.ThumbnailOffset = ThumbnailOffset;
960 ImageInfo.ThumbnailSize = ThumbnailSize;
1028 ImageInfo.ThumbnailAtEnd = ImageInfo.ThumbnailOffset >= ImageInfo.LargestExifOffset ? TRUE : FALSE;
1030 printf("Thumbnail %s end", (ImageInfo.ThumbnailAtEnd ? "at" : "NOT at"));
1054 ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits / FocalplaneXRes);
1056 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0
1057 && ImageInfo.FocalLength35mmEquiv == 0){
1060 ImageInfo.FocalLength35mmEquiv = (int)(
1061 (double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom
1062 / ImageInfo.CCDWidth * 36 + 0.5);
1248 if (ImageInfo.numDateTimeTags) {
1250 dateTime = ImageInfo.DateTime;
1475 return OrientTab[ImageInfo.Orientation];
1486 ImageInfo.ThumbnailOffset == 0 ||
1487 ImageInfo.ThumbnailSize == 0){
1491 if (ImageInfo.ThumbnailAtEnd == FALSE){
1519 return ImageInfo.ThumbnailOffset+8;
1559 printf("File name : %s\n",ImageInfo.FileName);
1560 printf("File size : %d bytes\n",ImageInfo.FileSize);
1569 if (ImageInfo.CameraMake[0]){
1570 printf("Camera make : %s\n",ImageInfo.CameraMake);
1571 printf("Camera model : %s\n",ImageInfo.CameraModel);
1573 if (ImageInfo.DateTime[0]){
1574 printf("Date/Time : %s\n",ImageInfo.DateTime);
1576 printf("Resolution : %d x %d\n",ImageInfo.Width, ImageInfo.Height);
1578 if (ImageInfo.Orientation > 1){
1580 printf("Orientation : %s\n", OrientTab[ImageInfo.Orientation]);
1583 if (ImageInfo.IsColor == 0){
1587 if (ImageInfo.FlashUsed >= 0){
1588 if (ImageInfo.FlashUsed & 1){
1590 switch (ImageInfo.FlashUsed){
1611 switch (ImageInfo.FlashUsed){
1619 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
1620 printf("Focal length : %4.1fmm",(double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom);
1621 if (ImageInfo.FocalLength35mmEquiv){
1622 printf(" (35mm equivalent: %dmm)", ImageInfo.FocalLength35mmEquiv);
1627 if (ImageInfo.DigitalZoomRatio > 1){
1629 printf("Digital Zoom : %1.3fx\n", (double)ImageInfo.DigitalZoomRatio);
1632 if (ImageInfo.CCDWidth){
1633 printf("CCD width : %4.2fmm\n",(double)ImageInfo.CCDWidth);
1636 if (ImageInfo.ExposureTime){
1637 if (ImageInfo.ExposureTime < 0.010){
1638 printf("Exposure time: %6.4f s ",(double)ImageInfo.ExposureTime);
1640 printf("Exposure time: %5.3f s ",(double)ImageInfo.ExposureTime);
1642 if (ImageInfo.ExposureTime <= 0.5){
1643 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1647 if (ImageInfo.ApertureFNumber){
1648 printf("Aperture : f/%3.1f\n",(double)ImageInfo.ApertureFNumber);
1650 if (ImageInfo.Distance){
1651 if (ImageInfo.Distance < 0){
1654 printf("Focus dist. : %4.2fm\n",(double)ImageInfo.Distance);
1658 if (ImageInfo.ISOequivalent){
1659 printf("ISO equiv. : %2d\n",(int)ImageInfo.ISOequivalent);
1662 if (ImageInfo.ExposureBias){
1665 printf("Exposure bias: %4.2f\n",(double)ImageInfo.ExposureBias);
1668 switch(ImageInfo.Whitebalance) {
1678 switch(ImageInfo.LightSource) {
1702 if (ImageInfo.MeteringMode){ // 05-jan-2001 vcs
1703 switch(ImageInfo.MeteringMode) {
1716 if (ImageInfo.ExposureProgram){ // 05-jan-2001 vcs
1717 switch(ImageInfo.ExposureProgram) {
1746 switch(ImageInfo.ExposureMode){
1755 if (ImageInfo.DistanceRange) {
1757 switch(ImageInfo.DistanceRange) {
1773 if (ImageInfo.Process != M_SOF0){
1783 if (ProcessTable[a].Tag == ImageInfo.Process){
1790 if (ImageInfo.GpsInfoPresent){
1791 printf("GPS Latitude : %s\n",ImageInfo.GpsLat);
1792 printf("GPS Longitude: %s\n",ImageInfo.GpsLong);
1793 if (ImageInfo.GpsAlt[0]) printf("GPS Altitude : %s\n",ImageInfo.GpsAlt);
1797 if (ImageInfo.Comments[0]){
1800 if (!ImageInfo.CommentWidchars){
1802 c = ImageInfo.Comments[a];
1806 if (ImageInfo.Comments[a+1] != '\0'){
1817 printf("%.*ls\n", ImageInfo.CommentWidchars, (wchar_t *)ImageInfo.Comments);
1820 if (ImageInfo.ThumbnailOffset){
1821 printf("Map: %05d-%05d: Thumbnail\n",ImageInfo.ThumbnailOffset, ImageInfo.ThumbnailOffset+ImageInfo.ThumbnailSize);
1833 printf("\"%s\"",ImageInfo.FileName);
1835 printf(" %dx%d",ImageInfo.Width, ImageInfo.Height);
1837 if (ImageInfo.ExposureTime){
1838 if (ImageInfo.ExposureTime <= 0.5){
1839 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1841 printf(" (%1.1f)",ImageInfo.ExposureTime);
1845 if (ImageInfo.ApertureFNumber){
1846 printf(" f/%3.1f",(double)ImageInfo.ApertureFNumber);
1849 if (ImageInfo.FocalLength35mmEquiv){
1850 printf(" f(35)=%dmm",ImageInfo.FocalLength35mmEquiv);
1853 if (ImageInfo.FlashUsed >= 0 && ImageInfo.FlashUsed & 1){
1857 if (ImageInfo.IsColor == 0){