Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3d2f32dc
Commit
3d2f32dc
authored
Sep 06, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
Sep 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added possibility to use XVideo.
parent
eef99e0c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
398 additions
and
2 deletions
+398
-2
configure
configure
+0
-0
configure.in
configure.in
+14
-0
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+6
-0
ts_xvideo.h
include/ts_xvideo.h
+47
-0
make_X11wrappers
tools/make_X11wrappers
+32
-2
Makefile.in
tsx11/Makefile.in
+1
-0
X11_calls
tsx11/X11_calls
+23
-0
ts_xvideo.c
tsx11/ts_xvideo.c
+272
-0
No files found.
configure
View file @
3d2f32dc
This diff is collapsed.
Click to expand it.
configure.in
View file @
3d2f32dc
...
...
@@ -227,6 +227,20 @@ then
],
AC_MSG_WARN([XFree86 VMODE extension not found!!])
)
dnl *** Check for XVideo extension supporting XvImages
AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
[ dnl *** If X11/extensions/Xvlib.h exists...
AC_CHECK_LIB(Xv, XvShmCreateImage,
[ AC_DEFINE(HAVE_XVIDEO)
X_PRE_LIBS="$X_PRE_LIBS -lXv"
],,
$X_LIBS -lXext -lX11 $X_EXTRA_LIBS
)
],
AC_MSG_WARN([XVideo extension not found !!])
)
]
) dnl *** End of X11/Xlib.h check
...
...
include/acconfig.h
View file @
3d2f32dc
...
...
@@ -113,3 +113,6 @@
/* Define if the OpenGL headers define extension typedefs */
#undef HAVE_GLEXT_PROTOTYPES
/* Define if the X libraries support XVideo */
#undef HAVE_XVIDEO
include/config.h.in
View file @
3d2f32dc
...
...
@@ -149,6 +149,9 @@
/* Define if the OpenGL headers define extension typedefs */
#undef HAVE_GLEXT_PROTOTYPES
/* Define if the X libraries support XVideo */
#undef HAVE_XVIDEO
/* The number of bytes in a long long. */
#undef SIZEOF_LONG_LONG
...
...
@@ -260,6 +263,9 @@
/* Define if you have the <X11/extensions/XShm.h> header file. */
#undef HAVE_X11_EXTENSIONS_XSHM_H
/* Define if you have the <X11/extensions/Xvlib.h> header file. */
#undef HAVE_X11_EXTENSIONS_XVLIB_H
/* Define if you have the <X11/extensions/shape.h> header file. */
#undef HAVE_X11_EXTENSIONS_SHAPE_H
...
...
include/ts_xvideo.h
0 → 100644
View file @
3d2f32dc
/*
* Thread safe wrappers around xvideo calls.
* Always include this file instead of <X11/xvideo.h>.
* This file was generated automatically by tools/make_X11wrappers
*
* Copyright 1998 Kristian Nielsen
*/
#ifndef __WINE_TS_XVIDEO_H
#define __WINE_TS_XVIDEO_H
#include "config.h"
#ifdef HAVE_XVIDEO
#include <X11/Xlib.h>
#include <X11/extensions/Xv.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xvlib.h>
extern
int
TSXvQueryExtension
(
Display
*
,
unsigned
int
*
,
unsigned
int
*
,
unsigned
int
*
,
unsigned
int
*
,
unsigned
int
*
);
extern
int
TSXvQueryAdaptors
(
Display
*
,
Window
,
unsigned
int
*
,
XvAdaptorInfo
**
);
extern
int
TSXvQueryEncodings
(
Display
*
,
XvPortID
,
unsigned
int
*
,
XvEncodingInfo
**
);
extern
int
TSXvPutVideo
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXvPutStill
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXvGetVideo
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXvGetStill
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXvStopVideo
(
Display
*
,
XvPortID
,
Drawable
);
extern
int
TSXvGrabPort
(
Display
*
,
XvPortID
,
Time
);
extern
int
TSXvUngrabPort
(
Display
*
,
XvPortID
,
Time
);
extern
int
TSXvSelectVideoNotify
(
Display
*
,
Drawable
,
Bool
);
extern
int
TSXvSelectPortNotify
(
Display
*
,
XvPortID
,
Bool
);
extern
int
TSXvSetPortAttribute
(
Display
*
,
XvPortID
,
Atom
,
int
);
extern
int
TSXvGetPortAttribute
(
Display
*
,
XvPortID
,
Atom
,
int
*
);
extern
int
TSXvQueryBestSize
(
Display
*
,
XvPortID
,
Bool
,
unsigned
int
,
unsigned
int
,
unsigned
int
,
unsigned
int
,
unsigned
int
*
,
unsigned
int
*
);
extern
XvAttribute
*
TSXvQueryPortAttributes
(
Display
*
,
XvPortID
,
int
*
);
extern
void
TSXvFreeAdaptorInfo
(
XvAdaptorInfo
*
);
extern
void
TSXvFreeEncodingInfo
(
XvEncodingInfo
*
);
extern
XvImageFormatValues
*
TSXvListImageFormats
(
Display
*
,
XvPortID
,
int
*
);
extern
XvImage
*
TSXvCreateImage
(
Display
*
,
XvPortID
,
int
,
char
*
,
int
,
int
);
extern
int
TSXvPutImage
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
XvImage
*
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXvShmPutImage
(
Display
*
,
XvPortID
,
Drawable
,
GC
,
XvImage
*
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
,
unsigned
int
,
unsigned
int
,
Bool
);
extern
XvImage
*
TSXvShmCreateImage
(
Display
*
,
XvPortID
,
int
,
char
*
,
int
,
int
,
XShmSegmentInfo
*
);
#endif
/* defined(HAVE_XVIDEO) */
#endif
/* __WINE_TS_XVIDEO_H */
tools/make_X11wrappers
View file @
3d2f32dc
...
...
@@ -17,7 +17,7 @@
$X11_include_dir
=
"/usr/X11/include"
;
$outdir
=
"tsx11"
;
$wantfile
=
"$outdir/X11_calls"
;
@dolist
=
(
"Xlib"
,
"Xresource"
,
"Xutil"
,
"xpm"
,
"XShm"
,
"xf86dga"
,
"xf86dga2"
,
"xf86vmode"
,
"shape"
);
@dolist
=
(
"Xlib"
,
"Xresource"
,
"Xutil"
,
"xpm"
,
"XShm"
,
"xf86dga"
,
"xf86dga2"
,
"xf86vmode"
,
"shape"
,
"xvideo"
);
# First read list of wanted function names.
...
...
@@ -86,7 +86,13 @@ foreach $name (@dolist) {
$post_file
=
"#endif /* defined(HAVE_LIBXSHAPE) */\n"
;
$inc_name
=
"shape"
;
}
if
(
$name
eq
"xvideo"
)
{
$x11_incl
=
"#include <X11/Xlib.h>\n#include <X11/extensions/Xv.h>\n#include <X11/extensions/XShm.h>\n"
;
$extensions_dir
=
"extensions/"
;
$pre_file
=
"#ifdef HAVE_XVIDEO\n"
;
$post_file
=
"#endif /* defined(HAVE_XVIDEO) */\n"
;
$inc_name
=
"Xvlib"
;
}
print
OUTH
<<END;
...
...
@@ -227,6 +233,30 @@ END
output_fn_short
(
"Bool"
,
"XDGASetClientVersion"
,
"Display*"
);
output_fn_short
(
"void"
,
"XDGAChangePixmapMode"
,
"Display*"
,
"int"
,
"int*"
,
"int*"
,
"int"
);
output_fn_short
(
"void"
,
"XDGAKeyEventToXKeyEvent"
,
"XDGAKeyEvent*"
,
"XKeyEvent*"
);
}
elsif
(
$name
eq
"xvideo"
)
{
output_fn_short
(
"int"
,
"XvQueryExtension"
,
"Display*"
,
"unsigned int*"
,
"unsigned int*"
,
"unsigned int*"
,
"unsigned int*"
,
"unsigned int*"
);
output_fn_short
(
"int"
,
"XvQueryAdaptors"
,
"Display*"
,
"Window"
,
"unsigned int*"
,
"XvAdaptorInfo**"
);
output_fn_short
(
"int"
,
"XvQueryEncodings"
,
"Display*"
,
"XvPortID"
,
"unsigned int*"
,
"XvEncodingInfo**"
);
output_fn_short
(
"int"
,
"XvPutVideo"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
);
output_fn_short
(
"int"
,
"XvPutStill"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
);
output_fn_short
(
"int"
,
"XvGetVideo"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
);
output_fn_short
(
"int"
,
"XvGetStill"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
);
output_fn_short
(
"int"
,
"XvStopVideo"
,
"Display*"
,
"XvPortID"
,
"Drawable"
);
output_fn_short
(
"int"
,
"XvGrabPort"
,
"Display*"
,
"XvPortID"
,
"Time"
);
output_fn_short
(
"int"
,
"XvUngrabPort"
,
"Display*"
,
"XvPortID"
,
"Time"
);
output_fn_short
(
"int"
,
"XvSelectVideoNotify"
,
"Display*"
,
"Drawable"
,
"Bool"
);
output_fn_short
(
"int"
,
"XvSelectPortNotify"
,
"Display*"
,
"XvPortID"
,
"Bool"
);
output_fn_short
(
"int"
,
"XvSetPortAttribute"
,
"Display*"
,
"XvPortID"
,
"Atom"
,
"int"
);
output_fn_short
(
"int"
,
"XvGetPortAttribute"
,
"Display*"
,
"XvPortID"
,
"Atom"
,
"int*"
);
output_fn_short
(
"int"
,
"XvQueryBestSize"
,
"Display*"
,
"XvPortID"
,
"Bool"
,
"unsigned int"
,
"unsigned int"
,
"unsigned int"
,
"unsigned int"
,
"unsigned int*"
,
"unsigned int*"
);
output_fn_short
(
"XvAttribute*"
,
"XvQueryPortAttributes"
,
"Display*"
,
"XvPortID"
,
"int*"
);
output_fn_short
(
"void"
,
"XvFreeAdaptorInfo"
,
"XvAdaptorInfo*"
);
output_fn_short
(
"void"
,
"XvFreeEncodingInfo"
,
"XvEncodingInfo*"
);
output_fn_short
(
"XvImageFormatValues *"
,
"XvListImageFormats"
,
"Display*"
,
"XvPortID"
,
"int*"
);
output_fn_short
(
"XvImage *"
,
"XvCreateImage"
,
"Display*"
,
"XvPortID"
,
"int"
,
"char*"
,
"int"
,
"int"
);
output_fn_short
(
"int"
,
"XvPutImage"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"XvImage*"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
);
output_fn_short
(
"int"
,
"XvShmPutImage"
,
"Display*"
,
"XvPortID"
,
"Drawable"
,
"GC"
,
"XvImage*"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"int"
,
"int"
,
"unsigned int"
,
"unsigned int"
,
"Bool"
);
output_fn_short
(
"XvImage *"
,
"XvShmCreateImage"
,
"Display*"
,
"XvPortID"
,
"int"
,
"char*"
,
"int"
,
"int"
,
"XShmSegmentInfo*"
);
}
elsif
(
$name
eq
"xf86vmode"
)
{
output_fn
(
"XF86VidModeQueryVersion"
,
Bool
,
"Display*,int*,int*"
,
...
...
tsx11/Makefile.in
View file @
3d2f32dc
...
...
@@ -12,6 +12,7 @@ C_SRCS = \
ts_xshm.c
\
ts_xlib.c
\
ts_xresource.c
\
ts_xvideo.c
\
ts_xutil.c
\
ts_shape.c
\
ts_xpm.c
...
...
tsx11/X11_calls
View file @
3d2f32dc
...
...
@@ -227,3 +227,26 @@ XDGASync
XDGASetClientVersion
XDGAChangePixmapMode
XDGAKeyEventToXKeyEvent
XvQueryExtension
XvQueryAdaptors
XvQueryEncodings
XvPutVideo
XvPutStill
XvGetVideo
XvGetStill
XvStopVideo
XvGrabPort
XvUngrabPort
XvSelectVideoNotify
XvSelectPortNotify
XvSetPortAttribute
XvGetPortAttribute
XvQueryBestSize
XvQueryPortAttributes
XvFreeAdaptorInfo
XvFreeEncodingInfo
XvListImageFormats
XvCreateImage
XvPutImage
XvShmPutImage
XvShmCreateImage
tsx11/ts_xvideo.c
0 → 100644
View file @
3d2f32dc
/*
* Thread safe wrappers around xvideo calls.
* This file was generated automatically by tools/make_X11wrappers
* DO NOT EDIT!
*/
#include "config.h"
#ifdef HAVE_XVIDEO
#include <X11/Xlib.h>
#include <X11/extensions/Xv.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xvlib.h>
#include "debugtools.h"
#include "ts_xvideo.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL
(
x11
)
int
TSXvQueryExtension
(
Display
*
a0
,
unsigned
int
*
a1
,
unsigned
int
*
a2
,
unsigned
int
*
a3
,
unsigned
int
*
a4
,
unsigned
int
*
a5
)
{
int
r
;
TRACE
(
"Call XvQueryExtension
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvQueryExtension
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvQueryExtension
\n
"
);
return
r
;
}
int
TSXvQueryAdaptors
(
Display
*
a0
,
Window
a1
,
unsigned
int
*
a2
,
XvAdaptorInfo
**
a3
)
{
int
r
;
TRACE
(
"Call XvQueryAdaptors
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvQueryAdaptors
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvQueryAdaptors
\n
"
);
return
r
;
}
int
TSXvQueryEncodings
(
Display
*
a0
,
XvPortID
a1
,
unsigned
int
*
a2
,
XvEncodingInfo
**
a3
)
{
int
r
;
TRACE
(
"Call XvQueryEncodings
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvQueryEncodings
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvQueryEncodings
\n
"
);
return
r
;
}
int
TSXvPutVideo
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
int
a4
,
int
a5
,
unsigned
int
a6
,
unsigned
int
a7
,
int
a8
,
int
a9
,
unsigned
int
a10
,
unsigned
int
a11
)
{
int
r
;
TRACE
(
"Call XvPutVideo
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvPutVideo
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvPutVideo
\n
"
);
return
r
;
}
int
TSXvPutStill
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
int
a4
,
int
a5
,
unsigned
int
a6
,
unsigned
int
a7
,
int
a8
,
int
a9
,
unsigned
int
a10
,
unsigned
int
a11
)
{
int
r
;
TRACE
(
"Call XvPutStill
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvPutStill
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvPutStill
\n
"
);
return
r
;
}
int
TSXvGetVideo
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
int
a4
,
int
a5
,
unsigned
int
a6
,
unsigned
int
a7
,
int
a8
,
int
a9
,
unsigned
int
a10
,
unsigned
int
a11
)
{
int
r
;
TRACE
(
"Call XvGetVideo
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvGetVideo
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvGetVideo
\n
"
);
return
r
;
}
int
TSXvGetStill
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
int
a4
,
int
a5
,
unsigned
int
a6
,
unsigned
int
a7
,
int
a8
,
int
a9
,
unsigned
int
a10
,
unsigned
int
a11
)
{
int
r
;
TRACE
(
"Call XvGetStill
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvGetStill
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvGetStill
\n
"
);
return
r
;
}
int
TSXvStopVideo
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
)
{
int
r
;
TRACE
(
"Call XvStopVideo
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvStopVideo
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvStopVideo
\n
"
);
return
r
;
}
int
TSXvGrabPort
(
Display
*
a0
,
XvPortID
a1
,
Time
a2
)
{
int
r
;
TRACE
(
"Call XvGrabPort
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvGrabPort
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvGrabPort
\n
"
);
return
r
;
}
int
TSXvUngrabPort
(
Display
*
a0
,
XvPortID
a1
,
Time
a2
)
{
int
r
;
TRACE
(
"Call XvUngrabPort
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvUngrabPort
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvUngrabPort
\n
"
);
return
r
;
}
int
TSXvSelectVideoNotify
(
Display
*
a0
,
Drawable
a1
,
Bool
a2
)
{
int
r
;
TRACE
(
"Call XvSelectVideoNotify
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvSelectVideoNotify
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvSelectVideoNotify
\n
"
);
return
r
;
}
int
TSXvSelectPortNotify
(
Display
*
a0
,
XvPortID
a1
,
Bool
a2
)
{
int
r
;
TRACE
(
"Call XvSelectPortNotify
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvSelectPortNotify
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvSelectPortNotify
\n
"
);
return
r
;
}
int
TSXvSetPortAttribute
(
Display
*
a0
,
XvPortID
a1
,
Atom
a2
,
int
a3
)
{
int
r
;
TRACE
(
"Call XvSetPortAttribute
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvSetPortAttribute
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvSetPortAttribute
\n
"
);
return
r
;
}
int
TSXvGetPortAttribute
(
Display
*
a0
,
XvPortID
a1
,
Atom
a2
,
int
*
a3
)
{
int
r
;
TRACE
(
"Call XvGetPortAttribute
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvGetPortAttribute
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvGetPortAttribute
\n
"
);
return
r
;
}
int
TSXvQueryBestSize
(
Display
*
a0
,
XvPortID
a1
,
Bool
a2
,
unsigned
int
a3
,
unsigned
int
a4
,
unsigned
int
a5
,
unsigned
int
a6
,
unsigned
int
*
a7
,
unsigned
int
*
a8
)
{
int
r
;
TRACE
(
"Call XvQueryBestSize
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvQueryBestSize
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvQueryBestSize
\n
"
);
return
r
;
}
XvAttribute
*
TSXvQueryPortAttributes
(
Display
*
a0
,
XvPortID
a1
,
int
*
a2
)
{
XvAttribute
*
r
;
TRACE
(
"Call XvQueryPortAttributes
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvQueryPortAttributes
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvQueryPortAttributes
\n
"
);
return
r
;
}
void
TSXvFreeAdaptorInfo
(
XvAdaptorInfo
*
a0
)
{
TRACE
(
"Call XvFreeAdaptorInfo
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
XvFreeAdaptorInfo
(
a0
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvFreeAdaptorInfo
\n
"
);
}
void
TSXvFreeEncodingInfo
(
XvEncodingInfo
*
a0
)
{
TRACE
(
"Call XvFreeEncodingInfo
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
XvFreeEncodingInfo
(
a0
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvFreeEncodingInfo
\n
"
);
}
XvImageFormatValues
*
TSXvListImageFormats
(
Display
*
a0
,
XvPortID
a1
,
int
*
a2
)
{
XvImageFormatValues
*
r
;
TRACE
(
"Call XvListImageFormats
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvListImageFormats
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvListImageFormats
\n
"
);
return
r
;
}
XvImage
*
TSXvCreateImage
(
Display
*
a0
,
XvPortID
a1
,
int
a2
,
char
*
a3
,
int
a4
,
int
a5
)
{
XvImage
*
r
;
TRACE
(
"Call XvCreateImage
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvCreateImage
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvCreateImage
\n
"
);
return
r
;
}
int
TSXvPutImage
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
XvImage
*
a4
,
int
a5
,
int
a6
,
unsigned
int
a7
,
unsigned
int
a8
,
int
a9
,
int
a10
,
unsigned
int
a11
,
unsigned
int
a12
)
{
int
r
;
TRACE
(
"Call XvPutImage
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvPutImage
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
,
a12
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvPutImage
\n
"
);
return
r
;
}
int
TSXvShmPutImage
(
Display
*
a0
,
XvPortID
a1
,
Drawable
a2
,
GC
a3
,
XvImage
*
a4
,
int
a5
,
int
a6
,
unsigned
int
a7
,
unsigned
int
a8
,
int
a9
,
int
a10
,
unsigned
int
a11
,
unsigned
int
a12
,
Bool
a13
)
{
int
r
;
TRACE
(
"Call XvShmPutImage
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvShmPutImage
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
,
a7
,
a8
,
a9
,
a10
,
a11
,
a12
,
a13
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvShmPutImage
\n
"
);
return
r
;
}
XvImage
*
TSXvShmCreateImage
(
Display
*
a0
,
XvPortID
a1
,
int
a2
,
char
*
a3
,
int
a4
,
int
a5
,
XShmSegmentInfo
*
a6
)
{
XvImage
*
r
;
TRACE
(
"Call XvShmCreateImage
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XvShmCreateImage
(
a0
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XvShmCreateImage
\n
"
);
return
r
;
}
#endif
/* defined(HAVE_XVIDEO) */
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