#include <jpgimage.hpp>
Inheritance diagram for Exiv2::JpegBase:
Public Member Functions | |
Manipulators | |
void | readMetadata () |
Read all metadata supported by a specific image format from the image. Before this method is called, the image metadata will be cleared. | |
void | writeMetadata () |
Write metadata back to the image. | |
Protected Member Functions | |
Creators | |
JpegBase (int type, BasicIo::AutoPtr io, bool create, const byte initData[], long dataSize) | |
Constructor that can either open an existing image or create a new image from scratch. If a new image is to be created, any existing data is overwritten. | |
Accessors | |
virtual bool | isThisType (BasicIo &iIo, bool advance) const =0 |
Determine if the content of the BasicIo instance is of the type supported by this class. | |
Manipulators | |
virtual int | writeHeader (BasicIo &oIo) const =0 |
Writes the image header (aka signature) to the BasicIo instance. | |
Static Protected Attributes | |
const byte | sos_ |
JPEG SOS marker. | |
const byte | eoi_ |
JPEG EOI marker. | |
const byte | app0_ |
JPEG APP0 marker. | |
const byte | app1_ |
JPEG APP1 marker. | |
const byte | app13_ |
JPEG APP13 marker. | |
const byte | com_ |
JPEG Comment marker. | |
const byte | sof0_ |
JPEG Start-Of-Frame marker. | |
const byte | sof1_ |
JPEG Start-Of-Frame marker. | |
const byte | sof2_ |
JPEG Start-Of-Frame marker. | |
const byte | sof3_ |
JPEG Start-Of-Frame marker. | |
const byte | sof5_ |
JPEG Start-Of-Frame marker. | |
const byte | sof6_ |
JPEG Start-Of-Frame marker. | |
const byte | sof7_ |
JPEG Start-Of-Frame marker. | |
const byte | sof9_ |
JPEG Start-Of-Frame marker. | |
const byte | sof10_ |
JPEG Start-Of-Frame marker. | |
const byte | sof11_ |
JPEG Start-Of-Frame marker. | |
const byte | sof13_ |
JPEG Start-Of-Frame marker. | |
const byte | sof14_ |
JPEG Start-Of-Frame marker. | |
const byte | sof15_ |
JPEG Start-Of-Frame marker. | |
const char | exifId_ [] |
Exif identifier. | |
const char | jfifId_ [] |
JFIF identifier. | |
const char | xmpId_ [] |
XMP packet identifier. |
|
Constructor that can either open an existing image or create a new image from scratch. If a new image is to be created, any existing data is overwritten.
|
|
Determine if the content of the BasicIo instance is of the type supported by this class. The advance flag determines if the read position in the stream is moved (see below). This applies only if the type matches and the function returns true. If the type does not match, the stream position is not changed. However, if reading from the stream fails, the stream position is undefined. Consult the stream state to obtain more information in this case.
Implemented in Exiv2::JpegImage, and Exiv2::ExvImage. |
|
Read all metadata supported by a specific image format from the image. Before this method is called, the image metadata will be cleared. This method returns success even if no metadata is found in the image. Callers must therefore check the size of individual metadata types before accessing the data.
Implements Exiv2::Image. |
|
Writes the image header (aka signature) to the BasicIo instance.
Implemented in Exiv2::JpegImage, and Exiv2::ExvImage. |
|
Write metadata back to the image. All existing metadata sections in the image are either created, replaced, or erased. If values for a given metadata type have been assigned, a section for that metadata type will either be created or replaced. If no values have been assigned to a given metadata type, any exists section for that metadata type will be removed from the image.
Implements Exiv2::Image. |