|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| ExifData * | loadFromBuffer (const QByteArray &buffer) |
| ExifData * | createNew () |
| bool | saveToBuffer (ExifData *data, QByteArray &buffer) |
| bool | isJpeg (const QByteArray &buffer) |
| Check if a buffer is a JPEG image (starts with 0xFF 0xD8) | |
| bool | isTiff (const QByteArray &buffer) |
| bool | hasExifData (const QByteArray &buffer) |
| Check if a buffer contains valid JPEG with EXIF data. | |
| QString | readString (ExifData *data, ExifTag tag, ExifIfd ifd=EXIF_IFD_0) |
| Read a string value from an EXIF tag. | |
| int | readShort (ExifData *data, ExifTag tag, ExifIfd ifd=EXIF_IFD_0) |
| Read a short (16-bit) value from an EXIF tag. | |
| double | readRational (ExifData *data, ExifTag tag, ExifIfd ifd=EXIF_IFD_0) |
| Read a rational value from an EXIF tag. | |
| ExifEntry * | initTag (ExifData *data, ExifIfd ifd, ExifTag tag) |
| ExifEntry * | createTag (ExifData *data, ExifIfd ifd, ExifTag tag, ExifFormat format, unsigned long components) |
| double | gpsRationalToDecimal (ExifEntry *entry, ExifByteOrder order) |
| Convert GPS coordinate from EXIF rational format (deg/min/sec) to decimal degrees. | |
| void | writeGpsCoordinate (ExifEntry *entry, ExifByteOrder order, double value) |
| Write GPS coordinate as EXIF rationals (degrees, minutes, seconds) | |
| void | writeRational (ExifEntry *entry, ExifByteOrder order, double value, int denominator=100) |
| Write a single rational value to an entry. | |
| void | writeGpsRef (ExifEntry *entry, char value) |
| Write an ASCII character to a GPS reference entry (N/S/E/W) | |
| void | writeGpsAltRef (ExifEntry *entry, unsigned char value) |
| Write a byte value to a GPS altitude reference entry (0=above, 1=below sea level) | |
| bool | writeDateTimeOriginal (ExifData *data, const QDateTime &dateTime) |
| ExifData * ExifUtility::createNew | ( | ) |
Create new empty EXIF data structure with standard options set
Definition at line 24 of file ExifUtility.cc.
References createNew().
Referenced by createNew(), and ExifParser::write().
| ExifEntry * ExifUtility::createTag | ( | ExifData * | data, |
| ExifIfd | ifd, | ||
| ExifTag | tag, | ||
| ExifFormat | format, | ||
| unsigned long | components | ||
| ) |
Create a new entry with custom size for tags that need manual setup Use for GPS tags and other tags that exif_entry_initialize() doesn't handle
Definition at line 263 of file ExifUtility.cc.
References createTag().
Referenced by createTag(), and ExifParser::write().
| double ExifUtility::gpsRationalToDecimal | ( | ExifEntry * | entry, |
| ExifByteOrder | order | ||
| ) |
Convert GPS coordinate from EXIF rational format (deg/min/sec) to decimal degrees.
Definition at line 308 of file ExifUtility.cc.
References gpsRationalToDecimal().
Referenced by gpsRationalToDecimal().
| bool ExifUtility::hasExifData | ( | const QByteArray & | buffer | ) |
Check if a buffer contains valid JPEG with EXIF data.
Definition at line 153 of file ExifUtility.cc.
References hasExifData(), isJpeg(), and isTiff().
Referenced by hasExifData().
| ExifEntry * ExifUtility::initTag | ( | ExifData * | data, |
| ExifIfd | ifd, | ||
| ExifTag | tag | ||
| ) |
Get existing entry or create a new one with auto-initialization Use for standard EXIF tags that exif_entry_initialize() can handle
Definition at line 234 of file ExifUtility.cc.
References initTag().
Referenced by initTag(), and writeDateTimeOriginal().
| bool ExifUtility::isJpeg | ( | const QByteArray & | buffer | ) |
Check if a buffer is a JPEG image (starts with 0xFF 0xD8)
Definition at line 128 of file ExifUtility.cc.
References isJpeg().
Referenced by hasExifData(), isJpeg(), and saveToBuffer().
| bool ExifUtility::isTiff | ( | const QByteArray & | buffer | ) |
Check if a buffer is a TIFF-based image (TIFF, DNG, etc.) TIFF files start with "II" (little-endian) or "MM" (big-endian)
Definition at line 135 of file ExifUtility.cc.
References isTiff().
Referenced by hasExifData(), isTiff(), and saveToBuffer().
| ExifData * ExifUtility::loadFromBuffer | ( | const QByteArray & | buffer | ) |
Load EXIF data from a JPEG buffer
Definition at line 16 of file ExifUtility.cc.
References loadFromBuffer().
Referenced by loadFromBuffer(), ExifParser::readTime(), and ExifParser::write().
| double ExifUtility::readRational | ( | ExifData * | data, |
| ExifTag | tag, | ||
| ExifIfd | ifd | ||
| ) |
Read a rational value from an EXIF tag.
Definition at line 213 of file ExifUtility.cc.
References readRational().
Referenced by readRational().
| int ExifUtility::readShort | ( | ExifData * | data, |
| ExifTag | tag, | ||
| ExifIfd | ifd | ||
| ) |
Read a short (16-bit) value from an EXIF tag.
Definition at line 200 of file ExifUtility.cc.
References readShort().
Referenced by readShort().
| QString ExifUtility::readString | ( | ExifData * | data, |
| ExifTag | tag, | ||
| ExifIfd | ifd | ||
| ) |
Read a string value from an EXIF tag.
Definition at line 183 of file ExifUtility.cc.
References readString().
Referenced by readString(), and ExifParser::readTime().
| bool ExifUtility::saveToBuffer | ( | ExifData * | data, |
| QByteArray & | buffer | ||
| ) |
Save EXIF data back to a JPEG buffer
| data | The EXIF data to save |
| buffer | The original JPEG buffer (modified in place) |
Definition at line 38 of file ExifUtility.cc.
References isJpeg(), isTiff(), and saveToBuffer().
Referenced by saveToBuffer(), and ExifParser::write().
| bool ExifUtility::writeDateTimeOriginal | ( | ExifData * | data, |
| const QDateTime & | dateTime | ||
| ) |
Write a DateTime value to EXIF_TAG_DATE_TIME_ORIGINAL
| data | The EXIF data structure |
| dateTime | The date/time to write |
Definition at line 383 of file ExifUtility.cc.
References initTag(), and writeDateTimeOriginal().
Referenced by writeDateTimeOriginal().
| void ExifUtility::writeGpsAltRef | ( | ExifEntry * | entry, |
| unsigned char | value | ||
| ) |
Write a byte value to a GPS altitude reference entry (0=above, 1=below sea level)
Definition at line 373 of file ExifUtility.cc.
References writeGpsAltRef().
Referenced by ExifParser::write(), and writeGpsAltRef().
| void ExifUtility::writeGpsCoordinate | ( | ExifEntry * | entry, |
| ExifByteOrder | order, | ||
| double | value | ||
| ) |
Write GPS coordinate as EXIF rationals (degrees, minutes, seconds)
Definition at line 334 of file ExifUtility.cc.
References writeGpsCoordinate().
Referenced by ExifParser::write(), and writeGpsCoordinate().
| void ExifUtility::writeGpsRef | ( | ExifEntry * | entry, |
| char | value | ||
| ) |
Write an ASCII character to a GPS reference entry (N/S/E/W)
Definition at line 366 of file ExifUtility.cc.
References writeGpsRef().
Referenced by ExifParser::write(), and writeGpsRef().
| void ExifUtility::writeRational | ( | ExifEntry * | entry, |
| ExifByteOrder | order, | ||
| double | value, | ||
| int | denominator | ||
| ) |
Write a single rational value to an entry.
Definition at line 355 of file ExifUtility.cc.
References writeRational().
Referenced by ExifParser::write(), and writeRational().