shithub: treason

ref: 52f33c04acdec0e9123f9566f6eddfa86d707cdb
dir: treason/frame.h

View raw version
typedef struct Frame Frame;

struct Frame {
	uvlong dt;
	int w, h;
	struct {
		int left, top, right, bottom;
	}crop;

	u8int *yuv[3];
	int ystride;
	int uvstride;

	u8int data[1];
};

Frame *newframe(int w, int h, u8int *yuv[3], int ystride, int vstride);