~ft/treason

ref: c1156352ba4eceae2ec875fd06fc94c38c92271f treason/decoder.h -rw-r--r-- 358 bytes
c1156352 — Sigrid Solveig Haflínudóttir info: mixed up dispdelay and yuv→rgb, fix it 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
typedef struct Decoder Decoder;
typedef struct Decoderops Decoderops;

struct Decoder {
	Stream *s;
	Channel *frames;
	Channel *finished;
	Decoderops *ops;
	double timebase;
	uvlong decodetime;

	void *aux;
	char info[128];
};

struct Decoderops {
	int (*open)(Decoder *d);
	void (*close)(Decoder *d);
};

Decoder *Dopen(Stream *s);
void Dclose(Decoder *d);