Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ExifData Class Reference

#include <exif.h>

Collaboration diagram for ExifData:

Collaboration graph
[legend]

List of all members.

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 (  ) 


Member Function Documentation

int ExifData::getch ( QFile &  infile  )  [private]

Definition at line 217 of file exif.cpp.

Referenced by ReadJpegSections().

int ExifData::ReadJpegSections ( QFile &  infile,
ReadMode_t  ReadMode 
) [private]

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]

void ExifData::ProcessExifDir ( unsigned char *  DirStart,
unsigned char *  OffsetBase,
unsigned  ExifLength 
) [private]

void ExifData::process_COM ( const uchar Data,
int  length 
) [private]

Definition at line 825 of file exif.cpp.

References Comment.

Referenced by ReadJpegSections().

void ExifData::process_SOFn ( const uchar Data,
int  marker 
) [private]

Definition at line 834 of file exif.cpp.

References Get16m(), Height, IsColor, Process, and Width.

Referenced by ReadJpegSections().

int ExifData::Get16m ( const void *  Short  )  [private]

Definition at line 859 of file exif.cpp.

Referenced by process_SOFn().

void ExifData::process_EXIF ( unsigned char *  CharBuf,
unsigned int  length 
) [private]

int ExifData::Exif2tm ( struct tm *  timeptr,
char *  ExifTime 
) [private]

Definition at line 932 of file exif.cpp.

bool ExifData::scan ( const QString &  path  ) 

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]

Definition at line 99 of file exif.h.

References Orientation.

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::getIsColor (  )  [inline]

Definition at line 102 of file exif.h.

References IsColor.

int ExifData::getProcess (  )  [inline]

Definition at line 103 of file exif.h.

References Process.

int ExifData::getFlashUsed (  )  [inline]

Definition at line 104 of file exif.h.

References FlashUsed.

float ExifData::getFocalLength (  )  [inline]

Definition at line 105 of file exif.h.

References FocalLength.

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]

Definition at line 108 of file exif.h.

References Distance.

int ExifData::getWhitebalance (  )  [inline]

Definition at line 109 of file exif.h.

References Whitebalance.

int ExifData::getMeteringMode (  )  [inline]

Definition at line 110 of file exif.h.

References MeteringMode.

float ExifData::getCCDWidth (  )  [inline]

Definition at line 111 of file exif.h.

References CCDWidth.

float ExifData::getExposureBias (  )  [inline]

Definition at line 112 of file exif.h.

References ExposureBias.

int ExifData::getExposureProgram (  )  [inline]

Definition at line 113 of file exif.h.

References ExposureProgram.

int ExifData::getISOequivalent (  )  [inline]

Definition at line 114 of file exif.h.

References ISOequivalent.

Referenced by ScImgDataLoader_JPEG::loadPicture().

int ExifData::getCompressionLevel (  )  [inline]

Definition at line 115 of file exif.h.

References CompressionLevel.

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]

Definition at line 120 of file exif.h.

References isThumbnailSane().


Member Data Documentation

Section_t ExifData::Sections[MAX_SECTIONS] [private]

Definition at line 54 of file exif.h.

Referenced by DiscardData(), and ReadJpegSections().

QString ExifData::CameraMake [private]

Definition at line 55 of file exif.h.

Referenced by getCameraMake(), ProcessExifDir(), and scan().

QString ExifData::CameraModel [private]

Definition at line 56 of file exif.h.

Referenced by getCameraModel(), ProcessExifDir(), and scan().

QString ExifData::DateTime [private]

Definition at line 57 of file exif.h.

Referenced by getDateTime(), and ProcessExifDir().

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().

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]

Definition at line 61 of file exif.h.

Referenced by ExifData(), getIsColor(), and process_SOFn().

int ExifData::Process [private]

Definition at line 62 of file exif.h.

Referenced by ExifData(), getProcess(), and process_SOFn().

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]

Definition at line 70 of file exif.h.

Referenced by ExifData(), getCCDWidth(), and process_EXIF().

float ExifData::ExposureBias [private]

Definition at line 71 of file exif.h.

Referenced by ExifData(), getExposureBias(), and ProcessExifDir().

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().

Definition at line 74 of file exif.h.

Referenced by ExifData(), getCompressionLevel(), and ProcessExifDir().

QString ExifData::UserComment [private]

Definition at line 75 of file exif.h.

Referenced by getUserComment(), ProcessExifDir(), and scan().

QString ExifData::Comment [private]

Definition at line 76 of file exif.h.

Referenced by getComment(), process_COM(), and scan().

int ExifData::recurseLevel [private]

Definition at line 77 of file exif.h.

Referenced by ExifData(), process_EXIF(), and ProcessExifDir().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.