Home | History | Annotate | Download | only in jhead

Lines Matching refs: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);
716 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
721 if (!isdigit(ImageInfo.DateTime[0])){
724 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
727 if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
731 ImageInfo.DateTimeOffsets[ImageInfo.numDateTimeTags++] =
736 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
744 memcpy(ImageInfo.Comments, ValuePtr, ByteCount);
745 ImageInfo.CommentWidchars = ByteCount/2;
750 if (ImageInfo.Comments[0]){ // We already have a jpeg comment.
781 strncpy(ImageInfo.Comments,
787 strncpy(ImageInfo.Comments, (char *)ValuePtr, msiz);
795 ImageInfo.ApertureFNumber = (float)ConvertAnyFormat(ValuePtr, Format);
802 if (ImageInfo.ApertureFNumber == 0){
803 ImageInfo.ApertureFNumber
811 ImageInfo.FocalLength.num = Get32u(ValuePtr);
812 ImageInfo.FocalLength.denom = Get32u(4+(char *)ValuePtr);
818 ImageInfo.Distance = (float)ConvertAnyFormat(ValuePtr, Format);
824 ImageInfo.ExposureTime = (float)ConvertAnyFormat(ValuePtr, Format);
830 if (ImageInfo.ExposureTime == 0){
831 ImageInfo.ExposureTime
838 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format);
851 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format);
853 if (ImageInfo.Orientation < 0 || ImageInfo.Orientation > 8){
854 ErrNonfatal("Undefined rotation value %d", ImageInfo.Orientation, 0);
855 ImageInfo.Orientation = 0;
889 ImageInfo.ExposureBias = (float)ConvertAnyFormat(ValuePtr, Format);
893 ImageInfo.Whitebalance = (int)ConvertAnyFormat(ValuePtr, Format);
897 ImageInfo.LightSource = (int)ConvertAnyFormat(ValuePtr, Format);
901 ImageInfo.MeteringMode = (int)ConvertAnyFormat(ValuePtr, Format);
905 ImageInfo.ExposureProgram = (int)ConvertAnyFormat(ValuePtr, Format);
909 if (ImageInfo.ISOequivalent == 0){
913 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
918 ImageInfo.ExposureMode = (int)ConvertAnyFormat(ValuePtr, Format);
922 ImageInfo.ISOequivalent = (int)ConvertAnyFormat(ValuePtr, Format);
923 if ( ImageInfo.ISOequivalent < 50 ){
925 ImageInfo.ISOequivalent *= 200;
930 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format);
940 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase;
978 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format);
984 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format);
1019 if (Offset > ImageInfo.LargestExifOffset){
1020 ImageInfo.LargestExifOffset = Offset;
1029 ImageInfo.ThumbnailAtEnd = FALSE;
1045 ImageInfo.ThumbnailOffset = ThumbnailOffset;
1046 ImageInfo.ThumbnailSize = ThumbnailSize;
1114 ImageInfo.ThumbnailAtEnd = ImageInfo.ThumbnailOffset >= ImageInfo.LargestExifOffset ? TRUE : FALSE;
1116 printf("Thumbnail %s end", (ImageInfo.ThumbnailAtEnd ? "at" : "NOT at"));
1140 ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits / FocalplaneXRes);
1142 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0
1143 && ImageInfo.FocalLength35mmEquiv == 0){
1146 ImageInfo.FocalLength35mmEquiv = (int)(
1147 (double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom
1148 / ImageInfo.CCDWidth * 36 + 0.5);
1349 if (ImageInfo.numDateTimeTags) {
1351 dateTime = ImageInfo.DateTime;
1576 return OrientTab[ImageInfo.Orientation];
1587 ImageInfo.ThumbnailOffset == 0 ||
1588 ImageInfo.ThumbnailSize == 0){
1592 if (ImageInfo.ThumbnailAtEnd == FALSE){
1620 return ImageInfo.ThumbnailOffset+8;
1660 printf("File name : %s\n",ImageInfo.FileName);
1661 printf("File size : %d bytes\n",ImageInfo.FileSize);
1670 if (ImageInfo.CameraMake[0]){
1671 printf("Camera make : %s\n",ImageInfo.CameraMake);
1672 printf("Camera model : %s\n",ImageInfo.CameraModel);
1674 if (ImageInfo.DateTime[0]){
1675 printf("Date/Time : %s\n",ImageInfo.DateTime);
1677 printf("Resolution : %d x %d\n",ImageInfo.Width, ImageInfo.Height);
1679 if (ImageInfo.Orientation > 1){
1681 printf("Orientation : %s\n", OrientTab[ImageInfo.Orientation]);
1684 if (ImageInfo.IsColor == 0){
1688 if (ImageInfo.FlashUsed >= 0){
1689 if (ImageInfo.FlashUsed & 1){
1691 switch (ImageInfo.FlashUsed){
1712 switch (ImageInfo.FlashUsed){
1720 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
1721 printf("Focal length : %4.1fmm",(double)ImageInfo.FocalLength.num / ImageInfo.FocalLength.denom);
1722 if (ImageInfo.FocalLength35mmEquiv){
1723 printf(" (35mm equivalent: %dmm)", ImageInfo.FocalLength35mmEquiv);
1728 if (ImageInfo.DigitalZoomRatio > 1){
1730 printf("Digital Zoom : %1.3fx\n", (double)ImageInfo.DigitalZoomRatio);
1733 if (ImageInfo.CCDWidth){
1734 printf("CCD width : %4.2fmm\n",(double)ImageInfo.CCDWidth);
1737 if (ImageInfo.ExposureTime){
1738 if (ImageInfo.ExposureTime < 0.010){
1739 printf("Exposure time: %6.4f s ",(double)ImageInfo.ExposureTime);
1741 printf("Exposure time: %5.3f s ",(double)ImageInfo.ExposureTime);
1743 if (ImageInfo.ExposureTime <= 0.5){
1744 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1748 if (ImageInfo.ApertureFNumber){
1749 printf("Aperture : f/%3.1f\n",(double)ImageInfo.ApertureFNumber);
1751 if (ImageInfo.Distance){
1752 if (ImageInfo.Distance < 0){
1755 printf("Focus dist. : %4.2fm\n",(double)ImageInfo.Distance);
1759 if (ImageInfo.ISOequivalent){
1760 printf("ISO equiv. : %2d\n",(int)ImageInfo.ISOequivalent);
1763 if (ImageInfo.ExposureBias){
1766 printf("Exposure bias: %4.2f\n",(double)ImageInfo.ExposureBias);
1769 switch(ImageInfo.Whitebalance) {
1779 switch(ImageInfo.LightSource) {
1803 if (ImageInfo.MeteringMode){ // 05-jan-2001 vcs
1804 switch(ImageInfo.MeteringMode) {
1817 if (ImageInfo.ExposureProgram){ // 05-jan-2001 vcs
1818 switch(ImageInfo.ExposureProgram) {
1847 switch(ImageInfo.ExposureMode){
1856 if (ImageInfo.DistanceRange) {
1858 switch(ImageInfo.DistanceRange) {
1874 if (ImageInfo.Process != M_SOF0){
1884 if (ProcessTable[a].Tag == ImageInfo.Process){
1891 if (ImageInfo.GpsInfoPresent){
1892 printf("GPS Latitude : %s\n",ImageInfo.GpsLat);
1893 printf("GPS Longitude: %s\n",ImageInfo.GpsLong);
1894 if (ImageInfo.GpsAlt[0]) printf("GPS Altitude : %s\n",ImageInfo.GpsAlt);
1898 if (ImageInfo.Comments[0]){
1901 if (!ImageInfo.CommentWidchars){
1903 c = ImageInfo.Comments[a];
1907 if (ImageInfo.Comments[a+1] != '\0'){
1918 printf("%.*ls\n", ImageInfo.CommentWidchars, (wchar_t *)ImageInfo.Comments);
1921 if (ImageInfo.ThumbnailOffset){
1922 printf("Map: %05d-%05d: Thumbnail\n",ImageInfo.ThumbnailOffset, ImageInfo.ThumbnailOffset+ImageInfo.ThumbnailSize);
1934 printf("\"%s\"",ImageInfo.FileName);
1936 printf(" %dx%d",ImageInfo.Width, ImageInfo.Height);
1938 if (ImageInfo.ExposureTime){
1939 if (ImageInfo.ExposureTime <= 0.5){
1940 printf(" (1/%d)",(int)(0.5 + 1/ImageInfo.ExposureTime));
1942 printf(" (%1.1f)",ImageInfo.ExposureTime);
1946 if (ImageInfo.ApertureFNumber){
1947 printf(" f/%3.1f",(double)ImageInfo.ApertureFNumber);
1950 if (ImageInfo.FocalLength35mmEquiv){
1951 printf(" f(35)=%dmm",ImageInfo.FocalLength35mmEquiv);
1954 if (ImageInfo.FlashUsed >= 0 && ImageInfo.FlashUsed & 1){
1958 if (ImageInfo.IsColor == 0){