2003-11-25 20:29:01 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1998-2003 by The XFree86 Project, Inc.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Except as contained in this notice, the name of the copyright holder(s)
|
|
|
|
* and author(s) shall not be used in advertising or otherwise to promote
|
|
|
|
* the sale, use or other dealings in this Software without prior written
|
|
|
|
* authorization from the copyright holder(s) and author(s).
|
|
|
|
*/
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
#ifndef _XF86XV_H_
|
|
|
|
#define _XF86XV_H_
|
|
|
|
|
|
|
|
#include "xvdix.h"
|
|
|
|
#include "xf86str.h"
|
|
|
|
|
|
|
|
#define VIDEO_OVERLAID_IMAGES 0x00000004
|
|
|
|
#define VIDEO_OVERLAID_STILLS 0x00000008
|
2010-11-02 15:23:02 +01:00
|
|
|
/*
|
|
|
|
* Usage of VIDEO_CLIP_TO_VIEWPORT is not recommended.
|
|
|
|
* It can make reput behaviour inconsistent.
|
|
|
|
*/
|
2003-11-14 17:48:57 +01:00
|
|
|
#define VIDEO_CLIP_TO_VIEWPORT 0x00000010
|
|
|
|
|
2013-12-28 06:34:44 +01:00
|
|
|
typedef XvImageRec XF86ImageRec, *XF86ImagePtr;
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
ScrnInfoPtr pScrn;
|
|
|
|
int id;
|
|
|
|
unsigned short width, height;
|
|
|
|
int *pitches; /* bytes */
|
|
|
|
int *offsets; /* in bytes from start of framebuffer */
|
|
|
|
DevUnion devPrivate;
|
2003-11-14 17:48:57 +01:00
|
|
|
} XF86SurfaceRec, *XF86SurfacePtr;
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*PutVideoFuncPtr) (ScrnInfoPtr pScrn,
|
|
|
|
short vid_x, short vid_y, short drw_x,
|
|
|
|
short drw_y, short vid_w, short vid_h,
|
|
|
|
short drw_w, short drw_h, RegionPtr clipBoxes,
|
2013-12-15 10:05:51 +01:00
|
|
|
void *data, DrawablePtr pDraw);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*PutStillFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
|
|
|
short drw_x, short drw_y, short vid_w,
|
|
|
|
short vid_h, short drw_w, short drw_h,
|
2013-12-15 10:05:51 +01:00
|
|
|
RegionPtr clipBoxes, void *data,
|
2012-03-21 20:55:09 +01:00
|
|
|
DrawablePtr pDraw);
|
|
|
|
typedef int (*GetVideoFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
|
|
|
short drw_x, short drw_y, short vid_w,
|
|
|
|
short vid_h, short drw_w, short drw_h,
|
2013-12-15 10:05:51 +01:00
|
|
|
RegionPtr clipBoxes, void *data,
|
2012-03-21 20:55:09 +01:00
|
|
|
DrawablePtr pDraw);
|
|
|
|
typedef int (*GetStillFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
|
|
|
short drw_x, short drw_y, short vid_w,
|
|
|
|
short vid_h, short drw_w, short drw_h,
|
2013-12-15 10:05:51 +01:00
|
|
|
RegionPtr clipBoxes, void *data,
|
2012-03-21 20:55:09 +01:00
|
|
|
DrawablePtr pDraw);
|
2013-12-15 10:05:51 +01:00
|
|
|
typedef void (*StopVideoFuncPtr) (ScrnInfoPtr pScrn, void *data, Bool Exit);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*SetPortAttributeFuncPtr) (ScrnInfoPtr pScrn, Atom attribute,
|
2013-12-15 10:05:51 +01:00
|
|
|
INT32 value, void *data);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*GetPortAttributeFuncPtr) (ScrnInfoPtr pScrn, Atom attribute,
|
2013-12-15 10:05:51 +01:00
|
|
|
INT32 *value, void *data);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef void (*QueryBestSizeFuncPtr) (ScrnInfoPtr pScrn, Bool motion,
|
|
|
|
short vid_w, short vid_h, short drw_w,
|
|
|
|
short drw_h, unsigned int *p_w,
|
2013-12-15 10:05:51 +01:00
|
|
|
unsigned int *p_h, void *data);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*PutImageFuncPtr) (ScrnInfoPtr pScrn, short src_x, short src_y,
|
|
|
|
short drw_x, short drw_y, short src_w,
|
|
|
|
short src_h, short drw_w, short drw_h,
|
|
|
|
int image, unsigned char *buf, short width,
|
|
|
|
short height, Bool Sync, RegionPtr clipBoxes,
|
2013-12-15 10:05:51 +01:00
|
|
|
void *data, DrawablePtr pDraw);
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*ReputImageFuncPtr) (ScrnInfoPtr pScrn, short src_x, short src_y,
|
|
|
|
short drw_x, short drw_y, short src_w,
|
|
|
|
short src_h, short drw_w, short drw_h,
|
2013-12-15 10:05:51 +01:00
|
|
|
RegionPtr clipBoxes, void *data,
|
2012-03-21 20:55:09 +01:00
|
|
|
DrawablePtr pDraw);
|
|
|
|
typedef int (*QueryImageAttributesFuncPtr) (ScrnInfoPtr pScrn, int image,
|
|
|
|
unsigned short *width,
|
|
|
|
unsigned short *height,
|
|
|
|
int *pitches, int *offsets);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
XV_OFF,
|
|
|
|
XV_PENDING,
|
|
|
|
XV_ON
|
|
|
|
} XvStatus;
|
|
|
|
|
|
|
|
/*** this is what the driver needs to fill out ***/
|
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
int id;
|
2013-11-15 08:24:15 +01:00
|
|
|
const char *name;
|
2012-03-21 20:55:09 +01:00
|
|
|
unsigned short width, height;
|
|
|
|
XvRationalRec rate;
|
2003-11-14 17:48:57 +01:00
|
|
|
} XF86VideoEncodingRec, *XF86VideoEncodingPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
char depth;
|
|
|
|
short class;
|
2003-11-14 17:48:57 +01:00
|
|
|
} XF86VideoFormatRec, *XF86VideoFormatPtr;
|
|
|
|
|
2013-12-28 06:34:44 +01:00
|
|
|
typedef XvAttributeRec XF86AttributeRec, *XF86AttributePtr;
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
unsigned int type;
|
|
|
|
int flags;
|
2013-11-15 08:24:15 +01:00
|
|
|
const char *name;
|
2012-03-21 20:55:09 +01:00
|
|
|
int nEncodings;
|
|
|
|
XF86VideoEncodingPtr pEncodings;
|
|
|
|
int nFormats;
|
|
|
|
XF86VideoFormatPtr pFormats;
|
|
|
|
int nPorts;
|
|
|
|
DevUnion *pPortPrivates;
|
|
|
|
int nAttributes;
|
|
|
|
XF86AttributePtr pAttributes;
|
|
|
|
int nImages;
|
|
|
|
XF86ImagePtr pImages;
|
|
|
|
PutVideoFuncPtr PutVideo;
|
|
|
|
PutStillFuncPtr PutStill;
|
|
|
|
GetVideoFuncPtr GetVideo;
|
|
|
|
GetStillFuncPtr GetStill;
|
|
|
|
StopVideoFuncPtr StopVideo;
|
|
|
|
SetPortAttributeFuncPtr SetPortAttribute;
|
|
|
|
GetPortAttributeFuncPtr GetPortAttribute;
|
|
|
|
QueryBestSizeFuncPtr QueryBestSize;
|
|
|
|
PutImageFuncPtr PutImage;
|
|
|
|
ReputImageFuncPtr ReputImage; /* image/still */
|
|
|
|
QueryImageAttributesFuncPtr QueryImageAttributes;
|
2003-11-14 17:48:57 +01:00
|
|
|
} XF86VideoAdaptorRec, *XF86VideoAdaptorPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
XF86ImagePtr image;
|
|
|
|
int flags;
|
|
|
|
int (*alloc_surface) (ScrnInfoPtr pScrn,
|
|
|
|
int id,
|
|
|
|
unsigned short width,
|
|
|
|
unsigned short height, XF86SurfacePtr surface);
|
|
|
|
int (*free_surface) (XF86SurfacePtr surface);
|
|
|
|
int (*display) (XF86SurfacePtr surface,
|
|
|
|
short vid_x, short vid_y,
|
|
|
|
short drw_x, short drw_y,
|
|
|
|
short vid_w, short vid_h,
|
|
|
|
short drw_w, short drw_h, RegionPtr clipBoxes);
|
|
|
|
int (*stop) (XF86SurfacePtr surface);
|
|
|
|
int (*getAttribute) (ScrnInfoPtr pScrn, Atom attr, INT32 *value);
|
|
|
|
int (*setAttribute) (ScrnInfoPtr pScrn, Atom attr, INT32 value);
|
|
|
|
int max_width;
|
|
|
|
int max_height;
|
|
|
|
int num_attributes;
|
|
|
|
XF86AttributePtr attributes;
|
2003-11-14 17:48:57 +01:00
|
|
|
} XF86OffscreenImageRec, *XF86OffscreenImagePtr;
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86XVScreenInit(ScreenPtr pScreen, XF86VideoAdaptorPtr * Adaptors, int num);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
typedef int (*xf86XVInitGenericAdaptorPtr) (ScrnInfoPtr pScrn,
|
|
|
|
XF86VideoAdaptorPtr ** Adaptors);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86XVRegisterGenericAdaptorDriver(xf86XVInitGenericAdaptorPtr InitFunc);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86XVListGenericAdaptors(ScrnInfoPtr pScrn, XF86VideoAdaptorPtr ** Adaptors);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86XVRegisterOffscreenImages(ScreenPtr pScreen,
|
|
|
|
XF86OffscreenImagePtr images, int num);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT XF86OffscreenImagePtr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86XVQueryOffscreenImages(ScreenPtr pScreen, int *num);
|
|
|
|
|
|
|
|
extern _X_EXPORT XF86VideoAdaptorPtr xf86XVAllocateVideoAdaptorRec(ScrnInfoPtr
|
|
|
|
pScrn);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void xf86XVFreeVideoAdaptorRec(XF86VideoAdaptorPtr ptr);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86XVFillKeyHelper(ScreenPtr pScreen, CARD32 key, RegionPtr clipboxes);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86XVFillKeyHelperDrawable(DrawablePtr pDraw, CARD32 key, RegionPtr clipboxes);
|
2006-10-15 16:48:59 +02:00
|
|
|
|
2011-01-17 15:58:00 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2013-12-15 10:05:51 +01:00
|
|
|
xf86XVFillKeyHelperPort(DrawablePtr pDraw, void *data, CARD32 key,
|
2012-03-21 20:55:09 +01:00
|
|
|
RegionPtr clipboxes, Bool fillEverything);
|
2011-01-17 15:58:00 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86XVClipVideoHelper(BoxPtr dst,
|
|
|
|
INT32 *xa,
|
|
|
|
INT32 *xb,
|
|
|
|
INT32 *ya,
|
|
|
|
INT32 *yb, RegionPtr reg, INT32 width, INT32 height);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86XVCopyYUV12ToPacked(const void *srcy,
|
|
|
|
const void *srcv,
|
|
|
|
const void *srcu,
|
|
|
|
void *dst,
|
|
|
|
int srcPitchy,
|
|
|
|
int srcPitchuv, int dstPitch, int h, int w);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86XVCopyPacked(const void *src,
|
|
|
|
void *dst, int srcPitch, int dstPitch, int h, int w);
|
|
|
|
|
|
|
|
#endif /* _XF86XV_H_ */
|