Mercurial > hg > easaier-soundaccess
comparison sv/videoio/SDL_ffmpeg.cpp @ 167:2ac52ea3c1c4
video mouse events are in SDL now.
The code is really better now, but there is a display bug when you zoom in, zoom out
author | benoitrigolleau |
---|---|
date | Fri, 16 Nov 2007 15:18:44 +0000 |
parents | c946c19e6329 |
children | 269562a2b89c |
comparison
equal
deleted
inserted
replaced
166:0442224a9553 | 167:2ac52ea3c1c4 |
---|---|
607 } | 607 } |
608 | 608 |
609 // if new timestamp is from future, we proceed | 609 // if new timestamp is from future, we proceed |
610 // if(buf->timestamp >= SDL_ffmpegGetPosition(file)) | 610 // if(buf->timestamp >= SDL_ffmpegGetPosition(file)) |
611 // { | 611 // { |
612 int w=320*zoomFivan; | 612 int w=(int)(zoomFivan*320+0.5); |
613 int h=240*zoomFivan; | 613 int h=(int)(zoomFivan*240+0.5); |
614 | |
614 if ((w>file->vs[file->videoStream]->width)||(h>file->vs[file->videoStream]->height)){ | 615 if ((w>file->vs[file->videoStream]->width)||(h>file->vs[file->videoStream]->height)){ |
615 w=file->vs[file->videoStream]->width; | 616 w=file->vs[file->videoStream]->width; |
616 h=file->vs[file->videoStream]->height; | 617 h=file->vs[file->videoStream]->height; |
617 } | 618 } |
618 if (img_convert_ctx == NULL) { | 619 if (img_convert_ctx == NULL) { |