summaryrefslogtreecommitdiff
path: root/hw/kdrive/ephyr/ephyrhostvideo.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@seketeli.org>2007-08-16 17:30:13 +0200
committerDodji Seketeli <dodji@openedhand.com>2007-10-02 16:55:14 +0200
commit0b8545144975bf7ed43c2564d01c697144eb1244 (patch)
treeed46bce5a63903f6637ba79d8561896bcc5fddd0 /hw/kdrive/ephyr/ephyrhostvideo.c
parent810dc55866d1c2343512354646c7ab309ea1fad2 (diff)
Implement ReputImage and StopVideo
* hw/kdrive/ephyr/ephyrhostvideo.c/h: (ephyrHostXVStopVideo): add this entry point. * hw/kdrive/ephyr/ephyrvideo.c: Basically add ReputImage and StopVideo implementations. Now, when other windows obscur the video window, the reclipping seems to be well handled using StopVideo and ReputImage. To do this, I was obliged to save the frame in PutImage, so that I could resend it un ReputImage.
Diffstat (limited to 'hw/kdrive/ephyr/ephyrhostvideo.c')
-rw-r--r--hw/kdrive/ephyr/ephyrhostvideo.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/hw/kdrive/ephyr/ephyrhostvideo.c b/hw/kdrive/ephyr/ephyrhostvideo.c
index 85fc7bd8e..6509274ec 100644
--- a/hw/kdrive/ephyr/ephyrhostvideo.c
+++ b/hw/kdrive/ephyr/ephyrhostvideo.c
@@ -976,3 +976,26 @@ out:
return is_ok ;
}
+Bool
+ephyrHostXVStopVideo (int a_port_id)
+{
+ int ret=0 ;
+ Bool is_ok=FALSE ;
+ Display *dpy = hostx_get_display () ;
+
+ EPHYR_RETURN_VAL_IF_FAIL (dpy, FALSE) ;
+
+ EPHYR_LOG ("enter\n") ;
+
+ ret = XvStopVideo (dpy, a_port_id, hostx_get_window ()) ;
+ if (ret != Success) {
+ EPHYR_LOG_ERROR ("XvStopVideo() failed: %d \n", ret) ;
+ goto out ;
+ }
+ is_ok = TRUE ;
+
+out:
+ EPHYR_LOG ("leave\n") ;
+ return is_ok ;
+}
+