shithub: rtmp

ref: d70eab81a43d6d7e4d6fc7a9b6fb040db8438551
dir: /ivf.h/

View raw version
typedef struct IVF IVF;
typedef struct IVFrame IVFrame;

struct IVF {
	u32int tbdenum;
	u32int tbnum;
	u16int w;
	u16int h;
	char type[6];
};

struct IVFrame {
	u64int ts;
	u8int *buf;
	int bufsz;
	int sz;
};

int ivfopen(Biobuf *v, IVF *ivf);
int ivfread(Biobuf *v, IVFrame *f);
u64int ivfns(IVF *ivf, u64int ts);