mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
Original commit message from CVS: * gst/matroska/ebml-ids.h: Add ID for EBML CRC32 elements. * gst/matroska/Makefile.am: * gst/matroska/ebml-read.c: (gst_ebml_finalize), (gst_ebml_read_class_init), (gst_ebml_read_peek_bytes), (gst_ebml_read_get_length), (_ext2dbl), (gst_ebml_read_float), (gst_ebml_read_header): Support reading 80bit floats, add finalize method to clean up in any case, support reading length/id elements with any length as long as it's smaller than our supported maximum, don't leak buffers if reading as much data as we wanted failed and some smaller cleanup.
54 lines
1.8 KiB
C
54 lines
1.8 KiB
C
/* GStreamer EBML I/O
|
|
* (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
*
|
|
* ebml-ids.h: definition of EBML data IDs
|
|
*
|
|
* 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 __GST_EBML_IDS_H__
|
|
#define __GST_EBML_IDS_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* EBML version supported */
|
|
#define GST_EBML_VERSION 1
|
|
|
|
/* Unknown size (all bits set to 1) */
|
|
#define GST_EBML_SIZE_UNKNOWN G_GINT64_CONSTANT(0x00ffffffffffffff)
|
|
|
|
/* top-level master-IDs */
|
|
#define GST_EBML_ID_HEADER 0x1A45DFA3
|
|
|
|
/* IDs in the HEADER master */
|
|
#define GST_EBML_ID_EBMLVERSION 0x4286
|
|
#define GST_EBML_ID_EBMLREADVERSION 0x42F7
|
|
#define GST_EBML_ID_EBMLMAXIDLENGTH 0x42F2
|
|
#define GST_EBML_ID_EBMLMAXSIZELENGTH 0x42F3
|
|
#define GST_EBML_ID_DOCTYPE 0x4282
|
|
#define GST_EBML_ID_DOCTYPEVERSION 0x4287
|
|
#define GST_EBML_ID_DOCTYPEREADVERSION 0x4285
|
|
|
|
/* general EBML types */
|
|
#define GST_EBML_ID_VOID 0xEC
|
|
#define GST_EBML_ID_CRC32 0xBF
|
|
|
|
/* EbmlDate offset from the unix epoch in seconds, 2001/01/01 00:00:00 UTC */
|
|
#define GST_EBML_DATE_OFFSET 978307200
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_EBML_IDS_H__ */
|