shithub: treason

ref: 325e635966381744f324b92c740a20c71dbae95c
dir: /decoder.h/

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

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

	void *aux;
};

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

Decoder *Dopen(Stream *s, Streaminfo *info);
void Dclose(Decoder *d);