File: oggplayer.h

package info (click to toggle)
freespace2 3.7.4%2Brepack-1.1
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 22,268 kB
  • sloc: cpp: 393,535; ansic: 4,106; makefile: 1,091; xml: 181; sh: 137
file content (40 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40


#ifndef _OGGPLAYER_H
#define _OGGPLAYER_H

#include "globalincs/pstypes.h"

#include "theora/theora.h"
#include "vorbis/codec.h"

struct CFILE;

// structure for maintaining info on a THEORAFILE stream
typedef struct THEORAFILE
{
	CFILE	*cfp;
	ubyte	theora_p;
	ubyte	vorbis_p;

	ogg_sync_state		osyncstate;
	ogg_page			opage;
	ogg_packet			opacket;
	ogg_stream_state 	v_osstate;
	ogg_stream_state	t_osstate;

	theora_info			tinfo;
	theora_comment		tcomment;
	theora_state		tstate;

	vorbis_info			vinfo;
	vorbis_dsp_state	vstate;
	vorbis_block		vblock;
	vorbis_comment		vcomment;
} THEORAFILE;

void theora_play(THEORAFILE *movie);
THEORAFILE *theora_open(char *filename);
void theora_close(THEORAFILE *movie);

#endif