Home | History | Annotate | Download | only in jhead

Lines Matching full:imageinfo

624             if (OffsetVal > ImageInfo.LargestExifOffset){
625 ImageInfo.LargestExifOffset = OffsetVal;
707 strncpy(ImageInfo.CameraMake, (char *)ValuePtr, ByteCount < 31 ? ByteCount : 31);
711 strncpy(ImageInfo.CameraModel, (char *)ValuePtr, ByteCount < 39 ? ByteCount : 39);
715 strlcpy(ImageInfo.SubSecTime, (char *)ValuePtr, sizeof(ImageInfo.SubSecTime));
719 strlcpy(ImageInfo.SubSecTimeOrig, (char *)ValuePtr,
720 sizeof(ImageInfo.SubSecTimeOrig));
724 strlcpy(ImageInfo.SubSecTimeDig, (char *)ValuePtr,
725 sizeof(ImageInfo.SubSecTimeDig));
729 strlcpy(ImageInfo.DigitizedTime, (char *)ValuePtr,
730 sizeof(ImageInfo.DigitizedTime));
732 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
736 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] =
742 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
746 if (!isdigit(ImageInfo.DateTime[0])){
749 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
752 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
756 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] =
761 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
769 memcpy(ImageInfo.Comments, ValuePtr, ByteCount);
770 ImageInfo.CommentWidchars = ByteCount/2;
775 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
806 strncpy(ImageInfo.Comments,
812 strncpy(ImageInfo.Comments, (char *)ValuePtr, msiz);
820 ImageInfo.ApertureFNumber = (float)ConvertAnyFormat(ValuePtr, Format);
827 if (ImageInfo.ApertureFNumber == 0){
828 ImageInfo.ApertureFNumber
836 ImageInfo.FocalLength.num = Get32u(ValuePtr);
837 ImageInfo.FocalLength.denom = Get32u(4+(char *)ValuePtr);
843 ImageInfo.Distance = (float)ConvertAnyFormat(ValuePtr, Format);
849 ImageInfo.ExposureTime = (float)ConvertAnyFormat(ValuePtr, Format);
855 if (ImageInfo.ExposureTime == 0){
856 ImageInfo.ExposureTime
863 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format);
876 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format);
878 if (ImageInfo.Orientation < 0 || ImageInfo.Orientation > 8){
879 ErrNonfatal("Undefined rotation value %d", ImageInfo.Orientation, 0);
880 ImageInfo.Orientation = 0;
914 ImageInfo.ExposureBias = (float)ConvertAnyFormat(ValuePtr, Format);
918 ImageInfo.Whitebalance = (int)ConvertAnyFormat(ValuePtr, Format);
922 ImageInfo.LightSource = (int)ConvertAnyFormat(ValuePtr, Format);
926 ImageInfo.MeteringMode = (int)ConvertAnyFormat(ValuePtr, Format);
930 ImageInfo.ExposureProgram = (int)ConvertAnyFormat(ValuePtr, Format);
934 if (ImageInfo.ISOequivalent == 0){
938 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
943 ImageInfo.ExposureMode = (int)ConvertAnyFormat(ValuePtr, Format);
947 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
951 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format);
961 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase;
999 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format);
1005 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format);
1040 if (Offset > ImageInfo.LargestExifOffset){
1041 ImageInfo.LargestExifOffset = Offset;
1050 ImageInfo.ThumbnailAtEnd = FALSE;
1066 ImageInfo.ThumbnailOffset = ThumbnailOffset;
1067 ImageInfo.ThumbnailSize = ThumbnailSize;
1134 ImageInfo.ThumbnailAtEnd = ImageInfo.ThumbnailOffset >= ImageInfo.LargestExifOffset ? TRUE : FALSE;
1136 printf("Thumbnail %s end", (ImageInfo.ThumbnailAtEnd ? "at" : "NOT at"));
1160 ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits / FocalplaneXRes);
1162 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0
1163 && ImageInfo.FocalLength35mmEquiv == 0){
1166 ImageInfo.FocalLength35mmEquiv = (int)(
1167 (double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom
1168 / ImageInfo.CCDWidth * 36 + 0.5);
1369 if (ImageInfo.numDateTimeTags) {
1371 dateTime = ImageInfo.DateTime;
1596 return OrientTab[ImageInfo.Orientation];
1607 ImageInfo.ThumbnailOffset == 0 ||
1608 ImageInfo.ThumbnailSize == 0){
1612 if (ImageInfo.ThumbnailAtEnd == FALSE){
1640 return ImageInfo.ThumbnailOffset+8;
1680 printf("File name : %s\n",ImageInfo.FileName);
1681 printf("File size : %d bytes\n",ImageInfo.FileSize);
1690 if (ImageInfo.CameraMake[0]){
1691 printf("Camera make : %s\n",ImageInfo.CameraMake);
1692 printf("Camera model : %s\n",ImageInfo.CameraModel);
1694 if (ImageInfo.DateTime[0]){
1695 printf("Date/Time : %s\n",ImageInfo.DateTime);
1697 printf("Resolution : %d x %d\n",ImageInfo.Width, ImageInfo.Height);
1699 if (ImageInfo.Orientation > 1){
1701 printf("Orientation : %s\n", OrientTab[ImageInfo.Orientation]);
1704 if (ImageInfo.IsColor == 0){
1708 if (ImageInfo.FlashUsed >= 0){
1709 if (ImageInfo.FlashUsed & 1){
1711 switch (ImageInfo.FlashUsed){
1732 switch (ImageInfo.FlashUsed){
1740 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
1741 printf("Focal length : %4.1fmm",(double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom);
1742 if (ImageInfo.FocalLength35mmEquiv){
1743 printf(" (35mm equivalent: %dmm)", ImageInfo.FocalLength35mmEquiv);
1748 if (ImageInfo.DigitalZoomRatio > 1){
1750 printf("Digital Zoom : %5.3fx\n", (double)ImageInfo.DigitalZoomRatio);
1753 if (ImageInfo.CCDWidth){
1754 printf("CCD width : %4.2fmm\n",(double)ImageInfo.CCDWidth);
1757 if (ImageInfo.ExposureTime){
1758 if (ImageInfo.ExposureTime < 0.010){
1759 printf("Exposure time: %6.4f s ",(double)ImageInfo.ExposureTime);
1761 printf("Exposure time: %5.3f s ",(double)ImageInfo.ExposureTime);
1763 if (ImageInfo.ExposureTime <= 0.5){
1764 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1768 if (ImageInfo.ApertureFNumber){
1769 printf("Aperture : f/%5.3f\n",(double)ImageInfo.ApertureFNumber);
1771 if (ImageInfo.Distance){
1772 if (ImageInfo.Distance < 0){
1775 printf("Focus dist. : %4.2fm\n",(double)ImageInfo.Distance);
1779 if (ImageInfo.ISOequivalent){
1780 printf("ISO equiv. : %2d\n",(int)ImageInfo.ISOequivalent);
1783 if (ImageInfo.ExposureBias){
1786 printf("Exposure bias: %4.2f\n",(double)ImageInfo.ExposureBias);
1789 switch(ImageInfo.Whitebalance) {
1799 switch(ImageInfo.LightSource) {
1823 if (ImageInfo.MeteringMode){ // 05-jan-2001 vcs
1824 switch(ImageInfo.MeteringMode) {
1837 if (ImageInfo.ExposureProgram){ // 05-jan-2001 vcs
1838 switch(ImageInfo.ExposureProgram) {
1867 switch(ImageInfo.ExposureMode){
1876 if (ImageInfo.DistanceRange) {
1878 switch(ImageInfo.DistanceRange) {
1894 if (ImageInfo.Process != M_SOF0){
1904 if (ProcessTable[a].Tag == ImageInfo.Process){
1911 if (ImageInfo.GpsInfoPresent){
1912 printf("GPS Latitude : %s\n",ImageInfo.GpsLat);
1913 printf("GPS Longitude: %s\n",ImageInfo.GpsLong);
1914 if (ImageInfo.GpsAlt[0]) printf("GPS Altitude : %s\n",ImageInfo.GpsAlt);
1918 if (ImageInfo.Comments[0]){
1921 if (!ImageInfo.CommentWidchars){
1923 c = ImageInfo.Comments[a];
1927 if (ImageInfo.Comments[a+1] != '\0'){
1938 printf("%.*ls\n", ImageInfo.CommentWidchars, (wchar_t *)ImageInfo.Comments);
1941 if (ImageInfo.ThumbnailOffset){
1942 printf("Map: %05d-%05d: Thumbnail\n",ImageInfo.ThumbnailOffset, ImageInfo.ThumbnailOffset+ImageInfo.ThumbnailSize);
1954 printf("\"%s\"",ImageInfo.FileName);
1956 printf(" %dx%d",ImageInfo.Width, ImageInfo.Height);
1958 if (ImageInfo.ExposureTime){
1959 if (ImageInfo.ExposureTime <= 0.5){
1960 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1962 printf(" (%3.1f)",ImageInfo.ExposureTime);
1966 if (ImageInfo.ApertureFNumber){
1967 printf(" f/%3.1f",(double)ImageInfo.ApertureFNumber);
1970 if (ImageInfo.FocalLength35mmEquiv){
1971 printf(" f(35)=%dmm",ImageInfo.FocalLength35mmEquiv);
1974 if (ImageInfo.FlashUsed >= 0 && ImageInfo.FlashUsed & 1){
1978 if (ImageInfo.IsColor == 0){