Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
03d31d2a
Unverified
Commit
03d31d2a
authored
Nov 02, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/simplify_nxxvdisp' into 3.6.x
Attributes GH PR #864:
https://github.com/ArcticaProject/nx-libs/pull/864
parents
fdd1e538
280cf126
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
148 deletions
+15
-148
Imakefile
nx-X11/programs/Xserver/Xext/Imakefile
+1
-4
xvdisp.c
nx-X11/programs/Xserver/Xext/xvdisp.c
+8
-3
NXxvdisp.c
nx-X11/programs/Xserver/hw/nxagent/NXxvdisp.c
+6
-141
No files found.
nx-X11/programs/Xserver/Xext/Imakefile
View file @
03d31d2a
...
...
@@ -43,10 +43,7 @@ XF86BIGFOBJS = xf86bigfont.o
#endif
#endif
#if BuildXvExt && ( (defined(NXAgentServer) && NXAgentServer) && !defined(SunArchitecture) && !defined(cygwinArchitecture) )
XVSRCS = xvmain.c xvmc.c
XVOBJS = xvmain.o xvmc.o
#elif BuildXvExt
#if BuildXvExt
XVSRCS = xvmain.c xvdisp.c xvmc.c
XVOBJS = xvmain.o xvdisp.o xvmc.o
#endif
...
...
nx-X11/programs/Xserver/Xext/xvdisp.c
View file @
03d31d2a
...
...
@@ -224,10 +224,12 @@ static int SWriteImageFormatInfo(ClientPtr, xvImageFormatInfo*);
**
*/
#if !defined(NXAGENT_SERVER) || defined(__sun) || defined(__CYGWIN__)
int
#ifdef NXAGENT_SERVER
xorg_ProcXvDispatch
(
ClientPtr
client
)
#else
ProcXvDispatch
(
ClientPtr
client
)
#endif
{
REQUEST
(
xReq
);
...
...
@@ -309,7 +311,11 @@ ProcXvDispatch(ClientPtr client)
}
int
#ifdef NXAGENT_SERVER
xorg_SProcXvDispatch
(
ClientPtr
client
)
#else
SProcXvDispatch
(
ClientPtr
client
)
#endif
{
REQUEST
(
xReq
);
...
...
@@ -353,7 +359,6 @@ SProcXvDispatch(ClientPtr client)
}
}
}
#endif
/* !defined(NXAGENT_SERVER) || defined(__sun) || defined(__CYGWIN__) */
static
int
...
...
nx-X11/programs/Xserver/hw/nxagent/NXxvdisp.c
View file @
03d31d2a
...
...
@@ -47,11 +47,12 @@ SOFTWARE.
******************************************************************/
#if !defined(__sun) && !defined(__CYGWIN__)
#include "Trap.h"
#include "../../Xext/xvdisp.c"
#include "misc.h"
extern
int
xorg_ProcXvDispatch
(
ClientPtr
);
extern
int
xorg_SProcXvDispatch
(
ClientPtr
);
#undef TEST
#undef DEBUG
...
...
@@ -64,90 +65,6 @@ SOFTWARE.
*/
int
nxagent_ProcXvDispatch
(
ClientPtr
client
)
{
REQUEST
(
xReq
);
UpdateCurrentTime
();
switch
(
stuff
->
data
)
{
case
xv_QueryExtension
:
return
(
ProcXvQueryExtension
(
client
));
case
xv_QueryAdaptors
:
return
(
ProcXvQueryAdaptors
(
client
));
case
xv_QueryEncodings
:
return
(
ProcXvQueryEncodings
(
client
));
case
xv_PutVideo
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvPutVideo
(
client
));
else
#endif
return
(
ProcXvPutVideo
(
client
));
case
xv_PutStill
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvPutStill
(
client
));
else
#endif
{
return
(
ProcXvPutStill
(
client
));
}
case
xv_GetVideo
:
return
(
ProcXvGetVideo
(
client
));
case
xv_GetStill
:
return
(
ProcXvGetStill
(
client
));
case
xv_GrabPort
:
return
(
ProcXvGrabPort
(
client
));
case
xv_UngrabPort
:
return
(
ProcXvUngrabPort
(
client
));
case
xv_SelectVideoNotify
:
return
(
ProcXvSelectVideoNotify
(
client
));
case
xv_SelectPortNotify
:
return
(
ProcXvSelectPortNotify
(
client
));
case
xv_StopVideo
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvStopVideo
(
client
));
else
#endif
return
(
ProcXvStopVideo
(
client
));
case
xv_SetPortAttribute
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvSetPortAttribute
(
client
));
else
#endif
return
(
ProcXvSetPortAttribute
(
client
));
case
xv_GetPortAttribute
:
return
(
ProcXvGetPortAttribute
(
client
));
case
xv_QueryBestSize
:
return
(
ProcXvQueryBestSize
(
client
));
case
xv_QueryPortAttributes
:
return
(
ProcXvQueryPortAttributes
(
client
));
case
xv_PutImage
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvPutImage
(
client
));
else
#endif
return
(
ProcXvPutImage
(
client
));
#ifdef MITSHM
case
xv_ShmPutImage
:
#ifdef PANORAMIX
if
(
!
noPanoramiXExtension
)
return
(
XineramaXvShmPutImage
(
client
));
else
#endif
return
(
ProcXvShmPutImage
(
client
));
#endif
case
xv_QueryImageAttributes
:
return
(
ProcXvQueryImageAttributes
(
client
));
case
xv_ListImageFormats
:
return
(
ProcXvListImageFormats
(
client
));
default:
if
(
stuff
->
data
<
xvNumRequests
)
{
SendErrorToClient
(
client
,
XvReqCode
,
stuff
->
data
,
0
,
BadImplementation
);
return
(
BadImplementation
);
}
else
{
SendErrorToClient
(
client
,
XvReqCode
,
stuff
->
data
,
0
,
BadRequest
);
return
(
BadRequest
);
}
}
}
int
ProcXvDispatch
(
ClientPtr
client
)
{
int
result
;
...
...
@@ -164,7 +81,7 @@ ProcXvDispatch(ClientPtr client)
nxagentXvTrap
=
1
;
result
=
nxagent
_ProcXvDispatch
(
client
);
result
=
xorg
_ProcXvDispatch
(
client
);
nxagentXvTrap
=
0
;
...
...
@@ -176,54 +93,6 @@ ProcXvDispatch(ClientPtr client)
return
result
;
}
int
nxagent_SProcXvDispatch
(
ClientPtr
client
)
{
REQUEST
(
xReq
);
UpdateCurrentTime
();
switch
(
stuff
->
data
)
{
case
xv_QueryExtension
:
return
(
SProcXvQueryExtension
(
client
));
case
xv_QueryAdaptors
:
return
(
SProcXvQueryAdaptors
(
client
));
case
xv_QueryEncodings
:
return
(
SProcXvQueryEncodings
(
client
));
case
xv_PutVideo
:
return
(
SProcXvPutVideo
(
client
));
case
xv_PutStill
:
return
(
SProcXvPutStill
(
client
));
case
xv_GetVideo
:
return
(
SProcXvGetVideo
(
client
));
case
xv_GetStill
:
return
(
SProcXvGetStill
(
client
));
case
xv_GrabPort
:
return
(
SProcXvGrabPort
(
client
));
case
xv_UngrabPort
:
return
(
SProcXvUngrabPort
(
client
));
case
xv_SelectVideoNotify
:
return
(
SProcXvSelectVideoNotify
(
client
));
case
xv_SelectPortNotify
:
return
(
SProcXvSelectPortNotify
(
client
));
case
xv_StopVideo
:
return
(
SProcXvStopVideo
(
client
));
case
xv_SetPortAttribute
:
return
(
SProcXvSetPortAttribute
(
client
));
case
xv_GetPortAttribute
:
return
(
SProcXvGetPortAttribute
(
client
));
case
xv_QueryBestSize
:
return
(
SProcXvQueryBestSize
(
client
));
case
xv_QueryPortAttributes
:
return
(
SProcXvQueryPortAttributes
(
client
));
case
xv_PutImage
:
return
(
SProcXvPutImage
(
client
));
#ifdef MITSHM
case
xv_ShmPutImage
:
return
(
SProcXvShmPutImage
(
client
));
#endif
case
xv_QueryImageAttributes
:
return
(
SProcXvQueryImageAttributes
(
client
));
case
xv_ListImageFormats
:
return
(
SProcXvListImageFormats
(
client
));
default:
if
(
stuff
->
data
<
xvNumRequests
)
{
SendErrorToClient
(
client
,
XvReqCode
,
stuff
->
data
,
0
,
BadImplementation
);
return
(
BadImplementation
);
}
else
{
SendErrorToClient
(
client
,
XvReqCode
,
stuff
->
data
,
0
,
BadRequest
);
return
(
BadRequest
);
}
}
}
int
SProcXvDispatch
(
ClientPtr
client
)
{
...
...
@@ -241,7 +110,7 @@ SProcXvDispatch(ClientPtr client)
nxagentXvTrap
=
1
;
result
=
nxagent
_SProcXvDispatch
(
client
);
result
=
xorg
_SProcXvDispatch
(
client
);
nxagentXvTrap
=
0
;
...
...
@@ -252,7 +121,3 @@ SProcXvDispatch(ClientPtr client)
return
result
;
}
#endif
/* !defined(__sun) && !defined(__CYGWIN__) */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment