diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-26 08:13:10 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-26 08:13:10 +0100 |
commit | 6f62242c5f6765285564f42dd79d72a23b86b6a3 (patch) | |
tree | 5b17956b0bf70223964409b7812031df9873cf0b /gst/mxf/mxful.h | |
parent | ebefc41614b6229cb51531a6bdebfebb83e1af45 (diff) | |
parent | e5caf2eddadd6746fac36a46444358b68d8dfa98 (diff) | |
download | gst-plugins-bad-6f62242c5f6765285564f42dd79d72a23b86b6a3.tar.gz gst-plugins-bad-6f62242c5f6765285564f42dd79d72a23b86b6a3.tar.bz2 gst-plugins-bad-6f62242c5f6765285564f42dd79d72a23b86b6a3.zip |
Merge branch 'mxfmux'
Diffstat (limited to 'gst/mxf/mxful.h')
-rw-r--r-- | gst/mxf/mxful.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/gst/mxf/mxful.h b/gst/mxf/mxful.h new file mode 100644 index 00000000..b187229d --- /dev/null +++ b/gst/mxf/mxful.h @@ -0,0 +1,59 @@ +/* GStreamer + * Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __MXF_UL_H__ +#define __MXF_UL_H__ + +#include <gst/gst.h> + +#include "mxftypes.h" + +typedef enum { + MXF_UL_SMPTE = 0, + MXF_UL_FILL, + MXF_UL_PARTITION_PACK, + MXF_UL_PRIMER_PACK, + MXF_UL_METADATA, + MXF_UL_DESCRIPTIVE_METADATA, + MXF_UL_RANDOM_INDEX_PACK, + MXF_UL_INDEX_TABLE_SEGMENT, + MXF_UL_GENERIC_CONTAINER_SYSTEM_ITEM, + MXF_UL_GENERIC_CONTAINER_ESSENCE_ELEMENT, + MXF_UL_GENERIC_CONTAINER_ESSENCE_CONTAINER_LABEL, + MXF_UL_AVID_ESSENCE_CONTAINER_ESSENCE_ELEMENT, + MXF_UL_AVID_ESSENCE_CONTAINER_ESSENCE_LABEL, + MXF_UL_MAX +} MXFULId; + +extern const MXFUL _mxf_ul_table[MXF_UL_MAX]; + +#define MXF_UL(id) (&_mxf_ul_table[MXF_UL_##id]) + +gboolean mxf_ul_is_equal (const MXFUL *a, const MXFUL *b); +gboolean mxf_ul_is_subclass (const MXFUL *class, const MXFUL *subclass); +gboolean mxf_ul_is_zero (const MXFUL *ul); +gboolean mxf_ul_is_valid (const MXFUL *ul); +guint mxf_ul_hash (const MXFUL *ul); + +gchar * mxf_ul_to_string (const MXFUL *ul, gchar str[48]); +MXFUL * mxf_ul_from_string (const gchar *str, MXFUL *ul); + +gboolean mxf_ul_array_parse (MXFUL **array, guint32 *count, const guint8 *data, guint size); + +#endif /* __MXF_UL_H__ */ |