summaryrefslogtreecommitdiffstats
path: root/thirdparties/common/include/ogg/ogg.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/common/include/ogg/ogg.h')
-rwxr-xr-xthirdparties/common/include/ogg/ogg.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/thirdparties/common/include/ogg/ogg.h b/thirdparties/common/include/ogg/ogg.h
index cea5c16..431dbe9 100755
--- a/thirdparties/common/include/ogg/ogg.h
+++ b/thirdparties/common/include/ogg/ogg.h
@@ -25,62 +25,62 @@ extern "C" {
#include <ogg/os_types.h>
typedef struct {
- void *iov_base;
- size_t iov_len;
+ void *iov_base;
+ size_t iov_len;
} ogg_iovec_t;
typedef struct {
- long endbyte;
- int endbit;
+ long endbyte;
+ int endbit;
- unsigned char *buffer;
- unsigned char *ptr;
- long storage;
+ unsigned char *buffer;
+ unsigned char *ptr;
+ long storage;
} oggpack_buffer;
/* ogg_page is used to encapsulate the data in one Ogg bitstream page *****/
typedef struct {
- unsigned char *header;
- long header_len;
- unsigned char *body;
- long body_len;
+ unsigned char *header;
+ long header_len;
+ unsigned char *body;
+ long body_len;
} ogg_page;
/* ogg_stream_state contains the current encode/decode state of a logical
Ogg bitstream **********************************************************/
typedef struct {
- unsigned char *body_data; /* bytes from packet bodies */
- long body_storage; /* storage elements allocated */
- long body_fill; /* elements stored; fill mark */
- long body_returned; /* elements of fill returned */
+ unsigned char *body_data; /* bytes from packet bodies */
+ long body_storage; /* storage elements allocated */
+ long body_fill; /* elements stored; fill mark */
+ long body_returned; /* elements of fill returned */
- int *lacing_vals; /* The values that will go to the segment table */
- ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
+ int *lacing_vals; /* The values that will go to the segment table */
+ ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
this way, but it is simple coupled to the
lacing fifo */
- long lacing_storage;
- long lacing_fill;
- long lacing_packet;
- long lacing_returned;
+ long lacing_storage;
+ long lacing_fill;
+ long lacing_packet;
+ long lacing_returned;
- unsigned char header[282]; /* working space for header encode */
- int header_fill;
+ unsigned char header[282]; /* working space for header encode */
+ int header_fill;
- int e_o_s; /* set when we have buffered the last packet in the
+ int e_o_s; /* set when we have buffered the last packet in the
logical bitstream */
- int b_o_s; /* set after we've written the initial page
+ int b_o_s; /* set after we've written the initial page
of a logical bitstream */
- long serialno;
- long pageno;
- ogg_int64_t packetno; /* sequence number for decode; the framing
+ long serialno;
+ long pageno;
+ ogg_int64_t packetno; /* sequence number for decode; the framing
knows where there's a hole in the data,
but we need coupling so that the codec
(which is in a separate abstraction
layer) also knows about the gap */
- ogg_int64_t granulepos;
+ ogg_int64_t granulepos;
} ogg_stream_state;
@@ -88,14 +88,14 @@ typedef struct {
to a single raw Ogg/Vorbis packet *************************************/
typedef struct {
- unsigned char *packet;
- long bytes;
- long b_o_s;
- long e_o_s;
+ unsigned char *packet;
+ long bytes;
+ long b_o_s;
+ long e_o_s;
- ogg_int64_t granulepos;
+ ogg_int64_t granulepos;
- ogg_int64_t packetno; /* sequence number for decode; the framing
+ ogg_int64_t packetno; /* sequence number for decode; the framing
knows where there's a hole in the data,
but we need coupling so that the codec
(which is in a separate abstraction
@@ -103,14 +103,14 @@ typedef struct {
} ogg_packet;
typedef struct {
- unsigned char *data;
- int storage;
- int fill;
- int returned;
-
- int unsynced;
- int headerbytes;
- int bodybytes;
+ unsigned char *data;
+ int storage;
+ int fill;
+ int returned;
+
+ int unsynced;
+ int headerbytes;
+ int bodybytes;
} ogg_sync_state;
/* Ogg BITSTREAM PRIMITIVES: bitstream ************************/
OpenPOWER on IntegriCloud