Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Pentax Type 2 makernote support #321

Merged
merged 1 commit into from May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions MetadataExtractor/Formats/Exif/ExifTiffHandler.cs
Expand Up @@ -707,6 +707,11 @@ private bool ProcessMakernote(in TiffReaderContext context, int makernoteOffset)
// Always in Motorola byte order
TiffReader.ProcessIfd(this, context.WithByteOrder(isMotorolaByteOrder: true).WithShiftedBaseOffset(makernoteOffset), 8);
}
else if (firstTenChars.Equals("PENTAX \0II", StringComparison.Ordinal))
{
PushDirectory(new PentaxType2MakernoteDirectory());
TiffReader.ProcessIfd(this, context.WithByteOrder(isMotorolaByteOrder: false).WithShiftedBaseOffset(makernoteOffset), 10);
}
}
else if (string.Equals(firstTenChars, "Apple iOS\0", StringComparison.Ordinal))
{
Expand Down
@@ -0,0 +1,12 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

namespace MetadataExtractor.Formats.Exif.Makernotes
{
public sealed class PentaxType2MakernoteDescriptor : TagDescriptor<PentaxType2MakernoteDirectory>
{
public PentaxType2MakernoteDescriptor(PentaxType2MakernoteDirectory directory)
: base(directory)
{
}
}
}

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions MetadataExtractor/PublicAPI/net35/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions MetadataExtractor/PublicAPI/net45/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions MetadataExtractor/PublicAPI/netstandard1.3/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions MetadataExtractor/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.