MicroExif: search for the TIFF signature

This commit is contained in:
Mirco Miranda
2025-03-03 09:17:56 +01:00
parent 7742537f8c
commit 25cc8bc262
3 changed files with 25 additions and 8 deletions

View File

@ -332,18 +332,23 @@ public:
/*!
* \brief fromByteArray
* Creates the class from RAW EXIF data.
* \param ba Raw data containing EXIF data.
* \param searchHeader If true, the EXIF header is searched within the data. If false, the data must begin with the EXIF header.
* \return The created class (empty on error).
* \sa isEmpty
*/
static MicroExif fromByteArray(const QByteArray &ba);
static MicroExif fromByteArray(const QByteArray &ba, bool searchHeader = false);
/*!
* \brief fromRawData
* Creates the class from RAW EXIF data.
* \param data Raw data containing EXIF data.
* \param size The size of \a data.
* \param searchHeader If true, the EXIF header is searched within the data. If false, the data must begin with the EXIF header.
* \return The created class (empty on error).
* \sa isEmpty
* \sa isEmpty, fromByteArray
*/
static MicroExif fromRawData(const char *data, size_t size);
static MicroExif fromRawData(const char *data, size_t size, bool searchHeader = false);
/*!
* \brief fromDevice