summaryrefslogtreecommitdiff
path: root/include/THPPlayer/THPBuffer.h
blob: eee2d58a362c481bfc8dad0c10c79d01fa564b69 (plain)
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
#ifndef _THP_THPBUFFER_H
#define _THP_THPBUFFER_H

#include "common.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct THPTextureSet {
	u8* ytexture;
	u8* utexture;
	u8* vtexture;
	s32 frameNumber;
} THPTextureSet;

typedef struct THPAudioBuffer {
	s16* buffer;
	s16* curPtr;
	u32 validSample;
} THPAudioBuffer;

typedef struct THPReadBuffer {
	u8* ptr;
	s32 frameNumber;
	BOOL isValid;
} THPReadBuffer;

#ifdef __cplusplus
}
#endif

#endif