shithub: treason

ref: 19cbe98daef0d058a0387f03cc36e44f9169e04b
dir: /decoder.h/

View raw version
typedef struct Decoder Decoder;
typedef struct Decoderops Decoderops;

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

	void *aux;
};

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

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