shithub: treason

ref: 4ce14a7e0fc4c27895af0a3281c032b7e1890d10
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);