Lines Matching refs:exif
2393 void dng_xmp::SyncExif (dng_exif &exif,
2416 exif.fMake,
2423 exif.fModel,
2432 if (exif.fExifVersion)
2435 unsigned b0 = ((exif.fExifVersion >> 24) & 0x0FF) - '0';
2436 unsigned b1 = ((exif.fExifVersion >> 16) & 0x0FF) - '0';
2437 unsigned b2 = ((exif.fExifVersion >> 8) & 0x0FF) - '0';
2438 unsigned b3 = ((exif.fExifVersion ) & 0x0FF) - '0';
2487 exif.fExifVersion = (b0 << 24) |
2500 if (!exif.fExifVersion)
2503 exif.fExifVersion = DNG_CHAR4 ('0','2','2','1');
2530 dng_urational et = exif.fExposureTime;
2540 exif.SetExposureTime (et.As_real64 (), false);
2544 dng_srational ss = exif.fShutterSpeedValue;
2554 exif.SetShutterSpeedValue (ss.As_real64 ());
2578 dng_urational fs = exif.fFNumber;
2588 exif.SetFNumber (fs.As_real64 ());
2592 dng_urational av = exif.fApertureValue;
2602 exif.SetApertureValue (av.As_real64 ());
2623 exif.fExposureProgram,
2624 exif.fExposureProgram == 0xFFFFFFFF,
2638 exif.fISOSpeedRatings,
2651 if (exif.fISOSpeedRatings [j] == 65535)
2664 else if (exif.fISOSpeedRatings [j] == 0)
2675 exif.fISOSpeedRatings,
2686 memcpy (exif.fISOSpeedRatings,
2702 if (exif.fISOSpeedRatings [j] == 0)
2707 hasHighISO = hasHighISO || (exif.fISOSpeedRatings [j] > 65535);
2726 exif.fSensitivityType,
2727 exif.fSensitivityType == stUnknown,
2734 exif.fStandardOutputSensitivity,
2735 exif.fStandardOutputSensitivity == 0,
2742 exif.fRecommendedExposureIndex,
2743 exif.fRecommendedExposureIndex == 0,
2750 exif.fISOSpeed,
2751 exif.fISOSpeed == 0,
2758 exif.fISOSpeedLatitudeyyy,
2759 exif.fISOSpeedLatitudeyyy == 0,
2766 exif.fISOSpeedLatitudezzz,
2767 exif.fISOSpeedLatitudezzz == 0,
2774 exif.fExposureIndex,
2781 exif.fBrightnessValue,
2788 exif.fExposureBiasValue,
2795 exif.fMaxApertureValue,
2802 exif.fSubjectDistance,
2809 exif.fMeteringMode,
2810 exif.fMeteringMode == 0xFFFFFFFF,
2817 exif.fLightSource,
2818 exif.fLightSource > 0x0FFFF,
2823 SyncFlash (exif.fFlash,
2824 exif.fFlashMask,
2836 exif.fFocalLength,
2843 exif.fSensingMethod,
2844 exif.fSensingMethod > 0x0FFFF,
2851 exif.fFileSource,
2852 exif.fFileSource > 0x0FF,
2859 exif.fSceneType,
2860 exif.fSceneType > 0x0FF,
2867 exif.fFocalLengthIn35mmFilm,
2868 exif.fFocalLengthIn35mmFilm == 0,
2875 exif.fCustomRendered,
2876 exif.fCustomRendered > 0x0FFFF,
2883 exif.fExposureMode,
2884 exif.fExposureMode > 0x0FFFF,
2891 exif.fWhiteBalance,
2892 exif.fWhiteBalance > 0x0FFFF,
2899 exif.fSceneCaptureType,
2900 exif.fSceneCaptureType > 0x0FFFF,
2907 exif.fGainControl,
2908 exif.fGainControl > 0x0FFFF,
2915 exif.fContrast,
2916 exif.fContrast > 0x0FFFF,
2923 exif.fSaturation,
2924 exif.fSaturation > 0x0FFFF,
2931 exif.fSharpness,
2932 exif.fSharpness > 0x0FFFF,
2939 exif.fSubjectDistanceRange,
2940 exif.fSubjectDistanceRange > 0x0FFFF,
2947 exif.fSubjectArea,
2948 exif.fSubjectAreaCount,
2949 sizeof (exif.fSubjectArea ) /
2950 sizeof (exif.fSubjectArea [0]),
2962 exif.fDigitalZoomRatio,
2969 exif.fFocalPlaneXResolution,
2974 exif.fFocalPlaneYResolution,
2979 exif.fFocalPlaneResolutionUnit,
2980 exif.fFocalPlaneResolutionUnit > 0x0FFFF,
2987 exif.fImageDescription))
2996 exif.fImageDescription.Clear ();
3009 else if (exif.fImageDescription.NotEmpty ())
3014 exif.fImageDescription);
3029 exif.fArtist.Clear ();
3091 exif.fArtist.Set (temp.Buffer_char ());
3100 exif.fArtist.Clear ();
3118 else if (exif.fArtist.NotEmpty ())
3123 dng_memory_data temp (exif.fArtist.Length () + 1);
3125 const char *s = exif.fArtist.Get ();
3246 newList.Append (exif.fArtist);
3263 exif.fSoftware))
3272 exif.fSoftware.Clear ();
3285 else if (exif.fSoftware.NotEmpty ())
3290 exif.fSoftware);
3298 exif.fCopyright))
3307 exif.fCopyright.Clear ();
3320 else if (exif.fCopyright.NotEmpty ())
3325 exif.fCopyright);
3333 exif.fCameraSerialNumber,
3342 if (exif.fLensInfo [0].IsValid ())
3349 (unsigned) exif.fLensInfo [0].n,
3350 (unsigned) exif.fLensInfo [0].d,
3351 (unsigned) exif.fLensInfo [1].n,
3352 (unsigned) exif.fLensInfo [1].d,
3353 (unsigned) exif.fLensInfo [2].n,
3354 (unsigned) exif.fLensInfo [2].d,
3355 (unsigned) exif.fLensInfo [3].n,
3356 (unsigned) exif.fLensInfo [3].d);
3388 exif.fLensInfo [j] = dng_urational (n [j], d [j]);
3408 exif.fLensName,
3414 if ((exif.fLensName.IsEmpty () ||
3415 exif.fLensName.EndsWith ("f/0.0")) && exif.fLensInfo [0].IsValid ())
3420 real64 minFL = exif.fLensInfo [0].As_real64 ();
3421 real64 maxFL = exif.fLensInfo [1].As_real64 ();
3425 if (exif.fLensInfo [2].IsValid ())
3428 real64 minFS = exif.fLensInfo [2].As_real64 ();
3429 real64 maxFS = exif.fLensInfo [3].As_real64 ();
3453 exif.fLensName.Set (s);
3457 exif.fLensName);
3467 exif.fLensID,
3474 exif.fLensMake,
3481 exif.fLensSerialNumber,
3488 exif.fImageNumber,
3489 exif.fImageNumber == 0xFFFFFFFF,
3494 if (exif.fUserComment.NotEmpty ())
3499 exif.fUserComment);
3508 exif.fUserComment);
3519 SyncApproximateFocusDistance (exif,
3526 exif.fFlashCompensation,
3533 exif.fOwnerName,
3540 exif.fFirmware,
3547 dng_string s = EncodeFingerprint (exif.fImageUniqueID);
3554 exif.fImageUniqueID = DecodeFingerprint (s);
3579 exif.CopyGPSFrom (blankExif);
3589 dng_string s = EncodeGPSVersion (exif.fGPSVersionID);
3597 exif.fGPSVersionID = DecodeGPSVersion (s);
3607 dng_string s = EncodeGPSCoordinate (exif.fGPSLatitudeRef,
3608 exif.fGPSLatitude);
3617 exif.fGPSLatitudeRef,
3618 exif.fGPSLatitude);
3628 dng_string s = EncodeGPSCoordinate (exif.fGPSLongitudeRef,
3629 exif.fGPSLongitude);
3638 exif.fGPSLongitudeRef,
3639 exif.fGPSLongitude);
3648 uint32 &altitudeRef = exif.fGPSAltitudeRef;
3649 dng_urational &altitude = exif.fGPSAltitude;
3686 dng_string s = EncodeGPSDateTime (exif.fGPSDateStamp,
3687 exif.fGPSTimeStamp);
3696 exif.fGPSDateStamp,
3697 exif.fGPSTimeStamp);
3707 exif.fGPSSatellites,
3714 exif.fGPSStatus,
3721 exif.fGPSMeasureMode,
3728 exif.fGPSDOP,
3735 exif.fGPSSpeedRef,
3742 exif.fGPSSpeed,
3749 exif.fGPSTrackRef,
3756 exif.fGPSTrack,
3763 exif.fGPSImgDirectionRef,
3770 exif.fGPSImgDirection,
3777 exif.fGPSMapDatum,
3784 dng_string s = EncodeGPSCoordinate (exif.fGPSDestLatitudeRef,
3785 exif.fGPSDestLatitude);
3794 exif.fGPSDestLatitudeRef,
3795 exif.fGPSDestLatitude);
3805 dng_string s = EncodeGPSCoordinate (exif.fGPSDestLongitudeRef,
3806 exif.fGPSDestLongitude);
3815 exif.fGPSDestLongitudeRef,
3816 exif.fGPSDestLongitude);
3826 exif.fGPSDestBearingRef,
3833 exif.fGPSDestBearing,
3840 exif.fGPSDestDistanceRef,
3847 exif.fGPSDestDistance,
3854 exif.fGPSProcessingMethod,
3861 exif.fGPSAreaInformation,
3868 exif.fGPSDifferential,
3869 exif.fGPSDifferential == 0xFFFFFFFF,
3876 exif.fGPSHPositioningError,
3881 UpdateExifDates (exif, removeFromXMP);
3894 void dng_xmp::SyncApproximateFocusDistance (dng_exif &exif,
3900 exif.fApproxFocusDistance,
3971 void dng_xmp::UpdateExifDates (dng_exif &exif,
3984 // exif.fDateTime
3989 dng_string s = exif.fDateTime.Encode_ISO_8601 ();
4001 exif.fDateTime.Decode_ISO_8601 (s.Get ());
4005 s = exif.fDateTime.Encode_ISO_8601 ();
4016 // exif.fDateTimeOriginal
4023 dng_string s = exif.fDateTimeOriginal.Encode_ISO_8601 ();
4035 exif.fDateTimeOriginal.Decode_ISO_8601 (s.Get ());
4039 s = exif.fDateTimeOriginal.Encode_ISO_8601 ();
4071 dng_string s = exif.fDateTimeDigitized.Encode_ISO_8601 ();
4083 exif.fDateTimeDigitized.Decode_ISO_8601 (s.Get ());
4087 s = exif.fDateTimeDigitized.Encode_ISO_8601 ();