GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_exif.h File Reference

EXIF parser. More...

#include <core/gp_gamma_correction.h>
#include <loaders/gp_data_storage.h>
#include <loaders/gp_loader.h>

Go to the source code of this file.

Enumerations

enum  GP_EXIF_ORIENTATION { GP_EXIF_UPPER_LEFT = 1 , GP_EXIF_LOWER_RIGHT = 3 , GP_EXIF_UPPER_RIGHT = 6 , GP_EXIF_LOWER_LEFT = 8 }
 Defines position to 0,0 coordinate. More...
 
enum  gp_exif_color_space { GP_EXIF_COLOR_SPACE_SRGB = 1 , GP_EXIF_COLOR_SPACE_UNDEFINED = 0xffff }
 Color space values. More...
 

Functions

int gp_read_exif (gp_io *io, gp_storage *storage, gp_correction_desc *corr_desc)
 Reads EXIF from a readable I/O stream and stores the values into storage.
 

Detailed Description

EXIF parser.

Definition in file gp_exif.h.

Enumeration Type Documentation

◆ gp_exif_color_space

Color space values.

Enumerator
GP_EXIF_COLOR_SPACE_SRGB 

sRGB color space

GP_EXIF_COLOR_SPACE_UNDEFINED 

Adobe RGB is Undefined + Gamma = 22/10.

Definition at line 46 of file gp_exif.h.

◆ GP_EXIF_ORIENTATION

Defines position to 0,0 coordinate.

Enumerator
GP_EXIF_UPPER_LEFT 

Upper left.

GP_EXIF_LOWER_RIGHT 

Lower right.

GP_EXIF_UPPER_RIGHT 

Upper right.

GP_EXIF_LOWER_LEFT 

Lower left.

Definition at line 32 of file gp_exif.h.

Function Documentation

◆ gp_read_exif()

int gp_read_exif ( gp_io * io,
gp_storage * storage,
gp_correction_desc * corr_desc )

Reads EXIF from a readable I/O stream and stores the values into storage.

Parameters
ioAn input I/O stream.
storageA data storage for exif metadata, may be NULL if not needed.
corr_descA correction tables parsed from the exif.
Returns
Zero on success, non-zero otherwise.