⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exifhdr.c

📁 台湾凌阳方案300万数码相机源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
     //Header0.APP1.IFD0_YResolutionValue[0] = EXIFHDR_ByteSwapOfULONG(0x00000048);     //72 dpi

     Header0.APP1.IFD0_YResolutionValue[1] = 0x01000000;
     //Header0.APP1.IFD0_YResolutionValue[1] = EXIFHDR_ByteSwapOfULONG(0x00000001);

     EXIFHDR_Fill_Text(Text_NowDateTime,Header0.APP1.IFD0_DateTimeValue,20);

     Header0.APP1.Exif_IFDNumber = 0x1600;
     //Header0.APP1.Exif_IFDNumber = EXIFHDR_ByteSwapOfUSHORT(0x0016);

     Header0.APP1.Exif_ExposureTimeTag.tag = 0x9a82;
     //Header0.APP1.Exif_ExposureTimeTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x829a);

     Header0.APP1.Exif_ExposureTimeTag.type = 0x0500;   //rational
     //Header0.APP1.Exif_ExposureTimeTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0005);   //rational

     Header0.APP1.Exif_ExposureTimeTag.count = 0x01000000;
     //Header0.APP1.Exif_ExposureTimeTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_ExposureTimeTag.valueoffset =    //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_ExposureTimeValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_ExposureTimeTag.valueoffset =    //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_ExposureTimeValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_FNumberTag.tag = 0x9d82;
     //Header0.APP1.Exif_FNumberTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x829d);

     Header0.APP1.Exif_FNumberTag.type = 0x0500;   //rational
     //Header0.APP1.Exif_FNumberTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0005);   //rational

     Header0.APP1.Exif_FNumberTag.count = 0x01000000;
     //Header0.APP1.Exif_FNumberTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_FNumberTag.valueoffset =    //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_FNumberValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_FNumberTag.valueoffset =    //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_FNumberValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_ExposureProgramTag.tag = 0x2288;
     //Header0.APP1.Exif_ExposureProgramTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x8822);

     Header0.APP1.Exif_ExposureProgramTag.type = 0x0300;     //short
     //Header0.APP1.Exif_ExposureProgramTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);     //short

     Header0.APP1.Exif_ExposureProgramTag.count = 0x01000000;
     //Header0.APP1.Exif_ExposureProgramTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_ExposureProgramTag.valueoffset = 0x02000000;  //value,normal program
     //Header0.APP1.Exif_ExposureProgramTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000002);  //value,normal program

     Header0.APP1.Exif_ISOSpeedRatingsTag.tag = 0x2788;
     //Header0.APP1.Exif_ISOSpeedRatingsTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x8827);

     Header0.APP1.Exif_ISOSpeedRatingsTag.type = 0x0300;     //short
     //Header0.APP1.Exif_ISOSpeedRatingsTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);     //short

     Header0.APP1.Exif_ISOSpeedRatingsTag.count = 0x01000000;
     //Header0.APP1.Exif_ISOSpeedRatingsTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_ISOSpeedRatingsTag.valueoffset = 0x64000000;  //value
     //Header0.APP1.Exif_ISOSpeedRatingsTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000064);  //value

     Header0.APP1.Exif_ExifVersionTag.tag = 0x0090;
     //Header0.APP1.Exif_ExifVersionTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9000);

     Header0.APP1.Exif_ExifVersionTag.type = 0x0700;          //undefined
     //Header0.APP1.Exif_ExifVersionTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0007);          //undefined

     Header0.APP1.Exif_ExifVersionTag.count = 0x04000000;
     //Header0.APP1.Exif_ExifVersionTag.count = EXIFHDR_ByteSwapOfULONG(0x00000004);

     Header0.APP1.Exif_ExifVersionTag.valueoffset = 0x30323130;  //value."0210"
     //Header0.APP1.Exif_ExifVersionTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x30313230);  //value."0210"

     Header0.APP1.Exif_DateTimeOriginalTag.tag = 0x0390;
     //Header0.APP1.Exif_DateTimeOriginalTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9003);

     Header0.APP1.Exif_DateTimeOriginalTag.type = 0x0200;    //ASCII
     //Header0.APP1.Exif_DateTimeOriginalTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0002);    //ASCII

     Header0.APP1.Exif_DateTimeOriginalTag.count = 0x14000000;
     //Header0.APP1.Exif_DateTimeOriginalTag.count = EXIFHDR_ByteSwapOfULONG(0x00000014);

     Header0.APP1.Exif_DateTimeOriginalTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_DateTimeOriginalValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_DateTimeOriginalTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_DateTimeOriginalValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_DateTimeDigitilizedTag.tag = 0x0490;
     //Header0.APP1.Exif_DateTimeDigitilizedTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9004);

     Header0.APP1.Exif_DateTimeDigitilizedTag.type = 0x0200;    //ASCII
     //Header0.APP1.Exif_DateTimeDigitilizedTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0002);    //ASCII

     Header0.APP1.Exif_DateTimeDigitilizedTag.count = 0x14000000;
     //Header0.APP1.Exif_DateTimeDigitilizedTag.count = EXIFHDR_ByteSwapOfULONG(0x00000014);

     Header0.APP1.Exif_DateTimeDigitilizedTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_DateTimeDigitilizedValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_DateTimeDigitilizedTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_DateTimeDigitilizedValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_ComponentsConfigurationTag.tag = 0x0191;
     //Header0.APP1.Exif_ComponentsConfigurationTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9101);

     Header0.APP1.Exif_ComponentsConfigurationTag.type = 0x0700;     //undefined
     //Header0.APP1.Exif_ComponentsConfigurationTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0007);     //undefined

     Header0.APP1.Exif_ComponentsConfigurationTag.count = 0x04000000;
     //Header0.APP1.Exif_ComponentsConfigurationTag.count = EXIFHDR_ByteSwapOfULONG(0x00000004);

     Header0.APP1.Exif_ComponentsConfigurationTag.valueoffset = 0x01020300;  //value."1230"
     //Header0.APP1.Exif_ComponentsConfigurationTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00030201);  //value."1230"

     Header0.APP1.Exif_CompressedBitsPerPixelTag.tag = 0x0291;
     //Header0.APP1.Exif_CompressedBitsPerPixelTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9102);

     Header0.APP1.Exif_CompressedBitsPerPixelTag.type = 0x0500;    //rational
     //Header0.APP1.Exif_CompressedBitsPerPixelTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0005);    //rational

     Header0.APP1.Exif_CompressedBitsPerPixelTag.count = 0x01000000;
     //Header0.APP1.Exif_CompressedBitsPerPixelTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_CompressedBitsPerPixelTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_CompressedBitsPerPixelValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_CompressedBitsPerPixelTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_CompressedBitsPerPixelValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_ExposureBiasTag.tag = 0x0492;
     //Header0.APP1.Exif_ExposureBiasTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9204);

     Header0.APP1.Exif_ExposureBiasTag.type = 0x0a00;    //srational
     //Header0.APP1.Exif_ExposureBiasTag.type = EXIFHDR_ByteSwapOfUSHORT(0x000a);    //srational

     Header0.APP1.Exif_ExposureBiasTag.count = 0x01000000;
     //Header0.APP1.Exif_ExposureBiasTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_ExposureBiasTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_ExposureBiasValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_ExposureBiasTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_ExposureBiasValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_MaxApertureTag.tag = 0x0592;
     //Header0.APP1.Exif_MaxApertureTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9205);

     Header0.APP1.Exif_MaxApertureTag.type = 0x0500;    //rational
     //Header0.APP1.Exif_MaxApertureTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0005);    //rational

     Header0.APP1.Exif_MaxApertureTag.count = 0x01000000;
     //Header0.APP1.Exif_MaxApertureTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_MaxApertureTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_MaxApertureValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_MaxApertureTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_MaxApertureValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_MeteringModeTag.tag = 0x0792;
     //Header0.APP1.Exif_MeteringModeTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9207);

     Header0.APP1.Exif_MeteringModeTag.type = 0x0300;    //short
     //Header0.APP1.Exif_MeteringModeTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);    //short

     Header0.APP1.Exif_MeteringModeTag.count = 0x01000000;
     //Header0.APP1.Exif_MeteringModeTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_MeteringModeTag.valueoffset = 0x02000000;  //value,center-weighted average
     //Header0.APP1.Exif_MeteringModeTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000002);  //value,center-weighted average

     Header0.APP1.Exif_LightSourceTag.tag = 0x0892;
     //Header0.APP1.Exif_LightSourceTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9208);

     Header0.APP1.Exif_LightSourceTag.type = 0x0300;    //short
     //Header0.APP1.Exif_LightSourceTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);    //short

     Header0.APP1.Exif_LightSourceTag.count = 0x01000000;
     //Header0.APP1.Exif_LightSourceTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_LightSourceTag.valueoffset = 0x00000000;  //value,unknown
     //Header0.APP1.Exif_LightSourceTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000000);  //value,unknown

     Header0.APP1.Exif_FlashTag.tag = 0x0992;
     //Header0.APP1.Exif_FlashTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x9209);

     Header0.APP1.Exif_FlashTag.type = 0x0300;    //short
     //Header0.APP1.Exif_FlashTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);    //short

     Header0.APP1.Exif_FlashTag.count = 0x01000000;
     //Header0.APP1.Exif_FlashTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_FlashTag.valueoffset = 0x00000000;  //value,flash did not fired
     //Header0.APP1.Exif_FlashTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000000);  //value,flash did not fired

     Header0.APP1.Exif_FocalLengthTag.tag = 0x0a92;
     //Header0.APP1.Exif_FocalLengthTag.tag = EXIFHDR_ByteSwapOfUSHORT(0x920a);

     Header0.APP1.Exif_FocalLengthTag.type = 0x0500;    //rational
     //Header0.APP1.Exif_FocalLengthTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0005);    //rational

     Header0.APP1.Exif_FocalLengthTag.count = 0x01000000;
     //Header0.APP1.Exif_FocalLengthTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_FocalLengthTag.valueoffset =     //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) Header0.APP1.Exif_FocalLengthValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_FocalLengthTag.valueoffset =     //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) Header0.APP1.Exif_FocalLengthValue - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_FlashPixVersiontTag.tag = 0x00a0;
     //Header0.APP1.Exif_FlashPixVersiontTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa000);

     Header0.APP1.Exif_FlashPixVersiontTag.type = 0x0700;    //undefined
     //Header0.APP1.Exif_FlashPixVersiontTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0007);    //undefined

     Header0.APP1.Exif_FlashPixVersiontTag.count = 0x04000000;
     //Header0.APP1.Exif_FlashPixVersiontTag.count = EXIFHDR_ByteSwapOfULONG(0x00000004);

     Header0.APP1.Exif_FlashPixVersiontTag.valueoffset = 0x30313030;   //value
     //Header0.APP1.Exif_FlashPixVersiontTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x30303130);   //value

     Header0.APP1.Exif_ColorSpaceTag.tag = 0x01a0;
     //Header0.APP1.Exif_ColorSpaceTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa001);

     Header0.APP1.Exif_ColorSpaceTag.type = 0x0300;    //short
     //Header0.APP1.Exif_ColorSpaceTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0003);    //short

     Header0.APP1.Exif_ColorSpaceTag.count = 0x01000000;
     //Header0.APP1.Exif_ColorSpaceTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_ColorSpaceTag.valueoffset = 0x01000000;   //value,sRGB
     //Header0.APP1.Exif_ColorSpaceTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000001);   //value,sRGB

     Header0.APP1.Exif_PixelXDimensionTag.tag = 0x02a0;
     //Header0.APP1.Exif_PixelXDimensionTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa002);

     Header0.APP1.Exif_PixelXDimensionTag.type = 0x0400;    //long
     //Header0.APP1.Exif_PixelXDimensionTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0004);    //long

     Header0.APP1.Exif_PixelXDimensionTag.count = 0x01000000;
     //Header0.APP1.Exif_PixelXDimensionTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_PixelXDimensionTag.valueoffset = 0x80020000;   //value,640
     //Header0.APP1.Exif_PixelXDimensionTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000280);   //value,640

     Header0.APP1.Exif_PixelYDimensionTag.tag = 0x03a0;
     //Header0.APP1.Exif_PixelYDimensionTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa003);

     Header0.APP1.Exif_PixelYDimensionTag.type = 0x0400;    //long
     //Header0.APP1.Exif_PixelYDimensionTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0004);    //long

     Header0.APP1.Exif_PixelYDimensionTag.count = 0x01000000;
     //Header0.APP1.Exif_PixelYDimensionTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_PixelYDimensionTag.valueoffset = 0xe001;   //value,480
     //Header0.APP1.Exif_PixelYDimensionTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x000001e0);   //value,480

     Header0.APP1.Exif_InteroperabilityIFDPointerTag.tag = 0x05a0;
     //Header0.APP1.Exif_InteroperabilityIFDPointerTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa005);

     Header0.APP1.Exif_InteroperabilityIFDPointerTag.type = 0x0400;    //ASCII
     //Header0.APP1.Exif_InteroperabilityIFDPointerTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0004);    //ASCII

     Header0.APP1.Exif_InteroperabilityIFDPointerTag.count = 0x01000000;
     //Header0.APP1.Exif_InteroperabilityIFDPointerTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_InteroperabilityIFDPointerTag.valueoffset =   //offset
          M_ByteSwapOfDword((ULONG) ((USHORT) &Header0.APP1.NumberOfInteroperability - (USHORT) &Header0.APP1.Tiff_ByteOrder));
     //Header0.APP1.Exif_InteroperabilityIFDPointerTag.valueoffset =   //offset
     //     EXIFHDR_ByteSwapOfULONG((ULONG) ((USHORT) &Header0.APP1.NumberOfInteroperability - (USHORT) &Header0.APP1.Tiff_ByteOrder));

     Header0.APP1.Exif_FileSourceTag.tag = 0x00a3;
     //Header0.APP1.Exif_FileSourceTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa300);

     Header0.APP1.Exif_FileSourceTag.type = 0x0700;    //undefined
     //Header0.APP1.Exif_FileSourceTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0007);    //undefined

     Header0.APP1.Exif_FileSourceTag.count = 0x01000000;
     //Header0.APP1.Exif_FileSourceTag.count = EXIFHDR_ByteSwapOfULONG(0x00000001);

     Header0.APP1.Exif_FileSourceTag.valueoffset = 0x03000000;   //value,DSC
     //Header0.APP1.Exif_FileSourceTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000003);   //value,DSC

     Header0.APP1.Exif_SceneTypeTag.tag = 0x01a3;
     //Header0.APP1.Exif_SceneTypeTag.tag = EXIFHDR_ByteSwapOfUSHORT(0xa301);

     Header0.APP1.Exif_SceneTypeTag.type = 0x0700;    //undefined
     //Header0.APP1.Exif_SceneTypeTag.type = EXIFHDR_ByteSwapOfUSHORT(0x0007);    //undefined

     Header0.APP1.Exif_SceneTypeTag.count = 0x01000000;
     //Header0.APP1.Exif_SceneTypeTag.valueoffset = EXIFHDR_ByteSwapOfULONG(0x00000001);   //value,a directly photographed image

     Header0.APP1.Exif_NextIFDOffset = 0x00000000;
     //Header0.APP1.Exif_NextIFDOffset = EXIFHDR_ByteSwapOfULONG(0x00000000);

     Header0.APP1.Exif_ExposureTimeValue[0] = 0x01000000; //1/35
     //Header0.APP1.Exif_ExposureTimeValue[0] = EXIFHDR_ByteSwapOfULONG(0x00000001); //1/35

     Header0.APP1.Exif_ExposureTimeValue[1] = 0x23000000;
     //Header0.APP1.Exif_ExposureTimeValue[1] = EXIFHDR_ByteSwapOfULONG(0x00000023);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -