FTEQW
Documentation of the FTE engine source tree.
roq.h
Go to the documentation of this file.
1#ifndef _av_roq_h
2#define _av_roq_h
3
4#define RoQ_INFO 0x1001
5#define RoQ_QUAD_CODEBOOK 0x1002
6#define RoQ_QUAD_VQ 0x1011
7#define RoQ_SOUND_MONO 0x1020
8#define RoQ_SOUND_STEREO 0x1021
9
10#define RoQ_ID_MOT 0x00
11#define RoQ_ID_FCC 0x01
12#define RoQ_ID_SLD 0x02
13#define RoQ_ID_CCC 0x03
14
15typedef struct {
16 unsigned char y0, y1, y2, y3, u, v;
17} roq_cell;
18
19typedef struct {
20 char p[16];
22
23typedef struct {
24 int idx[4];
25} roq_qcell;
26
27typedef struct roq_info_s {
29 qofs_t maxpos; //addition for pack files. all seeks add this, all tells subtract this.
31 unsigned char *buf;
35 short snd_sqr_arr[256];
40 byte_vec4_t *rgba[2];
43 unsigned char *audio;
45
46/* -------------------------------------------------------------------------- */
47//void roq_init(void);
48//void roq_cleanup(void);
49roq_info *roq_open(char *fname);
51void roq_close(roq_info *ri);
54
55#endif
56
uint64_t qofs_t
Definition: api_menu.h:49
static GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition: gl_vidnt.c:848
static GLuint GLfloat GLfloat y0
Definition: gl_vidnt.c:848
GLdouble GLdouble GLdouble y2
Definition: glquake.h:938
const GLfloat * v
Definition: glsupp.h:466
char fname[MAX_QPATH]
Definition: m_mp3.c:160
int const void * p
Definition: pr_lua.c:232
int idx
Definition: pr_lua.c:221
rendererinfo_t * ri
Definition: renderer.c:1110
void roq_close(roq_info *ri)
Definition: roq_read.c:317
int roq_read_frame(roq_info *ri)
Definition: roq_read.c:396
roq_info * roq_open(char *fname)
Definition: roq_read.c:251
void roq_rewind(roq_info *ri)
Definition: roq_read.c:310
int roq_read_audio(roq_info *ri)
Definition: roq_read.c:563
struct roq_info_s roq_info
Definition: roq.h:19
Definition: roq.h:15
unsigned char u
Definition: roq.h:16
Definition: roq.h:27
unsigned long num_audio_bytes
Definition: roq.h:38
qofs_t vid_pos
Definition: roq.h:36
vfsfile_t * fp
Definition: roq.h:28
unsigned long num_frames
Definition: roq.h:38
int audio_size
Definition: roq.h:42
roq_cell cells[256]
Definition: roq.h:32
short snd_sqr_arr[256]
Definition: roq.h:35
roq_qcell qcells[256]
Definition: roq.h:34
unsigned char * audio
Definition: roq.h:43
int audio_channels
Definition: roq.h:39
qofs_t maxpos
Definition: roq.h:29
unsigned char * buf
Definition: roq.h:31
int frame_num
Definition: roq.h:39
byte_vec4_t * rgba[2]
Definition: roq.h:40
int width
Definition: roq.h:39
int buf_size
Definition: roq.h:30
qofs_t aud_pos
Definition: roq.h:36
long * frame_offset
Definition: roq.h:37
qofs_t roq_start
Definition: roq.h:36
long stream_length
Definition: roq.h:41
roq_cell_rgba cells_rgba[256]
Definition: roq.h:33
int height
Definition: roq.h:39
int audio_buf_size
Definition: roq.h:42
Definition: roq.h:23
void * vfsfile_t
Definition: sys_plugfte.h:2