diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2007-10-31 16:21:02 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2007-10-31 16:21:02 +0000 |
commit | 5888898c570f0f22c930d8c66fe0949d00a90b93 (patch) | |
tree | eb33f602f1c1a1ddda3274c89a819f6f44f3591e /ext/metadata/metadataparseexif.c | |
parent | 7412141912cc527a231697e38793871b17e6425b (diff) | |
download | gst-plugins-bad-5888898c570f0f22c930d8c66fe0949d00a90b93.tar.gz gst-plugins-bad-5888898c570f0f22c930d8c66fe0949d00a90b93.tar.bz2 gst-plugins-bad-5888898c570f0f22c930d8c66fe0949d00a90b93.zip |
Now sending iptc tag in whole chunk. Ready to also send exif and xmp in the same way (look at bug #486659).
Original commit message from CVS:
Now sending iptc tag in whole chunk. Ready to also send exif and xmp in the same way (look at bug #486659).
Diffstat (limited to 'ext/metadata/metadataparseexif.c')
-rw-r--r-- | ext/metadata/metadataparseexif.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ext/metadata/metadataparseexif.c b/ext/metadata/metadataparseexif.c index abd9f50a..5ed97bba 100644 --- a/ext/metadata/metadataparseexif.c +++ b/ext/metadata/metadataparseexif.c @@ -46,10 +46,16 @@ GST_DEBUG_CATEGORY (gst_metadata_parse_exif_debug); #define GST_CAT_DEFAULT gst_metadata_parse_exif_debug +void +metadataparse_exif_tags_register (void) +{ +} + #ifndef HAVE_EXIF void -metadataparse_exif_dump (GstAdapter * adapter) +metadataparse_exif_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, + GstAdapter * adapter) { GST_LOG ("EXIF not defined, here I should send just one tag as whole chunk"); @@ -66,7 +72,8 @@ exif_data_foreach_content_func (ExifContent * content, void *callback_data); static void exif_content_foreach_entry_func (ExifEntry * entry, void *); void -metadataparse_exif_dump (GstAdapter * adapter) +metadataparse_exif_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, + GstAdapter * adapter) { const guint8 *buf; guint32 size; @@ -84,7 +91,7 @@ metadataparse_exif_dump (GstAdapter * adapter) } exif_data_foreach_content (exif, exif_data_foreach_content_func, - (void *) NULL /* app data */ ); + (void *) taglist); done: @@ -96,20 +103,22 @@ done: } static void -exif_data_foreach_content_func (ExifContent * content, void *callback_data) +exif_data_foreach_content_func (ExifContent * content, void *user_data) { ExifIfd ifd = exif_content_get_ifd (content); + GstTagList *taglist = (GstTagList *) user_data; GST_LOG ("\n Content %p: %s (ifd=%d)", content, exif_ifd_get_name (ifd), ifd); exif_content_foreach_entry (content, exif_content_foreach_entry_func, - callback_data); + user_data); } static void -exif_content_foreach_entry_func (ExifEntry * entry, void *unused) +exif_content_foreach_entry_func (ExifEntry * entry, void *user_data) { char buf[2048]; + GstTagList *taglist = (GstTagList *) user_data; GST_LOG ("\n Entry %p: %s (%s)\n" " Size, Comps: %d, %d\n" |