public void NikonType2MakernoteTest1() { var directory = ExifReaderTest.ProcessSegmentBytes <NikonType2MakernoteDirectory>("Data/nikonMakernoteType2a.jpg.app1", JpegSegmentType.App1); Assert.NotNull(directory); /* * [Nikon Makernote] Firmware Version = 0200 * [Nikon Makernote] ISO = 0 320 * [Nikon Makernote] File Format = FINE * [Nikon Makernote] White Balance = FLASH * [Nikon Makernote] Sharpening = AUTO * [Nikon Makernote] AF Type = AF-C * [Nikon Makernote] Unknown 17 = NORMAL * [Nikon Makernote] Unknown 18 = * [Nikon Makernote] White Balance Fine = 0 * [Nikon Makernote] Unknown 01 = * [Nikon Makernote] Unknown 02 = * [Nikon Makernote] Unknown 03 = 914 * [Nikon Makernote] Unknown 19 = * [Nikon Makernote] ISO = 0 320 * [Nikon Makernote] Tone Compensation = AUTO * [Nikon Makernote] Unknown 04 = 6 * [Nikon Makernote] Lens Focal/Max-FStop pairs = 240/10 850/10 35/10 45/10 * [Nikon Makernote] Unknown 05 = 0 * [Nikon Makernote] Unknown 06 = * [Nikon Makernote] Unknown 07 = 1 * [Nikon Makernote] Unknown 20 = 0 * [Nikon Makernote] Unknown 08 = @ * [Nikon Makernote] Colour Mode = MODE1 * [Nikon Makernote] Unknown 10 = NATURAL * [Nikon Makernote] Unknown 11 = 0100 * * [Nikon Makernote] Camera Hue = 0 * [Nikon Makernote] Noise Reduction = OFF * [Nikon Makernote] Unknown 12 = 0100 * * [Nikon Makernote] Unknown 13 = 0100{t@7b,4x,D"Y * [Nikon Makernote] Unknown 15 = 78/10 78/10 */ Assert.Equal("48 50 48 48", directory.GetString(NikonType2MakernoteDirectory.TagFirmwareVersion)); Assert.Equal("0 320", directory.GetString(NikonType2MakernoteDirectory.TagIso1)); Assert.Equal("0 320", directory.GetString(NikonType2MakernoteDirectory.TagIsoRequested)); Assert.Equal("FLASH ", directory.GetString(NikonType2MakernoteDirectory.TagCameraWhiteBalance)); Assert.Equal("AUTO ", directory.GetString(NikonType2MakernoteDirectory.TagCameraSharpening)); Assert.Equal("AF-C ", directory.GetString(NikonType2MakernoteDirectory.TagAfType)); Assert.Equal("NORMAL ", directory.GetString(NikonType2MakernoteDirectory.TagFlashSyncMode)); Assert.Equal("0", directory.GetString(NikonType2MakernoteDirectory.TagCameraWhiteBalanceFine)); Assert.Equal("914", directory.GetString(NikonType2MakernoteDirectory.TagPreviewIfd)); Assert.Equal("AUTO ", directory.GetString(NikonType2MakernoteDirectory.TagCameraToneCompensation)); Assert.Equal("6", directory.GetString(NikonType2MakernoteDirectory.TagLensType)); Assert.Equal("240/10 850/10 35/10 45/10", directory.GetString(NikonType2MakernoteDirectory.TagLens)); Assert.Equal("0", directory.GetString(NikonType2MakernoteDirectory.TagFlashUsed)); Assert.Equal("1", directory.GetString(NikonType2MakernoteDirectory.TagShootingMode)); Assert.Equal("0", directory.GetString(NikonType2MakernoteDirectory.TagUnknown20)); Assert.Equal("MODE1 ", directory.GetString(NikonType2MakernoteDirectory.TagCameraColorMode)); Assert.Equal("NATURAL ", directory.GetString(NikonType2MakernoteDirectory.TagLightSource)); Assert.Equal("0", directory.GetString(NikonType2MakernoteDirectory.TagCameraHueAdjustment)); Assert.Equal("OFF ", directory.GetString(NikonType2MakernoteDirectory.TagNoiseReduction)); Assert.Equal("78/10 78/10", directory.GetString(NikonType2MakernoteDirectory.TagSensorPixelSize)); var descriptor = new NikonType2MakernoteDescriptor(directory); Assert.Equal("24-85mm f/3.5-4.5", descriptor.GetDescription(NikonType2MakernoteDirectory.TagLens)); Assert.Equal("24-85mm f/3.5-4.5", descriptor.GetLensDescription()); Assert.Equal("0 degrees", descriptor.GetDescription(NikonType2MakernoteDirectory.TagCameraHueAdjustment)); Assert.Equal("0 degrees", descriptor.GetHueAdjustmentDescription()); Assert.Equal("Mode I (sRGB)", descriptor.GetDescription(NikonType2MakernoteDirectory.TagCameraColorMode)); Assert.Equal("Mode I (sRGB)", descriptor.GetColorModeDescription()); }
public void TestGetHueAdjustmentDescription() { Assert.Equal("0 degrees", _descriptor.GetDescription(NikonType2MakernoteDirectory.TagCameraHueAdjustment)); Assert.Equal("0 degrees", _descriptor.GetHueAdjustmentDescription()); }
public virtual void TestGetHueAdjustmentDescription() { Sharpen.Tests.AreEqual("0 degrees", _descriptor.GetDescription(NikonType2MakernoteDirectory.TagCameraHueAdjustment)); Sharpen.Tests.AreEqual("0 degrees", _descriptor.GetHueAdjustmentDescription()); }