Lines Matching refs:ValuePtr
383 void PrintFormatNumber(void * ValuePtr, int Format, int ByteCount) in PrintFormatNumber() argument
390 case FMT_BYTE: printf("%02x",*(uchar *)ValuePtr); s=1; break; in PrintFormatNumber()
391 case FMT_USHORT: printf("%d",Get16u(ValuePtr)); s=2; break; in PrintFormatNumber()
393 case FMT_SLONG: printf("%d",Get32s(ValuePtr)); s=4; break; in PrintFormatNumber()
394 case FMT_SSHORT: printf("%hd",(signed short)Get16u(ValuePtr)); s=2; break; in PrintFormatNumber()
397 printf("%d/%d",Get32s(ValuePtr), Get32s(4+(char *)ValuePtr)); in PrintFormatNumber()
401 case FMT_SINGLE: printf("%f",(double)*(float *)ValuePtr); s=8; break; in PrintFormatNumber()
402 case FMT_DOUBLE: printf("%f",*(double *)ValuePtr); s=8; break; in PrintFormatNumber()
410 ValuePtr = (void *)((char *)ValuePtr + s); in PrintFormatNumber()
420 double ConvertAnyFormat(void * ValuePtr, int Format) in ConvertAnyFormat() argument
426 case FMT_SBYTE: Value = *(signed char *)ValuePtr; break; in ConvertAnyFormat()
427 case FMT_BYTE: Value = *(uchar *)ValuePtr; break; in ConvertAnyFormat()
429 case FMT_USHORT: Value = Get16u(ValuePtr); break; in ConvertAnyFormat()
430 case FMT_ULONG: Value = Get32u(ValuePtr); break; in ConvertAnyFormat()
436 Num = Get32s(ValuePtr); in ConvertAnyFormat()
437 Den = Get32s(4+(char *)ValuePtr); in ConvertAnyFormat()
446 case FMT_SSHORT: Value = (signed short)Get16u(ValuePtr); break; in ConvertAnyFormat()
447 case FMT_SLONG: Value = Get32s(ValuePtr); break; in ConvertAnyFormat()
450 case FMT_SINGLE: Value = (double)*(float *)ValuePtr; break; in ConvertAnyFormat()
451 case FMT_DOUBLE: Value = *(double *)ValuePtr; break; in ConvertAnyFormat()
510 unsigned char * ValuePtr; in ProcessExifDir() local
541 ValuePtr = OffsetBase+OffsetVal; in ProcessExifDir()
552 ValuePtr = DirEntry+8; in ProcessExifDir()
559 ProcessMakerNote(ValuePtr, ByteCount, OffsetBase, ExifLength); in ProcessExifDir()
582 printf("%.*ls\n", ByteCount/2, (wchar_t *)ValuePtr); in ProcessExifDir()
584 PrintFormatNumber(ValuePtr, Format, ByteCount); in ProcessExifDir()
595 printf("\"%s\"", ValuePtr); in ProcessExifDir()
617 PrintFormatNumber(ValuePtr, Format, ByteCount); 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()
643 strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19); in ProcessExifDir()
651 (char *)ValuePtr - (char *)OffsetBase; in ProcessExifDir()
663 memcpy(ImageInfo.Comments, ValuePtr, ByteCount); in ProcessExifDir()
678 if ((ValuePtr)[a] == ' '){ in ProcessExifDir()
679 (ValuePtr)[a] = '\0'; in ProcessExifDir()
687 if (memcmp(ValuePtr, "ASCII",5) == 0){ in ProcessExifDir()
690 c = (ValuePtr)[a]; 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()
713 = (float)exp(ConvertAnyFormat(ValuePtr, Format)*log(2)*0.5); 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()
741 = (float)(1/exp(ConvertAnyFormat(ValuePtr, Format)*log(2))); in ProcessExifDir()
747 ImageInfo.FlashUsed=(int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
757 OrientationPtr[NumOrientations] = ValuePtr; in ProcessExifDir()
760 ImageInfo.Orientation = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
773 a = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
778 FocalplaneXRes = ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
782 switch((int)ConvertAnyFormat(ValuePtr, Format)){ 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()
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()
839 ImageInfo.DigitalZoomRatio = (float)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
843 ThumbnailOffset = (unsigned)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
848 ThumbnailSize = (unsigned)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
849 ImageInfo.ThumbnailSizeOffset = ValuePtr-OffsetBase; in ProcessExifDir()
859 SubdirStart = OffsetBase + Get32u(ValuePtr); in ProcessExifDir()
873 SubdirStart = OffsetBase + Get32u(ValuePtr); in ProcessExifDir()
887 ImageInfo.FocalLength35mmEquiv = (unsigned)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()
893 ImageInfo.DistanceRange = (int)ConvertAnyFormat(ValuePtr, Format); in ProcessExifDir()