summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpxv.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-06-15 11:04:42 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-06-15 11:04:42 -0700
commit62c16bad5a92c98d3bfaed297cb9eb4f99b0a3a4 (patch)
tree561e9e1a60f7beeb53725161a7e4ee979bfe406c /xorg/X11R7.6/rdp/rdpxv.c
parentd22778ca69689c4606c87ab673a47f0af030edf5 (diff)
downloadxrdp-proprietary-62c16bad5a92c98d3bfaed297cb9eb4f99b0a3a4.tar.gz
xrdp-proprietary-62c16bad5a92c98d3bfaed297cb9eb4f99b0a3a4.zip
X11rdp: work on xv, still off by default
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpxv.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpxv.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/xorg/X11R7.6/rdp/rdpxv.c b/xorg/X11R7.6/rdp/rdpxv.c
index 862bbc6a..d0ce8345 100644
--- a/xorg/X11R7.6/rdp/rdpxv.c
+++ b/xorg/X11R7.6/rdp/rdpxv.c
@@ -29,7 +29,11 @@ XVideo extension
#include <fourcc.h>
+extern rdpScreenInfoRec g_rdpScreen; /* from rdpmain.c */
+
static DevPrivateKey g_XvScreenKey;
+static char g_xv_adaptor_name[] = "xrdp XVideo adaptor";
+static char g_xv_encoding_name[] = "XV_IMAGE";
#define GET_XV_SCREEN(pScreen) \
((XvScreenPtr)dixLookupPrivate(&(pScreen)->devPrivates, g_XvScreenKey))
@@ -359,10 +363,11 @@ rdpXvInitAdaptors(ScreenPtr pScreen)
pAdaptor = malloc(sizeof(XvAdaptorRec));
memset(pAdaptor, 0, sizeof(XvAdaptorRec));
- pAdaptor->type = XvInputMask | XvImageMask | XvVideoMask | XvStillMask;
+ pAdaptor->type = XvInputMask | XvOutputMask | XvImageMask |
+ XvVideoMask | XvStillMask;
pAdaptor->pScreen = pScreen;
- pAdaptor->name = "xrdp XVideo adaptor";
+ pAdaptor->name = g_xv_adaptor_name;
pAdaptor->nEncodings = T_NUM_ENCODINGS;
pAdaptor->pEncodings = g_encodings;
@@ -394,15 +399,15 @@ rdpXvInitAdaptors(ScreenPtr pScreen)
memset(g_encodings, 0, sizeof(g_encodings));
g_encodings[0].id = FakeClientID(0);
g_encodings[0].pScreen = pScreen;
- g_encodings[0].name = "XV_IMAGE";
+ g_encodings[0].name = g_xv_encoding_name;
g_encodings[0].width = 2046;
g_encodings[0].height = 2046;
g_encodings[0].rate.numerator = 1;
g_encodings[0].rate.denominator = 1;
memset(g_formats, 0, sizeof(g_formats));
- g_formats[0].depth = 24;
- g_formats[0].visual = TrueColor;
+ g_formats[0].depth = g_rdpScreen.depth;
+ g_formats[0].visual = pScreen->rootVisual;
memset(g_ports, 0, sizeof(g_ports));
g_ports[0].id = FakeClientID(0);