Project

General

Profile

Patch #1287 » add-sonymn-0x2011ff.patch

Matthias Andree, 08 Apr 2017 15:26

View differences:

src/Makefile (Arbeitskopie)
228 228
endif
229 229

  
230 230
# Be sure to rewrite exv_conf.h and svn_version.h before compiling anything
231
$(SRC): ../include/exiv2/exv_conf.h svn_version.h
231
$(SRC): ../include/exiv2/exv_conf.h $(srcdir)/svn_version.h
232 232

  
233 233
../include/exiv2/exv_conf.h: $(top_srcdir)/config/config.h
234 234
	LC_ALL=C sed 's/#define \([A-Z]\)/#define EXV_\1/; s/#undef \([A-Z]\)/#undef EXV_\1/' < $< > $@
src/sonymn.cpp (Arbeitskopie)
299 299
        { 65535, N_("n/a") }
300 300
    };
301 301

  
302
    //! Lookup table to translate Sony Correction settings to readable labels
303
    extern const TagDetails sonyCorrection[] = {
304
        { 0,     N_("Off") },
305
        { 2,     N_("Auto") },
306
        { 4294967295, N_("n/a") }
307
    };
308

  
302 309
    std::ostream& SonyMakerNote::print0xb000(std::ostream& os, const Value& value, const ExifData*)
303 310
    {
304 311
        if (value.count() != 4)
......
404 411
        TagInfo(0x200A, "AutoHDR", N_("Auto HDR"),
405 412
                N_("High Definition Range Mode"),
406 413
                sony1Id, makerTags, unsignedLong, -1, EXV_PRINT_TAG(sonyHDRMode)),
414
        TagInfo(0x2011, "VignettingCorrection", N_("VignettingCorrection"),
415
                N_("Vignetting Correction"),
416
                sony1Id, makerTags, unsignedLong, -1, EXV_PRINT_TAG(sonyCorrection)),
417
        TagInfo(0x2012, "LateralChromaticAberration", N_("LateralChromaticAberration"),
418
                N_("Lateral Chromatic Aberration Correction"),
419
                sony1Id, makerTags, unsignedLong, -1, EXV_PRINT_TAG(sonyCorrection)),
420
        TagInfo(0x2013, "DistortionCorrection", N_("DistortionCorrection"),
421
                N_("Distortion Correction"),
422
                sony1Id, makerTags, unsignedLong, -1, EXV_PRINT_TAG(sonyCorrection)),
407 423
        // TODO : Implement Shot Info tags decoding.
408 424
        TagInfo(0x3000, "ShotInfo", N_("Shot Info"),
409 425
                N_("Shot Information"),
(1-1/2)