// int dfb_play_video()
// int dfb_stop_video()
+int flip_blit_callback(void *ctx) {
+ struct ivac *ivac=ctx;
+
+ ivac->dfb_stuff.v_surface->Flip(ivac->dfb_stuff.v_surface,NULL,0);
+
+ return 1;
+}
+
+int dfb_play_video(struct ivac *ivac) {
+
+ ivac->dfb_stuff.v_provider->PlayTo(ivac->dfb_stuff.v_provider,ivac->dfb_stuff.v_surface,NULL,flip_blit_callback,(void *)ivac);
+
+ return 1;
+}
+
+int dfb_stop_video(struct ivac *ivac) {
+
+ ivac->dfb_stuff.v_provider->Stop(ivac->dfb_stuff.v_provider);
+
+ return 1;
+}
+
int dfb_init(int arg_c,char **arg_v,struct ivac *ivac) {
DFBSurfaceDescription sdsc;
// DFBFontDescription fdsc;
ivac->dfb_stuff.layer->CreateWindow(ivac->dfb_stuff.layer,&wdsc,&(ivac->dfb_stuff.v_window));
ivac->dfb_stuff.v_window->GetSurface(ivac->dfb_stuff.v_window,&(ivac->dfb_stuff.v_surface));
ivac->dfb_stuff.v_window->SetOpacity(ivac->dfb_stuff.v_window,0xff);
- ivac->dfb_stuff.v_provider->PlayTo(ivac->dfb_stuff.v_provider,ivac->dfb_stuff.v_surface,NULL,NULL,NULL);
return 1;
}
return 1;
}
-