static int screen_width = 0;
static int screen_height = 0;
-char dfb_video_dev[]="/dev/video";
+char dfb_video_dev[]="/dev/v4l/video0";
char text_top[]="Internet Video / Audio Conferencing";
char dfb_image[]="./images/ivac_logo.png";
char dfb_font[]="./fonts/decker.ttf";
return 1;
}
-int create_image_provider(IDirectFBSurface *surface) {
+int show_image(IDirectFBSurface *surface) {
dfb->CreateImageProvider(dfb,dfb_image,&image_provider);
image_provider->RenderTo(image_provider,surface,NULL);
image_provider->Release(image_provider);
return 1;
}
-int create_video_provider(IDirectFBSurface *surface) {
+int play_video(IDirectFBSurface *surface) {
dfb->CreateVideoProvider(dfb,dfb_video_dev,&video_provider);
video_provider->PlayTo(video_provider,surface,NULL,NULL,NULL);
// video_provider->Release(video_provider);
create_primary_surface();
- create_image_provider(primary);
+ // play_video(primary);
+ show_image(primary);
+
+ primary->Flip(primary,NULL,DSFLIP_WAITFORSYNC);
sleep(5);