diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-04-03 23:02:57 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-06-09 16:26:36 -0300 |
commit | 6b6a4e85ad01f1c25d7b77c1980e2a0c6080eb54 (patch) | |
tree | 3e9d1302a6b6a9ea69e28a739145acd3fd2e33f9 /gst-libs/gst/tag/tag.h | |
parent | 4caee01a06babb11e38ac5b30194dda241388bb3 (diff) |
tag: Adds basic exif tags support
Adds exif helper lib functions to parse exif buffers from/to
taglists. Exif is tipically used in jpeg images, but it can
also be embedded into TIFF, AVI and WAV formats.
Adds a couple function to handle exif in tiff header structures, that is how
exif is embedded in jpeg and (obviously) in tiff.
API: gst_tag_list_to_exif_buffer
API: gst_tag_list_to_exif_buffer_with_tiff_header
API: gst_tag_list_from_exif_buffer
API: gst_tag_list_from_exif_buffer_with_tiff_header
Fixes #614872
Diffstat (limited to 'gst-libs/gst/tag/tag.h')
-rw-r--r-- | gst-libs/gst/tag/tag.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gst-libs/gst/tag/tag.h b/gst-libs/gst/tag/tag.h index 28d520933..97e615fc0 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -224,6 +224,20 @@ GstTagList * gst_tag_list_from_xmp_buffer (const GstBuffer * buffer GstBuffer * gst_tag_list_to_xmp_buffer (const GstTagList * list, gboolean read_only); +/* functions related to exif */ +GstBuffer * gst_tag_list_to_exif_buffer (const GstTagList * list, + gint byte_order, + guint32 base_offset); + +GstBuffer * gst_tag_list_to_exif_buffer_with_tiff_header (const GstTagList * taglist); + +GstTagList * gst_tag_list_from_exif_buffer (const GstBuffer * buffer, + gint byte_order, + guint32 base_offset); + +GstTagList * gst_tag_list_from_exif_buffer_with_tiff_header ( + const GstBuffer * buffer); + /* other tag-related functions */ gboolean gst_tag_parse_extended_comment (const gchar * ext_comment, |