diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2007-12-21 09:45:56 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2007-12-21 09:45:56 +0000 |
commit | 0f2ac9fe8b5c7f37e61f3eef95299098ce953f1e (patch) | |
tree | 80ecd68c91efd8f1e03825664f66f7bd0d0da63e /ext/metadata/gstbasemetadata.h | |
parent | bb4e1d10e99c206fdf0ca22a43ef20efa24236ef (diff) | |
download | gst-plugins-bad-0f2ac9fe8b5c7f37e61f3eef95299098ce953f1e.tar.gz gst-plugins-bad-0f2ac9fe8b5c7f37e61f3eef95299098ce953f1e.tar.bz2 gst-plugins-bad-0f2ac9fe8b5c7f37e61f3eef95299098ce953f1e.zip |
Removed gstmetadatacommon.
Original commit message from CVS:
Removed gstmetadatacommon.
Diffstat (limited to 'ext/metadata/gstbasemetadata.h')
-rw-r--r-- | ext/metadata/gstbasemetadata.h | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/ext/metadata/gstbasemetadata.h b/ext/metadata/gstbasemetadata.h index 4389cf90..cb304406 100644 --- a/ext/metadata/gstbasemetadata.h +++ b/ext/metadata/gstbasemetadata.h @@ -45,8 +45,7 @@ #define __GST_BASE_METADATA_H__ #include <gst/gst.h> - -#include "gstmetadatacommon.h" +#include "metadata.h" G_BEGIN_DECLS @@ -84,13 +83,19 @@ typedef enum _tag_BaseMetadataType { */ #define GST_BASE_METADATA_SINK_PAD(obj) (GST_BASE_METADATA_CAST (obj)->sinkpad) -#define GST_BASE_METADATA_EXIF_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->common.metadata.exif_adapter) -#define GST_BASE_METADATA_IPTC_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->common.metadata.iptc_adapter) -#define GST_BASE_METADATA_XMP_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->common.metadata.xmp_adapter) +#define GST_BASE_METADATA_EXIF_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->metadata->exif_adapter) +#define GST_BASE_METADATA_IPTC_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->metadata->iptc_adapter) +#define GST_BASE_METADATA_XMP_ADAPTER(obj) (GST_BASE_METADATA_CAST (obj)->metadata->xmp_adapter) #define GST_BASE_METADATA_IMG_TYPE(obj) (GST_BASE_METADATA_CAST (obj)->img_type) +typedef enum _tag_MetadataState +{ + MT_STATE_NULL, /* still need to check media type */ + MT_STATE_PARSED +} MetadataState; + /** * GstBaseMetadata: * @element: the parent element. @@ -104,26 +109,32 @@ struct _GstBaseMetadata /*< protected >*/ GstPad *sinkpad, *srcpad; + MetaData *metadata; /* handle for parsing module */ + + ImageType img_type; + /*< private >*/ - GstMetadataCommon common; + + gint64 duration_orig; /* durarion of stream */ + gint64 duration; /* durarion of modified stream */ + + MetadataState state; MetaOptions options; - gboolean need_processing; + gboolean need_processing; /* still need some action before send first buffer */ GstAdapter *adapter_parsing; GstAdapter *adapter_holding; guint32 next_offset; guint32 next_size; - ImageType img_type; - + gboolean need_more_data; gint64 offset_orig; /* offset in original stream */ gint64 offset; /* offset in current stream */ + GstBuffer * append_buffer; GstBuffer * prepend_buffer; - gboolean need_more_data; - }; struct _GstBaseMetadataClass |