mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 06:10:01 +01:00
fix framerate button in reloaded, fix preview resolution switching
git-svn-id: svn://code.dyne.org/veejay/trunk@1362 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -64,6 +64,9 @@ typedef struct
|
||||
int preview;
|
||||
int width;
|
||||
int height;
|
||||
int prevwidth;
|
||||
int prevheight;
|
||||
int prevmode;
|
||||
int need_track_list;
|
||||
unsigned char *queue[16];
|
||||
int n_queued;
|
||||
@@ -478,6 +481,19 @@ static int veejay_get_image_data(veejay_preview_t *vp, veejay_track_t *v )
|
||||
v->width,v->height, PIX_FMT_YUV420P );
|
||||
else
|
||||
src1 = yuv_yuv_template( in, in, in, v->width,v->height, PIX_FMT_GRAY8 );
|
||||
|
||||
|
||||
if( (v->prevwidth != v->width) || (v->prevheight != v->height) || (v->prevmode != v->grey_scale ) ) {
|
||||
v->prevwidth = v->width;
|
||||
v->prevheight = v->height;
|
||||
v->prevmode = v->grey_scale;
|
||||
veejay_memset( in, 0, v->width*v->height);
|
||||
if(!v->grey_scale) {
|
||||
veejay_memset( in + (v->width*v->height), 128, ((v->width*v->height)/4));
|
||||
veejay_memset( in + (v->width*v->height) + ((v->width*v->height)/4),128,((v->width*v->height)/4));
|
||||
}
|
||||
}
|
||||
|
||||
VJFrame *dst1 = NULL;
|
||||
|
||||
dst1 = yuv_rgb_template( out, v->width,v->height, PIX_FMT_BGR24 );
|
||||
|
||||
Reference in New Issue
Block a user