ExifData Class Reference
#include <exif.h>

Public Member Functions | |
| ExifData () | |
| bool | scan (const QString &) |
| QString | getCameraMake () |
| QString | getCameraModel () |
| QString | getDateTime () |
| int | getOrientation () |
| int | getHeight () |
| int | getWidth () |
| int | getIsColor () |
| int | getProcess () |
| int | getFlashUsed () |
| float | getFocalLength () |
| float | getExposureTime () |
| float | getApertureFNumber () |
| float | getDistance () |
| int | getWhitebalance () |
| int | getMeteringMode () |
| float | getCCDWidth () |
| float | getExposureBias () |
| int | getExposureProgram () |
| int | getISOequivalent () |
| int | getCompressionLevel () |
| QString | getUserComment () |
| QString | getComment () |
| QImage | getThumbnail () |
| bool | isThumbnailSane () |
| bool | isNullThumbnail () |
Public Attributes | |
| bool | exifDataValid |
| QImage | Thumbnail |
Private Member Functions | |
| int | getch (QFile &infile) |
| int | ReadJpegSections (QFile &infile, ReadMode_t ReadMode) |
| void | DiscardData (void) |
| int | Get16u (void *Short) |
| int | Get32s (void *Long) |
| unsigned | Get32u (void *Long) |
| double | ConvertAnyFormat (void *ValuePtr, int Format) |
| void | ProcessExifDir (unsigned char *DirStart, unsigned char *OffsetBase, unsigned ExifLength) |
| void | process_COM (const uchar *Data, int length) |
| void | process_SOFn (const uchar *Data, int marker) |
| int | Get16m (const void *Short) |
| void | process_EXIF (unsigned char *CharBuf, unsigned int length) |
| int | Exif2tm (struct tm *timeptr, char *ExifTime) |
Private Attributes | |
| Section_t | Sections [MAX_SECTIONS] |
| QString | CameraMake |
| QString | CameraModel |
| QString | DateTime |
| int | Orientation |
| int | Height |
| int | Width |
| int | ExifImageLength |
| int | ExifImageWidth |
| int | IsColor |
| int | Process |
| int | FlashUsed |
| float | FocalLength |
| float | ExposureTime |
| float | ApertureFNumber |
| float | Distance |
| int | Whitebalance |
| int | MeteringMode |
| float | CCDWidth |
| float | ExposureBias |
| int | ExposureProgram |
| int | ISOequivalent |
| int | CompressionLevel |
| QString | UserComment |
| QString | Comment |
| int | recurseLevel |
Detailed Description
Definition at line 52 of file exif.h.
Constructor & Destructor Documentation
| ExifData::ExifData | ( | ) |
Definition at line 957 of file exif.cpp.
References ApertureFNumber, CCDWidth, CompressionLevel, Distance, exifDataValid, ExposureBias, ExposureProgram, ExposureTime, FlashUsed, FocalLength, Height, IsColor, ISOequivalent, MeteringMode, Orientation, Process, recurseLevel, Whitebalance, and Width.
Member Function Documentation
| int ExifData::getch | ( | QFile & | infile | ) | [private] |
| int ExifData::ReadJpegSections | ( | QFile & | infile, | |
| ReadMode_t | ReadMode | |||
| ) | [private] |
Definition at line 228 of file exif.cpp.
References Section_t::Data, exifDataValid, getch(), M_COM, M_EOI, M_EXIF, M_JFIF, M_SOF0, M_SOF1, M_SOF10, M_SOF11, M_SOF13, M_SOF14, M_SOF15, M_SOF2, M_SOF3, M_SOF5, M_SOF6, M_SOF7, M_SOF9, M_SOI, M_SOS, MAX_SECTIONS, process_COM(), process_EXIF(), process_SOFn(), PSEUDO_IMAGE_MARKER, READ_EXIF, READ_IMAGE, Sections, SectionsRead, Section_t::Size, and Section_t::Type.
Referenced by scan().
| void ExifData::DiscardData | ( | void | ) | [private] |
Definition at line 397 of file exif.cpp.
References Sections, and SectionsRead.
Referenced by scan().
| int ExifData::Get16u | ( | void * | Short | ) | [private] |
Definition at line 407 of file exif.cpp.
References MotorolaOrder.
Referenced by ConvertAnyFormat(), process_EXIF(), and ProcessExifDir().
| int ExifData::Get32s | ( | void * | Long | ) | [private] |
Definition at line 422 of file exif.cpp.
References MotorolaOrder.
Referenced by ConvertAnyFormat(), and Get32u().
| unsigned ExifData::Get32u | ( | void * | Long | ) | [private] |
Definition at line 439 of file exif.cpp.
References Get32s().
Referenced by ConvertAnyFormat(), process_EXIF(), and ProcessExifDir().
| double ExifData::ConvertAnyFormat | ( | void * | ValuePtr, | |
| int | Format | |||
| ) | [private] |
Definition at line 447 of file exif.cpp.
References FMT_BYTE, FMT_DOUBLE, FMT_SBYTE, FMT_SINGLE, FMT_SLONG, FMT_SRATIONAL, FMT_SSHORT, FMT_ULONG, FMT_URATIONAL, FMT_USHORT, Get16u(), Get32s(), and Get32u().
Referenced by ProcessExifDir().
| void ExifData::ProcessExifDir | ( | unsigned char * | DirStart, | |
| unsigned char * | OffsetBase, | |||
| unsigned | ExifLength | |||
| ) | [private] |
Definition at line 491 of file exif.cpp.
References ApertureFNumber, BytesPerFormat, CameraMake, CameraModel, CompressionLevel, ConvertAnyFormat(), DateTime, DIR_ENTRY_ADDR, Distance, ExifImageLength, ExifImageWidth, ExposureBias, ExposureProgram, ExposureTime, FlashUsed, FocalLength, FocalplaneUnits, FocalplaneXRes, Get16u(), Get32u(), int(), ISOequivalent, LastExifRefd, MeteringMode, NUM_FORMATS, Orientation, recurseLevel, TAG_APERTURE, TAG_COMPRESSION_LEVEL, TAG_DATETIME_ORIGINAL, TAG_EXIF_IMAGELENGTH, TAG_EXIF_IMAGEWIDTH, TAG_EXIF_OFFSET, TAG_EXPOSURE_BIAS, TAG_EXPOSURE_PROGRAM, TAG_EXPOSURETIME, TAG_FLASH, TAG_FNUMBER, TAG_FOCALLENGTH, TAG_FOCALPLANEUNITS, TAG_FOCALPLANEXRES, TAG_INTEROP_OFFSET, TAG_ISO_EQUIVALENT, TAG_MAKE, TAG_MAXAPERTURE, TAG_METERING_MODE, TAG_MODEL, TAG_ORIENTATION, TAG_SHUTTERSPEED, TAG_SUBJECT_DISTANCE, TAG_THUMBNAIL_LENGTH, TAG_THUMBNAIL_OFFSET, TAG_USERCOMMENT, TAG_WHITEBALANCE, Thumbnail, UserComment, and Whitebalance.
Referenced by process_EXIF().
| void ExifData::process_COM | ( | const uchar * | Data, | |
| int | length | |||
| ) | [private] |
| void ExifData::process_SOFn | ( | const uchar * | Data, | |
| int | marker | |||
| ) | [private] |
| int ExifData::Get16m | ( | const void * | Short | ) | [private] |
| void ExifData::process_EXIF | ( | unsigned char * | CharBuf, | |
| unsigned int | length | |||
| ) | [private] |
Definition at line 869 of file exif.cpp.
References CCDWidth, ExifImageLength, ExifImageWidth, ExifSettingsLength, FlashUsed, FocalplaneUnits, FocalplaneXRes, Get16u(), Get32u(), LastExifRefd, MotorolaOrder, ProcessExifDir(), and recurseLevel.
Referenced by ReadJpegSections().
| int ExifData::Exif2tm | ( | struct tm * | timeptr, | |
| char * | ExifTime | |||
| ) | [private] |
| bool ExifData::scan | ( | const QString & | path | ) |
Definition at line 983 of file exif.cpp.
References CameraMake, CameraModel, Comment, DiscardData(), READ_EXIF, ReadJpegSections(), and UserComment.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| QString ExifData::getCameraMake | ( | ) | [inline] |
Definition at line 96 of file exif.h.
References CameraMake.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| QString ExifData::getCameraModel | ( | ) | [inline] |
Definition at line 97 of file exif.h.
References CameraModel.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| QString ExifData::getDateTime | ( | ) | [inline] |
Definition at line 98 of file exif.h.
References DateTime.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| int ExifData::getOrientation | ( | ) | [inline] |
| int ExifData::getHeight | ( | ) | [inline] |
Definition at line 100 of file exif.h.
References Height.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| int ExifData::getWidth | ( | ) | [inline] |
Definition at line 101 of file exif.h.
References Width.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| int ExifData::getFlashUsed | ( | ) | [inline] |
| float ExifData::getFocalLength | ( | ) | [inline] |
| float ExifData::getExposureTime | ( | ) | [inline] |
Definition at line 106 of file exif.h.
References ExposureTime.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| float ExifData::getApertureFNumber | ( | ) | [inline] |
Definition at line 107 of file exif.h.
References ApertureFNumber.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| float ExifData::getDistance | ( | ) | [inline] |
| int ExifData::getWhitebalance | ( | ) | [inline] |
| int ExifData::getMeteringMode | ( | ) | [inline] |
| float ExifData::getCCDWidth | ( | ) | [inline] |
| float ExifData::getExposureBias | ( | ) | [inline] |
| int ExifData::getExposureProgram | ( | ) | [inline] |
| int ExifData::getISOequivalent | ( | ) | [inline] |
Definition at line 114 of file exif.h.
References ISOequivalent.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| int ExifData::getCompressionLevel | ( | ) | [inline] |
| QString ExifData::getUserComment | ( | ) | [inline] |
Definition at line 116 of file exif.h.
References UserComment.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| QString ExifData::getComment | ( | ) | [inline] |
Definition at line 117 of file exif.h.
References Comment.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| QImage ExifData::getThumbnail | ( | ) |
Definition at line 1053 of file exif.cpp.
References Orientation, and Thumbnail.
Referenced by ScImgDataLoader_JPEG::loadPicture().
| bool ExifData::isThumbnailSane | ( | ) |
Definition at line 1025 of file exif.cpp.
References exifDataValid, ExifImageLength, ExifImageWidth, Height, JPEG_TOL, Thumbnail, and Width.
Referenced by isNullThumbnail().
| bool ExifData::isNullThumbnail | ( | ) | [inline] |
Member Data Documentation
Section_t ExifData::Sections[MAX_SECTIONS] [private] |
QString ExifData::CameraMake [private] |
QString ExifData::CameraModel [private] |
QString ExifData::DateTime [private] |
int ExifData::Orientation [private] |
Definition at line 58 of file exif.h.
Referenced by ExifData(), getOrientation(), getThumbnail(), and ProcessExifDir().
int ExifData::Height [private] |
Definition at line 59 of file exif.h.
Referenced by ExifData(), getHeight(), isThumbnailSane(), and process_SOFn().
int ExifData::Width [private] |
Definition at line 59 of file exif.h.
Referenced by ExifData(), getWidth(), isThumbnailSane(), and process_SOFn().
int ExifData::ExifImageLength [private] |
Definition at line 60 of file exif.h.
Referenced by isThumbnailSane(), process_EXIF(), and ProcessExifDir().
int ExifData::ExifImageWidth [private] |
Definition at line 60 of file exif.h.
Referenced by isThumbnailSane(), process_EXIF(), and ProcessExifDir().
int ExifData::IsColor [private] |
int ExifData::Process [private] |
int ExifData::FlashUsed [private] |
Definition at line 63 of file exif.h.
Referenced by ExifData(), getFlashUsed(), process_EXIF(), and ProcessExifDir().
float ExifData::FocalLength [private] |
Definition at line 64 of file exif.h.
Referenced by ExifData(), getFocalLength(), and ProcessExifDir().
float ExifData::ExposureTime [private] |
Definition at line 65 of file exif.h.
Referenced by ExifData(), getExposureTime(), and ProcessExifDir().
float ExifData::ApertureFNumber [private] |
Definition at line 66 of file exif.h.
Referenced by ExifData(), getApertureFNumber(), and ProcessExifDir().
float ExifData::Distance [private] |
Definition at line 67 of file exif.h.
Referenced by ExifData(), getDistance(), and ProcessExifDir().
int ExifData::Whitebalance [private] |
Definition at line 68 of file exif.h.
Referenced by ExifData(), getWhitebalance(), and ProcessExifDir().
int ExifData::MeteringMode [private] |
Definition at line 69 of file exif.h.
Referenced by ExifData(), getMeteringMode(), and ProcessExifDir().
float ExifData::CCDWidth [private] |
float ExifData::ExposureBias [private] |
Definition at line 71 of file exif.h.
Referenced by ExifData(), getExposureBias(), and ProcessExifDir().
int ExifData::ExposureProgram [private] |
Definition at line 72 of file exif.h.
Referenced by ExifData(), getExposureProgram(), and ProcessExifDir().
int ExifData::ISOequivalent [private] |
Definition at line 73 of file exif.h.
Referenced by ExifData(), getISOequivalent(), and ProcessExifDir().
int ExifData::CompressionLevel [private] |
Definition at line 74 of file exif.h.
Referenced by ExifData(), getCompressionLevel(), and ProcessExifDir().
QString ExifData::UserComment [private] |
QString ExifData::Comment [private] |
int ExifData::recurseLevel [private] |
Definition at line 77 of file exif.h.
Referenced by ExifData(), process_EXIF(), and ProcessExifDir().
Definition at line 121 of file exif.h.
Referenced by ExifData(), isThumbnailSane(), ScImgDataLoader_JPEG::loadPicture(), and ReadJpegSections().
| QImage ExifData::Thumbnail |
Definition at line 122 of file exif.h.
Referenced by getThumbnail(), isThumbnailSane(), ScImgDataLoader_JPEG::loadPicture(), and ProcessExifDir().
The documentation for this class was generated from the following files:
