Actions

Difference between revisions of "EXIF"

From XnView Wiki

Line 17: Line 17:
'''See also'''
'''See also'''
:[[IPTC#gflBitmapHasIPTC|gflBitmapHasIPTC]], [[#gflBitmapGetEXIF|gflBitmapGetEXIF]], [[#gflFreeEXIF|gflFreeEXIF]], [[#gflBitmapRemoveEXIFThumbnail|gflBitmapRemoveEXIFThumbnail]], [[Misc#gflBitmapRemoveMetaData|gflBitmapRemoveMetaData]]
:[[IPTC#gflBitmapHasIPTC|gflBitmapHasIPTC]], [[#gflBitmapGetEXIF|gflBitmapGetEXIF]], [[#gflFreeEXIF|gflFreeEXIF]], [[#gflBitmapRemoveEXIFThumbnail|gflBitmapRemoveEXIFThumbnail]], [[Misc#gflBitmapRemoveMetaData|gflBitmapRemoveMetaData]]


== gflBitmapGetEXIF ==
== gflBitmapGetEXIF ==
Line 39: Line 40:
'''See also'''
'''See also'''
:[[#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[#gflFreeEXIF|gflFreeEXIF]]
:[[#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[#gflFreeEXIF|gflFreeEXIF]]


== gflFreeEXIF ==
== gflFreeEXIF ==
Line 55: Line 57:
'''See also'''
'''See also'''
:[[#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[#gflBitmapGetEXIF|gflBitmapGetEXIF]]
:[[#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[#gflBitmapGetEXIF|gflBitmapGetEXIF]]
== gflBitmapGetEXIFValue ==
The gflBitmapGetEXIFValue allow to get a tag from EXIF metadata.
GFL_ERROR <b>gflBitmapGetEXIFValue</b>(
  const GFL_BITMAP* bitmap,
  GFL_UINT32 tag,
  char* value,
  GFL_INT32 value_length
);
'''Parameters'''
:bitmap
::Pointer to a [[Structures#GFL_BITMAP|GFL_BITMAP]] structure
:tag
::EXIF tag
:value
::Pointer to a char array (string)
:value_length
::Maximum length of the string
'''Return value'''
:The function returns GFL_NO_ERROR if it is successful or a value of [[Error|GFL_ERROR]].





Revision as of 15:22, 23 September 2009

gflBitmapHasEXIF

The gflBitmapHasEXIF function is used to know if the picture has EXIF metadata.

GFL_BOOL gflBitmapHasEXIF(
  const GFL_BITMAP* bitmap
);

Parameters

bitmap
Pointer to a GFL_BITMAP structure.

Return value

The function returns GFL_TRUE if the bitmap has EXIF metadata.

See also

gflBitmapHasIPTC, gflBitmapGetEXIF, gflFreeEXIF, gflBitmapRemoveEXIFThumbnail, gflBitmapRemoveMetaData


gflBitmapGetEXIF

The gflBitmapGetEXIF function returns EXIF metadata in a readable form.

GFL_EXIF_DATA* gflBitmapGetEXIF(
  const GFL_BITMAP* bitmap,  
  GFL_UINT32  flags
);

Parameters

bitmap
Pointer to a GFL_BITMAP structure.
flags
Not used.

Return value

The function returns a pointer to a GFL_EXIF_DATA structure.

See also

gflBitmapHasEXIF, gflFreeEXIF


gflFreeEXIF

The gflFreeEXIF function frees memory allocated by gflBitmapGetEXIF function.

void gflFreeEXIF(
  GFL_EXIF_DATA* exif_data
);

Parameters

exif_data
Pointer to a GFL_EXIF_DATA structure.

See also

gflBitmapHasEXIF, gflBitmapGetEXIF


gflBitmapGetEXIFValue

The gflBitmapGetEXIFValue allow to get a tag from EXIF metadata.

GFL_ERROR gflBitmapGetEXIFValue(
  const GFL_BITMAP* bitmap, 
  GFL_UINT32 tag, 
  char* value, 
  GFL_INT32 value_length
); 

Parameters

bitmap
Pointer to a GFL_BITMAP structure
tag
EXIF tag
value
Pointer to a char array (string)
value_length
Maximum length of the string

Return value

The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.


gflBitmapRemoveEXIFThumbnail

The gflBitmapRemoveEXIFThumbnail function remove thumbnail from EXIF metadata.

GFL_ERROR gflBitmapRemoveEXIFThumbnail(
  GFL_BITMAP* bitmap
);

Parameters

bitmap
Pointer to a GFL_BITMAP structure.

See also

gflBitmapHasEXIF, gflBitmapRemoveMetaData