shithub: treason

ref: 272d632955a70c61cef5d92403cdad89aff41387
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);