1 /* GStreamer EBML I/O 2 * (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> 3 * 4 * ebml-ids.h: definition of EBML data IDs 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Library General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef __GST_EBML_IDS_H__ 23 #define __GST_EBML_IDS_H__ 24 25 #include <glib.h> 26 27 G_BEGIN_DECLS 28 29 /* EBML version supported */ 30 #define GST_EBML_VERSION 1 31 32 /* Unknown size (all bits set to 1) */ 33 #define GST_EBML_SIZE_UNKNOWN G_GINT64_CONSTANT(0x00ffffffffffffff) 34 35 /* top-level master-IDs */ 36 #define GST_EBML_ID_HEADER 0x1A45DFA3 37 38 /* IDs in the HEADER master */ 39 #define GST_EBML_ID_EBMLVERSION 0x4286 40 #define GST_EBML_ID_EBMLREADVERSION 0x42F7 41 #define GST_EBML_ID_EBMLMAXIDLENGTH 0x42F2 42 #define GST_EBML_ID_EBMLMAXSIZELENGTH 0x42F3 43 #define GST_EBML_ID_DOCTYPE 0x4282 44 #define GST_EBML_ID_DOCTYPEVERSION 0x4287 45 #define GST_EBML_ID_DOCTYPEREADVERSION 0x4285 46 47 /* general EBML types */ 48 #define GST_EBML_ID_VOID 0xEC 49 #define GST_EBML_ID_CRC32 0xBF 50 51 /* EbmlDate offset from the unix epoch in nanoseconds, 2001/01/01 00:00:00 UTC */ 52 #define GST_EBML_DATE_OFFSET G_GINT64_CONSTANT (978307200000000000) 53 54 G_END_DECLS 55 56 #endif /* __GST_EBML_IDS_H__ */ 57