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