[asterisk-commits] rizzo: branch rizzo/video_v2 r82490 - /team/rizzo/video_v2/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Sep 15 01:59:11 CDT 2007
Author: rizzo
Date: Sat Sep 15 01:59:10 2007
New Revision: 82490
URL: http://svn.digium.com/view/asterisk?view=rev&rev=82490
Log:
use SDL_IYUV_OVERLAY instead of SDL_YV12_OVERLAY for the
sdl windows, as the latter gives flicker when updating the
windows.
At this point we are able to sustain a fully bidirectional video call
with X-Lite.
Modified:
team/rizzo/video_v2/channels/console_video.c
Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=82490&r1=82489&r2=82490
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Sat Sep 15 01:59:10 2007
@@ -629,6 +629,8 @@
int w = env->out.w ? env->out.w : c->width; /* pick geometry between webcam and default */
int h = env->out.h ? env->out.h : c->height; /* pick geometry between webcam and default */
SDL_Overlay *bmp;
+ int fmt = SDL_YV12_OVERLAY;
+ fmt = SDL_IYUV_OVERLAY;
if (!env->initialized)
return;
@@ -649,9 +651,9 @@
}
if(!env->bmp[0])
- env->bmp[0] = SDL_CreateYUVOverlay(w, h, SDL_YV12_OVERLAY, env->screen);
+ env->bmp[0] = SDL_CreateYUVOverlay(w, h, fmt, env->screen);
if(!env->bmp[1])
- env->bmp[1] = SDL_CreateYUVOverlay(w, h, SDL_YV12_OVERLAY, env->screen);
+ env->bmp[1] = SDL_CreateYUVOverlay(w, h, fmt, env->screen);
ast_mutex_unlock(&env->lock);
bmp = env->bmp[out];
More information about the asterisk-commits
mailing list