Xliff

Ogg my ogg stream!

Apr 11th, 2016
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.44 KB | None | 0 0
  1. typedef struct {
  2.   unsigned char   *body_data;    /* bytes from packet bodies */
  3.   long    body_storage;          /* storage elements allocated */
  4.   long    body_fill;             /* elements stored; fill mark */
  5.   long    body_returned;         /* elements of fill returned */
  6.  
  7.  
  8.   int     *lacing_vals;      /* The values that will go to the segment table */
  9.   ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
  10.                                 this way, but it is simple coupled to the
  11.                                 lacing fifo */
  12.   long    lacing_storage;
  13.   long    lacing_fill;
  14.   long    lacing_packet;
  15.   long    lacing_returned;
  16.  
  17.   unsigned char    header[282];      /* working space for header encode */
  18.   int              header_fill;
  19.  
  20.   int     e_o_s;          /* set when we have buffered the last packet in the
  21.                              logical bitstream */
  22.   int     b_o_s;          /* set after we've written the initial page
  23.                              of a logical bitstream */
  24.   long    serialno;
  25.   long    pageno;
  26.   ogg_int64_t  packetno;  /* sequence number for decode; the framing
  27.                              knows where there's a hole in the data,
  28.                              but we need coupling so that the codec
  29.                              (which is in a separate abstraction
  30.                              layer) also knows about the gap */
  31.   ogg_int64_t   granulepos;
  32.  
  33. } ogg_stream_state;
Add Comment
Please, Sign In to add comment