|
@@ -7,10 +7,13 @@
|
|
|
#pragma once
|
|
|
|
|
|
#include <AK/MemoryStream.h>
|
|
|
+#include <AK/NonnullOwnPtr.h>
|
|
|
#include <LibGfx/ImageFormats/ImageDecoder.h>
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
+class ExifMetadata;
|
|
|
+
|
|
|
// This is a link to the main TIFF specification from 1992
|
|
|
// https://www.itu.int/itudoc/itu-t/com16/tiff-fx/docs/tiff6.pdf
|
|
|
|
|
@@ -33,6 +36,7 @@ class TIFFImageDecoderPlugin : public ImageDecoderPlugin {
|
|
|
public:
|
|
|
static bool sniff(ReadonlyBytes);
|
|
|
static ErrorOr<NonnullOwnPtr<ImageDecoderPlugin>> create(ReadonlyBytes);
|
|
|
+ static ErrorOr<NonnullOwnPtr<ExifMetadata>> read_exif_metadata(ReadonlyBytes);
|
|
|
|
|
|
virtual ~TIFFImageDecoderPlugin() override = default;
|
|
|
|