refactor yuv4mpeg; support scaling of input source

This commit is contained in:
c0ntrol
2016-03-15 22:11:44 +01:00
parent e70be9df5a
commit dc75644f4b
4 changed files with 109 additions and 189 deletions

View File

@@ -44,13 +44,13 @@ typedef struct {
void *scaler;
uint8_t *buf[4];
int is_jpeg;
int dr;
VJFrame *dst;
VJFrame *src;
VJFrame *src;
} vj_yuv;
vj_yuv *vj_yuv4mpeg_alloc(int dst_w, int dst_h,float fps, int out_pix_fmt);
uint8_t *vj_yuv_get_buf( void *v );
void vj_yuv4mpeg_free(vj_yuv *v) ;