Structure to manage EXIF metadata for images. This structure encapsulates EXIF data and provides methods to manipulate and retrieve information from it. It is used in conjunction with JPEG encoding and decoding functions to preserve image metadata.
More...
#include <ImageEncoding.h>
|
| ExifData * | metadata {nullptr} |
| | Pointer to the underlying ExifData structure. This pointer is managed by the ExifMetadata instance and should not be accessed directly. More...
|
| |
Structure to manage EXIF metadata for images. This structure encapsulates EXIF data and provides methods to manipulate and retrieve information from it. It is used in conjunction with JPEG encoding and decoding functions to preserve image metadata.
◆ ExifMetadata() [1/3]
| celantur::ExifMetadata::ExifMetadata |
( |
ExifData * |
data | ) |
|
Constructor that takes ownership of an ExifData pointer.
- Parameters
-
| data | Pointer to ExifData from libexif. The ExifMetadata instance takes ownership and will free it upon destruction. |
◆ ~ExifMetadata()
| celantur::ExifMetadata::~ExifMetadata |
( |
| ) |
|
◆ ExifMetadata() [2/3]
| celantur::ExifMetadata::ExifMetadata |
( |
const ExifMetadata & |
| ) |
|
|
delete |
◆ ExifMetadata() [3/3]
| celantur::ExifMetadata::ExifMetadata |
( |
ExifMetadata && |
other | ) |
|
|
noexcept |
◆ get_orientation()
| int celantur::ExifMetadata::get_orientation |
( |
| ) |
const |
Retrieve the orientation value from the EXIF metadata. This function extracts the orientation tag from the EXIF data, which indicates how the image should be rotated for correct display.
- Returns
- An integer representing the orientation value. Common values are 1 (normal), 3 (180 degrees), 6 (90 degrees clockwise), and 8 (90 degrees counter-clockwise).
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ print_exif_content()
| void celantur::ExifMetadata::print_exif_content |
( |
ExifContent * |
content, |
|
|
std::ostream & |
oss |
|
) |
| const |
Print the contents of an ExifContent structure to the provided output stream. This function iterates through all entries in the ExifContent and prints their details.
- Parameters
-
| content | Pointer to the ExifContent structure to be printed. |
| oss | Output stream where the EXIF content will be printed. |
◆ print_exif_entry()
| void celantur::ExifMetadata::print_exif_entry |
( |
ExifEntry * |
entry, |
|
|
std::ostream & |
oss |
|
) |
| const |
Print the EXIF metadata to the provided output stream. This function outputs the EXIF metadata in a human-readable format, useful for debugging and.
◆ metadata
| ExifData* celantur::ExifMetadata::metadata {nullptr} |
Pointer to the underlying ExifData structure. This pointer is managed by the ExifMetadata instance and should not be accessed directly.
- Returns
- Pointer to ExifData.