| 44 | | // Ogg BITSTREAM PRIMITIVES: bitstream |
|---|
| 45 | | bindFunc(oggpack_writeinit)("oggpack_writeinit", lib); |
|---|
| 46 | | bindFunc(oggpack_writetrunc)("oggpack_writetrunc", lib); |
|---|
| 47 | | bindFunc(oggpack_writealign)("oggpack_writealign", lib); |
|---|
| 48 | | bindFunc(oggpack_writecopy)("oggpack_writecopy", lib); |
|---|
| 49 | | bindFunc(oggpack_reset)("oggpack_reset", lib); |
|---|
| 50 | | bindFunc(oggpack_writeclear)("oggpack_writeclear", lib); |
|---|
| 51 | | bindFunc(oggpack_readinit)("oggpack_readinit", lib); |
|---|
| 52 | | bindFunc(oggpack_write)("oggpack_write", lib); |
|---|
| 53 | | bindFunc(oggpack_look)("oggpack_look", lib); |
|---|
| 54 | | bindFunc(oggpack_look1)("oggpack_look1", lib); |
|---|
| 55 | | bindFunc(oggpack_adv)("oggpack_adv", lib); |
|---|
| 56 | | bindFunc(oggpack_adv1)("oggpack_adv1", lib); |
|---|
| 57 | | bindFunc(oggpack_read)("oggpack_read", lib); |
|---|
| 58 | | bindFunc(oggpack_read1)("oggpack_read1", lib); |
|---|
| 59 | | bindFunc(oggpack_bytes)("oggpack_bytes", lib); |
|---|
| 60 | | bindFunc(oggpack_bits)("oggpack_bits", lib); |
|---|
| 61 | | bindFunc(oggpack_get_buffer)("oggpack_get_buffer", lib); |
|---|
| 62 | | |
|---|
| 63 | | /* These function prototypes appear twice in ogg.h and look exactly the same. Not sure why. |
|---|
| 64 | | bindFunc(oggpack_writeinit)("oggpack_writeinit", lib); |
|---|
| 65 | | bindFunc(oggpack_writetrunc)("oggpack_writetrunc", lib); |
|---|
| 66 | | bindFunc(oggpack_writealign)("oggpack_writealign", lib); |
|---|
| 67 | | bindFunc(oggpack_writecopy)("oggpack_writecopy", lib); |
|---|
| 68 | | bindFunc(oggpack_reset)("oggpack_reset", lib); |
|---|
| 69 | | bindFunc(oggpack_writeclear)("oggpack_writeclear", lib); |
|---|
| 70 | | bindFunc(oggpack_readinit)("oggpack_readinit", lib); |
|---|
| 71 | | bindFunc(oggpack_write)("oggpack_write", lib); |
|---|
| 72 | | bindFunc(oggpack_look)("oggpack_look", lib); |
|---|
| 73 | | bindFunc(oggpack_look1)("oggpack_look1", lib); |
|---|
| 74 | | bindFunc(oggpack_adv)("oggpack_adv", lib); |
|---|
| 75 | | bindFunc(oggpack_adv1)("oggpack_adv1", lib); |
|---|
| 76 | | bindFunc(oggpack_read)("oggpack_read", lib); |
|---|
| 77 | | bindFunc(oggpack_read1)("oggpack_read1", lib); |
|---|
| 78 | | bindFunc(oggpack_bytes)("oggpack_bytes", lib); |
|---|
| 79 | | bindFunc(oggpack_bits)("oggpack_bits", lib); |
|---|
| 80 | | bindFunc(oggpack_get_buffer)("oggpack_get_buffer", lib); |
|---|
| 81 | | */ |
|---|
| 82 | | |
|---|
| 83 | | // Ogg BITSTREAM PRIMITIVES: encoding |
|---|
| 84 | | bindFunc(ogg_stream_packetin)("ogg_stream_packetin", lib); |
|---|
| 85 | | bindFunc(ogg_stream_pageout)("ogg_stream_pageout", lib); |
|---|
| 86 | | bindFunc(ogg_stream_flush)("ogg_stream_flush", lib); |
|---|
| 87 | | |
|---|
| 88 | | // Ogg BITSTREAM PRIMITIVES: decoding |
|---|
| 89 | | bindFunc(ogg_sync_init)("ogg_sync_init", lib); |
|---|
| 90 | | bindFunc(ogg_sync_clear)("ogg_sync_clear", lib); |
|---|
| 91 | | bindFunc(ogg_sync_reset)("ogg_sync_reset", lib); |
|---|
| 92 | | bindFunc(ogg_sync_destroy)("ogg_sync_destroy", lib); |
|---|
| 93 | | |
|---|
| 94 | | bindFunc(ogg_sync_buffer)("ogg_sync_buffer", lib); |
|---|
| 95 | | bindFunc(ogg_sync_wrote)("ogg_sync_wrote", lib); |
|---|
| 96 | | bindFunc(ogg_sync_pageseek)("ogg_sync_pageseek", lib); |
|---|
| 97 | | bindFunc(ogg_sync_pageout)("ogg_sync_pageout", lib); |
|---|
| 98 | | bindFunc(ogg_stream_pagein)("ogg_stream_pagein", lib); |
|---|
| 99 | | bindFunc(ogg_stream_packetout)("ogg_stream_packetout", lib); |
|---|
| 100 | | bindFunc(ogg_stream_packetpeek)("ogg_stream_packetpeek", lib); |
|---|
| 101 | | |
|---|
| 102 | | // Ogg BITSTREAM PRIMITIVES: general |
|---|
| 103 | | bindFunc(ogg_stream_init)("ogg_stream_init", lib); |
|---|
| 104 | | bindFunc(ogg_stream_clear)("ogg_stream_clear", lib); |
|---|
| 105 | | bindFunc(ogg_stream_reset)("ogg_stream_reset", lib); |
|---|
| 106 | | bindFunc(ogg_stream_reset_serialno)("ogg_stream_reset_serialno", lib); |
|---|
| 107 | | bindFunc(ogg_stream_destroy)("ogg_stream_destroy", lib); |
|---|
| 108 | | bindFunc(ogg_stream_eos)("ogg_stream_eos", lib); |
|---|
| 109 | | |
|---|
| 110 | | bindFunc(ogg_page_checksum_set)("ogg_page_checksum_set", lib); |
|---|
| 111 | | |
|---|
| 112 | | bindFunc(ogg_page_version)("ogg_page_version", lib); |
|---|
| 113 | | bindFunc(ogg_page_continued)("ogg_page_continued", lib); |
|---|
| 114 | | bindFunc(ogg_page_bos)("ogg_page_bos", lib); |
|---|
| 115 | | bindFunc(ogg_page_eos)("ogg_page_eos", lib); |
|---|
| 116 | | bindFunc(ogg_page_granulepos)("ogg_page_granulepos", lib); |
|---|
| 117 | | bindFunc(ogg_page_serialno)("ogg_page_serialno", lib); |
|---|
| 118 | | bindFunc(ogg_page_pageno)("ogg_page_pageno", lib); |
|---|
| 119 | | bindFunc(ogg_page_packets)("ogg_page_packets", lib); |
|---|
| 120 | | |
|---|
| 121 | | bindFunc(ogg_packet_clear)("ogg_packet_clear", lib); |
|---|
| | 41 | // Ogg BITSTREAM PRIMITIVES: bitstream |
|---|
| | 42 | bindFunc(oggpack_writeinit)("oggpack_writeinit", lib); |
|---|
| | 43 | bindFunc(oggpack_writetrunc)("oggpack_writetrunc", lib); |
|---|
| | 44 | bindFunc(oggpack_writealign)("oggpack_writealign", lib); |
|---|
| | 45 | bindFunc(oggpack_writecopy)("oggpack_writecopy", lib); |
|---|
| | 46 | bindFunc(oggpack_reset)("oggpack_reset", lib); |
|---|
| | 47 | bindFunc(oggpack_writeclear)("oggpack_writeclear", lib); |
|---|
| | 48 | bindFunc(oggpack_readinit)("oggpack_readinit", lib); |
|---|
| | 49 | bindFunc(oggpack_write)("oggpack_write", lib); |
|---|
| | 50 | bindFunc(oggpack_look)("oggpack_look", lib); |
|---|
| | 51 | bindFunc(oggpack_look1)("oggpack_look1", lib); |
|---|
| | 52 | bindFunc(oggpack_adv)("oggpack_adv", lib); |
|---|
| | 53 | bindFunc(oggpack_adv1)("oggpack_adv1", lib); |
|---|
| | 54 | bindFunc(oggpack_read)("oggpack_read", lib); |
|---|
| | 55 | bindFunc(oggpack_read1)("oggpack_read1", lib); |
|---|
| | 56 | bindFunc(oggpack_bytes)("oggpack_bytes", lib); |
|---|
| | 57 | bindFunc(oggpack_bits)("oggpack_bits", lib); |
|---|
| | 58 | bindFunc(oggpack_get_buffer)("oggpack_get_buffer", lib); |
|---|
| | 59 | |
|---|
| | 60 | /* These function prototypes appear twice in ogg.h and look exactly the same. Not sure why. |
|---|
| | 61 | bindFunc(oggpack_writeinit)("oggpack_writeinit", lib); |
|---|
| | 62 | bindFunc(oggpack_writetrunc)("oggpack_writetrunc", lib); |
|---|
| | 63 | bindFunc(oggpack_writealign)("oggpack_writealign", lib); |
|---|
| | 64 | bindFunc(oggpack_writecopy)("oggpack_writecopy", lib); |
|---|
| | 65 | bindFunc(oggpack_reset)("oggpack_reset", lib); |
|---|
| | 66 | bindFunc(oggpack_writeclear)("oggpack_writeclear", lib); |
|---|
| | 67 | bindFunc(oggpack_readinit)("oggpack_readinit", lib); |
|---|
| | 68 | bindFunc(oggpack_write)("oggpack_write", lib); |
|---|
| | 69 | bindFunc(oggpack_look)("oggpack_look", lib); |
|---|
| | 70 | bindFunc(oggpack_look1)("oggpack_look1", lib); |
|---|
| | 71 | bindFunc(oggpack_adv)("oggpack_adv", lib); |
|---|
| | 72 | bindFunc(oggpack_adv1)("oggpack_adv1", lib); |
|---|
| | 73 | bindFunc(oggpack_read)("oggpack_read", lib); |
|---|
| | 74 | bindFunc(oggpack_read1)("oggpack_read1", lib); |
|---|
| | 75 | bindFunc(oggpack_bytes)("oggpack_bytes", lib); |
|---|
| | 76 | bindFunc(oggpack_bits)("oggpack_bits", lib); |
|---|
| | 77 | bindFunc(oggpack_get_buffer)("oggpack_get_buffer", lib); |
|---|
| | 78 | */ |
|---|
| | 79 | |
|---|
| | 80 | // Ogg BITSTREAM PRIMITIVES: encoding |
|---|
| | 81 | bindFunc(ogg_stream_packetin)("ogg_stream_packetin", lib); |
|---|
| | 82 | bindFunc(ogg_stream_pageout)("ogg_stream_pageout", lib); |
|---|
| | 83 | bindFunc(ogg_stream_flush)("ogg_stream_flush", lib); |
|---|
| | 84 | |
|---|
| | 85 | // Ogg BITSTREAM PRIMITIVES: decoding |
|---|
| | 86 | bindFunc(ogg_sync_init)("ogg_sync_init", lib); |
|---|
| | 87 | bindFunc(ogg_sync_clear)("ogg_sync_clear", lib); |
|---|
| | 88 | bindFunc(ogg_sync_reset)("ogg_sync_reset", lib); |
|---|
| | 89 | bindFunc(ogg_sync_destroy)("ogg_sync_destroy", lib); |
|---|
| | 90 | |
|---|
| | 91 | bindFunc(ogg_sync_buffer)("ogg_sync_buffer", lib); |
|---|
| | 92 | bindFunc(ogg_sync_wrote)("ogg_sync_wrote", lib); |
|---|
| | 93 | bindFunc(ogg_sync_pageseek)("ogg_sync_pageseek", lib); |
|---|
| | 94 | bindFunc(ogg_sync_pageout)("ogg_sync_pageout", lib); |
|---|
| | 95 | bindFunc(ogg_stream_pagein)("ogg_stream_pagein", lib); |
|---|
| | 96 | bindFunc(ogg_stream_packetout)("ogg_stream_packetout", lib); |
|---|
| | 97 | bindFunc(ogg_stream_packetpeek)("ogg_stream_packetpeek", lib); |
|---|
| | 98 | |
|---|
| | 99 | // Ogg BITSTREAM PRIMITIVES: general |
|---|
| | 100 | bindFunc(ogg_stream_init)("ogg_stream_init", lib); |
|---|
| | 101 | bindFunc(ogg_stream_clear)("ogg_stream_clear", lib); |
|---|
| | 102 | bindFunc(ogg_stream_reset)("ogg_stream_reset", lib); |
|---|
| | 103 | bindFunc(ogg_stream_reset_serialno)("ogg_stream_reset_serialno", lib); |
|---|
| | 104 | bindFunc(ogg_stream_destroy)("ogg_stream_destroy", lib); |
|---|
| | 105 | bindFunc(ogg_stream_eos)("ogg_stream_eos", lib); |
|---|
| | 106 | |
|---|
| | 107 | bindFunc(ogg_page_checksum_set)("ogg_page_checksum_set", lib); |
|---|
| | 108 | |
|---|
| | 109 | bindFunc(ogg_page_version)("ogg_page_version", lib); |
|---|
| | 110 | bindFunc(ogg_page_continued)("ogg_page_continued", lib); |
|---|
| | 111 | bindFunc(ogg_page_bos)("ogg_page_bos", lib); |
|---|
| | 112 | bindFunc(ogg_page_eos)("ogg_page_eos", lib); |
|---|
| | 113 | bindFunc(ogg_page_granulepos)("ogg_page_granulepos", lib); |
|---|
| | 114 | bindFunc(ogg_page_serialno)("ogg_page_serialno", lib); |
|---|
| | 115 | bindFunc(ogg_page_pageno)("ogg_page_pageno", lib); |
|---|
| | 116 | bindFunc(ogg_page_packets)("ogg_page_packets", lib); |
|---|
| | 117 | |
|---|
| | 118 | bindFunc(ogg_packet_clear)("ogg_packet_clear", lib); |
|---|
| 140 | | typedef void function(oggpack_buffer *b, int bits) pfoggpack_writetrunc; |
|---|
| 141 | | typedef void function(oggpack_buffer *b) pfoggpack_writealign; |
|---|
| 142 | | typedef void function(oggpack_buffer *b, void *source, int bits) pfoggpack_writecopy; |
|---|
| 143 | | typedef void function(oggpack_buffer *b) pfoggpack_reset; |
|---|
| 144 | | typedef void function(oggpack_buffer *b) pfoggpack_writeclear; |
|---|
| 145 | | typedef void function(oggpack_buffer *b, ubyte *buf, int bytes) pfoggpack_readinit; |
|---|
| 146 | | typedef void function(oggpack_buffer *b, uint value, int bits) pfoggpack_write; |
|---|
| 147 | | typedef int function(oggpack_buffer *b, int bits) pfoggpack_look; |
|---|
| 148 | | typedef int function(oggpack_buffer *b) pfoggpack_look1; |
|---|
| 149 | | typedef void function(oggpack_buffer *b, int bits) pfoggpack_adv; |
|---|
| 150 | | typedef void function(oggpack_buffer *b) pfoggpack_adv1; |
|---|
| 151 | | typedef int function(oggpack_buffer *b, int bits) pfoggpack_read; |
|---|
| 152 | | typedef int function(oggpack_buffer *b) pfoggpack_read1; |
|---|
| 153 | | typedef int function(oggpack_buffer *b) pfoggpack_bytes; |
|---|
| 154 | | typedef int function(oggpack_buffer *b) pfoggpack_bits; |
|---|
| 155 | | typedef ubyte *function(oggpack_buffer *b) pfoggpack_get_buffer; |
|---|
| 156 | | pfoggpack_writeinit oggpack_writeinit; |
|---|
| 157 | | pfoggpack_writetrunc oggpack_writetrunc; |
|---|
| 158 | | pfoggpack_writealign oggpack_writealign; |
|---|
| 159 | | pfoggpack_writecopy oggpack_writecopy; |
|---|
| 160 | | pfoggpack_reset oggpack_reset; |
|---|
| 161 | | pfoggpack_writeclear oggpack_writeclear; |
|---|
| 162 | | pfoggpack_readinit oggpack_readinit; |
|---|
| 163 | | pfoggpack_write oggpack_write; |
|---|
| 164 | | pfoggpack_look oggpack_look; |
|---|
| 165 | | pfoggpack_look1 oggpack_look1; |
|---|
| 166 | | pfoggpack_adv oggpack_adv; |
|---|
| 167 | | pfoggpack_adv1 oggpack_adv1; |
|---|
| 168 | | pfoggpack_read oggpack_read; |
|---|
| 169 | | pfoggpack_read1 oggpack_read1; |
|---|
| 170 | | pfoggpack_bytes oggpack_bytes; |
|---|
| 171 | | pfoggpack_bits oggpack_bits; |
|---|
| 172 | | pfoggpack_get_buffer oggpack_get_buffer; |
|---|
| 173 | | |
|---|
| 174 | | // Ogg BITSTREAM PRIMITIVES: encoding |
|---|
| 175 | | typedef int function(ogg_stream_state *os, ogg_packet *op) pfogg_stream_packetin; |
|---|
| 176 | | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_pageout; |
|---|
| 177 | | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_flush; |
|---|
| 178 | | pfogg_stream_packetin ogg_stream_packetin; |
|---|
| 179 | | pfogg_stream_pageout ogg_stream_pageout; |
|---|
| 180 | | pfogg_stream_flush ogg_stream_flush; |
|---|
| 181 | | |
|---|
| 182 | | // Ogg BITSTREAM PRIMITIVES: decoding |
|---|
| 183 | | typedef int function(ogg_sync_state *oy) pfogg_sync_init; |
|---|
| 184 | | typedef int function(ogg_sync_state *oy) pfogg_sync_clear; |
|---|
| 185 | | typedef int function(ogg_sync_state *oy) pfogg_sync_reset; |
|---|
| 186 | | typedef int function(ogg_sync_state *oy) pfogg_sync_destroy; |
|---|
| 187 | | pfogg_sync_init ogg_sync_init; |
|---|
| 188 | | pfogg_sync_clear ogg_sync_clear; |
|---|
| 189 | | pfogg_sync_reset ogg_sync_reset; |
|---|
| 190 | | pfogg_sync_destroy ogg_sync_destroy; |
|---|
| 191 | | |
|---|
| 192 | | typedef byte* function(ogg_sync_state *oy, int size) pfogg_sync_buffer; |
|---|
| 193 | | typedef int function(ogg_sync_state *oy, int bytes) pfogg_sync_wrote; |
|---|
| 194 | | typedef int function(ogg_sync_state *oy,ogg_page *og) pfogg_sync_pageseek; |
|---|
| 195 | | typedef int function(ogg_sync_state *oy, ogg_page *og) pfogg_sync_pageout; |
|---|
| 196 | | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_pagein; |
|---|
| 197 | | typedef int function(ogg_stream_state *os,ogg_packet *op) pfogg_stream_packetout; |
|---|
| 198 | | typedef int function(ogg_stream_state *os,ogg_packet *op) pfogg_stream_packetpeek; |
|---|
| 199 | | pfogg_sync_buffer ogg_sync_buffer; |
|---|
| 200 | | pfogg_sync_wrote ogg_sync_wrote; |
|---|
| 201 | | pfogg_sync_pageseek ogg_sync_pageseek; |
|---|
| 202 | | pfogg_sync_pageout ogg_sync_pageout; |
|---|
| 203 | | pfogg_stream_pagein ogg_stream_pagein; |
|---|
| 204 | | pfogg_stream_packetout ogg_stream_packetout; |
|---|
| 205 | | pfogg_stream_packetpeek ogg_stream_packetpeek; |
|---|
| 206 | | |
|---|
| 207 | | // Ogg BITSTREAM PRIMITIVES: general |
|---|
| 208 | | typedef int function(ogg_stream_state *os,int serialno) pfogg_stream_init; |
|---|
| 209 | | typedef int function(ogg_stream_state *os) pfogg_stream_clear; |
|---|
| 210 | | typedef int function(ogg_stream_state *os) pfogg_stream_reset; |
|---|
| 211 | | typedef int function(ogg_stream_state *os,int serialno) pfogg_stream_reset_serialno; |
|---|
| 212 | | typedef int function(ogg_stream_state *os) pfogg_stream_destroy; |
|---|
| 213 | | typedef int function(ogg_stream_state *os) pfogg_stream_eos; |
|---|
| 214 | | pfogg_stream_init ogg_stream_init; |
|---|
| 215 | | pfogg_stream_clear ogg_stream_clear; |
|---|
| 216 | | pfogg_stream_reset ogg_stream_reset; |
|---|
| 217 | | pfogg_stream_reset_serialno ogg_stream_reset_serialno; |
|---|
| 218 | | pfogg_stream_destroy ogg_stream_destroy; |
|---|
| 219 | | pfogg_stream_eos ogg_stream_eos; |
|---|
| 220 | | |
|---|
| 221 | | typedef void function(ogg_page *og) pfogg_page_checksum_set; |
|---|
| 222 | | pfogg_page_checksum_set ogg_page_checksum_set; |
|---|
| 223 | | |
|---|
| 224 | | typedef int function(ogg_page *og) pfogg_page_version; |
|---|
| 225 | | typedef int function(ogg_page *og) pfogg_page_continued; |
|---|
| 226 | | typedef int function(ogg_page *og) pfogg_page_bos; |
|---|
| 227 | | typedef int function(ogg_page *og) pfogg_page_eos; |
|---|
| 228 | | typedef ogg_int64_t function(ogg_page *og) pfogg_page_granulepos; |
|---|
| 229 | | typedef int function(ogg_page *og) pfogg_page_serialno; |
|---|
| 230 | | typedef int function(ogg_page *og) pfogg_page_pageno; |
|---|
| 231 | | typedef int function(ogg_page *og) pfogg_page_packets; |
|---|
| 232 | | pfogg_page_version ogg_page_version; |
|---|
| 233 | | pfogg_page_continued ogg_page_continued; |
|---|
| 234 | | pfogg_page_bos ogg_page_bos; |
|---|
| 235 | | pfogg_page_eos ogg_page_eos; |
|---|
| 236 | | pfogg_page_granulepos ogg_page_granulepos; |
|---|
| 237 | | pfogg_page_serialno ogg_page_serialno; |
|---|
| 238 | | pfogg_page_pageno ogg_page_pageno; |
|---|
| 239 | | pfogg_page_packets ogg_page_packets; |
|---|
| 240 | | |
|---|
| 241 | | typedef void function(ogg_packet *op) pfogg_packet_clear; |
|---|
| 242 | | pfogg_packet_clear ogg_packet_clear; |
|---|
| 243 | | |
|---|
| 244 | | |
|---|
| 245 | | } // Extern (C) |
|---|
| 246 | | |
|---|
| 247 | | |
|---|
| 248 | | |
|---|
| 249 | | |
|---|
| 250 | | |
|---|
| 251 | | |
|---|
| 252 | | |
|---|
| 253 | | |
|---|
| 254 | | |
|---|
| 255 | | |
|---|
| 256 | | |
|---|
| 257 | | |
|---|
| 258 | | |
|---|
| 259 | | |
|---|
| 260 | | |
|---|
| 261 | | |
|---|
| 262 | | |
|---|
| 263 | | |
|---|
| 264 | | |
|---|
| 265 | | |
|---|
| 266 | | |
|---|
| 267 | | |
|---|
| 268 | | |
|---|
| 269 | | |
|---|
| 270 | | |
|---|
| 271 | | |
|---|
| 272 | | |
|---|
| 273 | | |
|---|
| 274 | | |
|---|
| 275 | | |
|---|
| 276 | | |
|---|
| 277 | | |
|---|
| 278 | | |
|---|
| | 137 | typedef void function(oggpack_buffer *b, int bits) pfoggpack_writetrunc; |
|---|
| | 138 | typedef void function(oggpack_buffer *b) pfoggpack_writealign; |
|---|
| | 139 | typedef void function(oggpack_buffer *b, void *source, int bits) pfoggpack_writecopy; |
|---|
| | 140 | typedef void function(oggpack_buffer *b) pfoggpack_reset; |
|---|
| | 141 | typedef void function(oggpack_buffer *b) pfoggpack_writeclear; |
|---|
| | 142 | typedef void function(oggpack_buffer *b, ubyte *buf, int bytes) pfoggpack_readinit; |
|---|
| | 143 | typedef void function(oggpack_buffer *b, uint value, int bits) pfoggpack_write; |
|---|
| | 144 | typedef int function(oggpack_buffer *b, int bits) pfoggpack_look; |
|---|
| | 145 | typedef int function(oggpack_buffer *b) pfoggpack_look1; |
|---|
| | 146 | typedef void function(oggpack_buffer *b, int bits) pfoggpack_adv; |
|---|
| | 147 | typedef void function(oggpack_buffer *b) pfoggpack_adv1; |
|---|
| | 148 | typedef int function(oggpack_buffer *b, int bits) pfoggpack_read; |
|---|
| | 149 | typedef int function(oggpack_buffer *b) pfoggpack_read1; |
|---|
| | 150 | typedef int function(oggpack_buffer *b) pfoggpack_bytes; |
|---|
| | 151 | typedef int function(oggpack_buffer *b) pfoggpack_bits; |
|---|
| | 152 | typedef ubyte *function(oggpack_buffer *b) pfoggpack_get_buffer; |
|---|
| | 153 | pfoggpack_writeinit oggpack_writeinit; |
|---|
| | 154 | pfoggpack_writetrunc oggpack_writetrunc; |
|---|
| | 155 | pfoggpack_writealign oggpack_writealign; |
|---|
| | 156 | pfoggpack_writecopy oggpack_writecopy; |
|---|
| | 157 | pfoggpack_reset oggpack_reset; |
|---|
| | 158 | pfoggpack_writeclear oggpack_writeclear; |
|---|
| | 159 | pfoggpack_readinit oggpack_readinit; |
|---|
| | 160 | pfoggpack_write oggpack_write; |
|---|
| | 161 | pfoggpack_look oggpack_look; |
|---|
| | 162 | pfoggpack_look1 oggpack_look1; |
|---|
| | 163 | pfoggpack_adv oggpack_adv; |
|---|
| | 164 | pfoggpack_adv1 oggpack_adv1; |
|---|
| | 165 | pfoggpack_read oggpack_read; |
|---|
| | 166 | pfoggpack_read1 oggpack_read1; |
|---|
| | 167 | pfoggpack_bytes oggpack_bytes; |
|---|
| | 168 | pfoggpack_bits oggpack_bits; |
|---|
| | 169 | pfoggpack_get_buffer oggpack_get_buffer; |
|---|
| | 170 | |
|---|
| | 171 | // Ogg BITSTREAM PRIMITIVES: encoding |
|---|
| | 172 | typedef int function(ogg_stream_state *os, ogg_packet *op) pfogg_stream_packetin; |
|---|
| | 173 | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_pageout; |
|---|
| | 174 | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_flush; |
|---|
| | 175 | pfogg_stream_packetin ogg_stream_packetin; |
|---|
| | 176 | pfogg_stream_pageout ogg_stream_pageout; |
|---|
| | 177 | pfogg_stream_flush ogg_stream_flush; |
|---|
| | 178 | |
|---|
| | 179 | // Ogg BITSTREAM PRIMITIVES: decoding |
|---|
| | 180 | typedef int function(ogg_sync_state *oy) pfogg_sync_init; |
|---|
| | 181 | typedef int function(ogg_sync_state *oy) pfogg_sync_clear; |
|---|
| | 182 | typedef int function(ogg_sync_state *oy) pfogg_sync_reset; |
|---|
| | 183 | typedef int function(ogg_sync_state *oy) pfogg_sync_destroy; |
|---|
| | 184 | pfogg_sync_init ogg_sync_init; |
|---|
| | 185 | pfogg_sync_clear ogg_sync_clear; |
|---|
| | 186 | pfogg_sync_reset ogg_sync_reset; |
|---|
| | 187 | pfogg_sync_destroy ogg_sync_destroy; |
|---|
| | 188 | |
|---|
| | 189 | typedef byte* function(ogg_sync_state *oy, int size) pfogg_sync_buffer; |
|---|
| | 190 | typedef int function(ogg_sync_state *oy, int bytes) pfogg_sync_wrote; |
|---|
| | 191 | typedef int function(ogg_sync_state *oy,ogg_page *og) pfogg_sync_pageseek; |
|---|
| | 192 | typedef int function(ogg_sync_state *oy, ogg_page *og) pfogg_sync_pageout; |
|---|
| | 193 | typedef int function(ogg_stream_state *os, ogg_page *og) pfogg_stream_pagein; |
|---|
| | 194 | typedef int function(ogg_stream_state *os,ogg_packet *op) pfogg_stream_packetout; |
|---|
| | 195 | typedef int function(ogg_stream_state *os,ogg_packet *op) pfogg_stream_packetpeek; |
|---|
| | 196 | pfogg_sync_buffer ogg_sync_buffer; |
|---|
| | 197 | pfogg_sync_wrote ogg_sync_wrote; |
|---|
| | 198 | pfogg_sync_pageseek ogg_sync_pageseek; |
|---|
| | 199 | pfogg_sync_pageout ogg_sync_pageout; |
|---|
| | 200 | pfogg_stream_pagein ogg_stream_pagein; |
|---|
| | 201 | pfogg_stream_packetout ogg_stream_packetout; |
|---|
| | 202 | pfogg_stream_packetpeek ogg_stream_packetpeek; |
|---|
| | 203 | |
|---|
| | 204 | // Ogg BITSTREAM PRIMITIVES: general |
|---|
| | 205 | typedef int function(ogg_stream_state *os,int serialno) pfogg_stream_init; |
|---|
| | 206 | typedef int function(ogg_stream_state *os) pfogg_stream_clear; |
|---|
| | 207 | typedef int function(ogg_stream_state *os) pfogg_stream_reset; |
|---|
| | 208 | typedef int function(ogg_stream_state *os,int serialno) pfogg_stream_reset_serialno; |
|---|
| | 209 | typedef int function(ogg_stream_state *os) pfogg_stream_destroy; |
|---|
| | 210 | typedef int function(ogg_stream_state *os) pfogg_stream_eos; |
|---|
| | 211 | pfogg_stream_init ogg_stream_init; |
|---|
| | 212 | pfogg_stream_clear ogg_stream_clear; |
|---|
| | 213 | pfogg_stream_reset ogg_stream_reset; |
|---|
| | 214 | pfogg_stream_reset_serialno ogg_stream_reset_serialno; |
|---|
| | 215 | pfogg_stream_destroy ogg_stream_destroy; |
|---|
| | 216 | pfogg_stream_eos ogg_stream_eos; |
|---|
| | 217 | |
|---|
| | 218 | typedef void function(ogg_page *og) pfogg_page_checksum_set; |
|---|
| | 219 | pfogg_page_checksum_set ogg_page_checksum_set; |
|---|
| | 220 | |
|---|
| | 221 | typedef int function(ogg_page *og) pfogg_page_version; |
|---|
| | 222 | typedef int function(ogg_page *og) pfogg_page_continued; |
|---|
| | 223 | typedef int function(ogg_page *og) pfogg_page_bos; |
|---|
| | 224 | typedef int function(ogg_page *og) pfogg_page_eos; |
|---|
| | 225 | typedef ogg_int64_t function(ogg_page *og) pfogg_page_granulepos; |
|---|
| | 226 | typedef int function(ogg_page *og) pfogg_page_serialno; |
|---|
| | 227 | typedef int function(ogg_page *og) pfogg_page_pageno; |
|---|
| | 228 | typedef int function(ogg_page *og) pfogg_page_packets; |
|---|
| | 229 | pfogg_page_version ogg_page_version; |
|---|
| | 230 | pfogg_page_continued ogg_page_continued; |
|---|
| | 231 | pfogg_page_bos ogg_page_bos; |
|---|
| | 232 | pfogg_page_eos ogg_page_eos; |
|---|
| | 233 | pfogg_page_granulepos ogg_page_granulepos; |
|---|
| | 234 | pfogg_page_serialno ogg_page_serialno; |
|---|
| | 235 | pfogg_page_pageno ogg_page_pageno; |
|---|
| | 236 | pfogg_page_packets ogg_page_packets; |
|---|
| | 237 | |
|---|
| | 238 | typedef void function(ogg_packet *op) pfogg_packet_clear; |
|---|
| | 239 | pfogg_packet_clear ogg_packet_clear; |
|---|
| | 240 | |
|---|
| | 241 | |
|---|
| | 242 | } // Extern (C) |
|---|
| | 243 | |
|---|
| | 244 | |
|---|
| | 245 | |
|---|
| | 246 | |
|---|
| | 247 | |
|---|
| | 248 | |
|---|
| | 249 | |
|---|
| | 250 | |
|---|
| | 251 | |
|---|
| | 252 | |
|---|
| | 253 | |
|---|
| | 254 | |
|---|
| | 255 | |
|---|
| | 256 | |
|---|
| | 257 | |
|---|
| | 258 | |
|---|
| | 259 | |
|---|
| | 260 | |
|---|
| | 261 | |
|---|
| | 262 | |
|---|
| | 263 | |
|---|
| | 264 | |
|---|
| | 265 | |
|---|
| | 266 | |
|---|
| | 267 | |
|---|
| | 268 | |
|---|
| | 269 | |
|---|
| | 270 | |
|---|
| | 271 | |
|---|
| | 272 | |
|---|
| | 273 | |
|---|
| | 274 | |
|---|
| | 275 | |
|---|