diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-19 14:30:34 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-21 10:19:49 +0100 |
commit | b409f71f4950f88dfc1f7590dbab41ef07168b39 (patch) | |
tree | d56fd34d08733f6634fe01c43cf6f695ae8edfdf /gst/mxf/mxful.h | |
parent | a19f0375ec009a0552498c9045cb69492cbab10a (diff) | |
download | gst-plugins-bad-b409f71f4950f88dfc1f7590dbab41ef07168b39.tar.gz gst-plugins-bad-b409f71f4950f88dfc1f7590dbab41ef07168b39.tar.bz2 gst-plugins-bad-b409f71f4950f88dfc1f7590dbab41ef07168b39.zip |
mxf: Start implementing a central UL database and add some helper functions and use them
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__ */ |