aboutsummaryrefslogtreecommitdiff
path: root/src/piex.h
diff options
context:
space:
mode:
authorNick Chusid <nchusid@google.com>2021-06-08 21:47:53 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-08 21:47:53 +0000
commit8060966efdb8f1142dfa4f864adf07d3aade8536 (patch)
treea01ef945ef570b8e5691cc0a12e28de37d42ada2 /src/piex.h
parent1c7d7561df9772e8bc2bf7f84a6fb00c4c0c82b5 (diff)
parent81b491ff16e36597b7ffbba3117ab9d31bdac533 (diff)
downloadpiex-8060966efdb8f1142dfa4f864adf07d3aade8536.tar.gz
Add support for CR3s with embedded heif thumbnails am: 5c5b671ef7 am: 81b491ff16
Original change: https://android-review.googlesource.com/c/platform/external/piex/+/1726814 Change-Id: I62117798f535826d6780c0816f92bf8121754ccb
Diffstat (limited to 'src/piex.h')
-rw-r--r--src/piex.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/piex.h b/src/piex.h
index 3225421..8d74ca0 100644
--- a/src/piex.h
+++ b/src/piex.h
@@ -49,6 +49,7 @@
#include <string>
#include <vector>
+#include "src/image_type_recognition/image_type_recognition_lite.h"
#include "src/piex_types.h"
namespace piex {
@@ -70,8 +71,11 @@ bool IsRaw(StreamInterface* data);
//
// One could check the "preview_image_data->preview_length != 0" for the
// existance of a preview image.
-Error GetPreviewImageData(StreamInterface* data,
- PreviewImageData* preview_image_data);
+//
+// Updates output_type based on data, if output_type is non-null.
+Error GetPreviewImageData(
+ StreamInterface* data, PreviewImageData* preview_image_data,
+ image_type_recognition::RawImageTypes* output_type = nullptr);
// Returns true if the full width and height and the mosaic pattern dimension of
// a DNG image could be obtained. False otherwise.