shithub: treason

ref: 82829c55c5faa242557a6effe7b0d4be7194bbac
dir: /decoder.h/

View raw version
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);