7#include "exiv2lib_export.h"
39 friend class PreviewManager;
66 [[nodiscard]]
const byte*
pData()
const;
70 [[nodiscard]] uint32_t
size()
const;
71#ifdef EXV_ENABLE_FILESYSTEM
82 [[nodiscard]]
size_t writeFile(
const std::string& path)
const;
88 [[nodiscard]] std::string
mimeType()
const;
93 [[nodiscard]] std::string
extension()
const;
97 [[nodiscard]]
size_t width()
const;
101 [[nodiscard]]
size_t height()
const;
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition image.hpp:50
Class that holds preview image properties and data buffer.
Definition preview.hpp:38
uint32_t size() const
Return the size of the preview image in bytes.
Definition preview.cpp:986
PreviewImage & operator=(const PreviewImage &rhs)
Assignment operator.
Definition preview.cpp:961
size_t width() const
Return the width of the preview image in pixels.
Definition preview.cpp:998
const byte * pData() const
Return a pointer to the image data for read-only access.
Definition preview.cpp:982
DataBuf copy() const
Return a copy of the preview image data. The caller owns this copy and DataBuf ensures that it will b...
Definition preview.cpp:978
std::string mimeType() const
Return the MIME type of the preview image, usually either "image/tiff" or "image/jpeg".
Definition preview.cpp:990
size_t height() const
Return the height of the preview image in pixels.
Definition preview.cpp:1002
PreviewId id() const
Return the preview image type identifier.
Definition preview.cpp:1006
std::string extension() const
Return the file extension for the format of the preview image (".tif" or ".jpg").
Definition preview.cpp:994
PreviewImage(const PreviewImage &rhs)
Copy constructor.
Definition preview.cpp:958
size_t writeFile(const std::string &path) const
Write the thumbnail image to a file.
PreviewManager(const Image &image)
Constructor.
Definition preview.cpp:1010
PreviewPropertiesList getPreviewProperties() const
Return the properties of all preview images in a list sorted by preview width * height,...
Definition preview.cpp:1013
PreviewImage getPreviewImage(const PreviewProperties &properties) const
Return the preview image for the given preview properties.
Definition preview.cpp:1029
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
int PreviewId
Type of preview image.
Definition preview.hpp:18
std::vector< PreviewProperties > PreviewPropertiesList
Container type to hold all preview images metadata.
Definition preview.hpp:33
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:124
Preview image properties.
Definition preview.hpp:23
std::string extension_
Preview image extension.
Definition preview.hpp:25
size_t width_
Preview image width in pixels or 0 for unknown width.
Definition preview.hpp:27
PreviewId id_
Identifies type of preview image.
Definition preview.hpp:29
size_t size_
Preview image size in bytes.
Definition preview.hpp:26
size_t height_
Preview image height in pixels or 0 for unknown height.
Definition preview.hpp:28
std::string mimeType_
Preview image mime type.
Definition preview.hpp:24