Пример #1
0
        internal override IFDHeader GetMakerNotesHeader(byte[] makerNotesFieldBytes, Endianness e)
        {
            IFDHeader result = null;

            NikonMakerNotesHeaderFormat format = IdentifyMakerNoteHeaderFormat(makerNotesFieldBytes.ToArray(), e);

            MakerNotesBytesParser parser = GetMakerNotesBytesParser(format);

            if (parser != null)
            {
                result = parser.ParseBytes(makerNotesFieldBytes.ToList(), e);
            }

            return(result);
        }
Пример #2
0
        internal override IFDHeader GetMakerNotesHeader(byte[] makerNotesFieldBytes, Endianness e, ImageFile processingFile)
        {
            IFDHeader result = null;

            NikonMakerNotesHeaderFormat format = IdentifyMakerNoteHeaderFormat(makerNotesFieldBytes.ToArray(), e);

            MakerNotesBytesParser parser = GetMakerNotesBytesParser(format);

            if (parser != null)
            {
                int offsetCorrectionIndex = -processingFile.MakerNotesTagOffset + processingFile.TiffHeaderOffset + 8;
                result = parser.ParseBytes(makerNotesFieldBytes.ToList(), e, offsetCorrectionIndex);
            }

            return(result);
        }