summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2010-04-24 21:16:59 -0400
committerYounes Manton <[email protected]>2010-04-24 21:16:59 -0400
commit3107b54b011c7ceef2b314632bdcf0b87c5e4d36 (patch)
tree7c2d18d3d7595c6fb61d38606b9c85db2f93a326
parentf64d0cf524b2203e648a060366a2e4220096aa1f (diff)
st/xvmc: Mark exported funcs with PUBLIC.
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/attributes.c4
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/block.c4
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/context.c2
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/subpicture.c10
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/surface.c8
5 files changed, 28 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xvmc/attributes.c b/src/gallium/state_trackers/xorg/xvmc/attributes.c
index 79a67838e6e..d23d8635b66 100644
--- a/src/gallium/state_trackers/xorg/xvmc/attributes.c
+++ b/src/gallium/state_trackers/xorg/xvmc/attributes.c
@@ -29,17 +29,21 @@
#include <X11/Xlib.h>
#include <X11/extensions/Xvlib.h>
#include <X11/extensions/XvMClib.h>
+#include <pipe/p_compiler.h>
+PUBLIC
XvAttribute* XvMCQueryAttributes(Display *dpy, XvMCContext *context, int *number)
{
return NULL;
}
+PUBLIC
Status XvMCSetAttribute(Display *dpy, XvMCContext *context, Atom attribute, int value)
{
return BadImplementation;
}
+PUBLIC
Status XvMCGetAttribute(Display *dpy, XvMCContext *context, Atom attribute, int *value)
{
return BadImplementation;
diff --git a/src/gallium/state_trackers/xorg/xvmc/block.c b/src/gallium/state_trackers/xorg/xvmc/block.c
index 5102375fcf8..c7da7a84a7b 100644
--- a/src/gallium/state_trackers/xorg/xvmc/block.c
+++ b/src/gallium/state_trackers/xorg/xvmc/block.c
@@ -31,6 +31,7 @@
#include <util/u_memory.h>
#include "xvmc_private.h"
+PUBLIC
Status XvMCCreateBlocks(Display *dpy, XvMCContext *context, unsigned int num_blocks, XvMCBlockArray *blocks)
{
assert(dpy);
@@ -50,6 +51,7 @@ Status XvMCCreateBlocks(Display *dpy, XvMCContext *context, unsigned int num_blo
return Success;
}
+PUBLIC
Status XvMCDestroyBlocks(Display *dpy, XvMCBlockArray *blocks)
{
assert(dpy);
@@ -59,6 +61,7 @@ Status XvMCDestroyBlocks(Display *dpy, XvMCBlockArray *blocks)
return Success;
}
+PUBLIC
Status XvMCCreateMacroBlocks(Display *dpy, XvMCContext *context, unsigned int num_blocks, XvMCMacroBlockArray *blocks)
{
assert(dpy);
@@ -78,6 +81,7 @@ Status XvMCCreateMacroBlocks(Display *dpy, XvMCContext *context, unsigned int nu
return Success;
}
+PUBLIC
Status XvMCDestroyMacroBlocks(Display *dpy, XvMCMacroBlockArray *blocks)
{
assert(dpy);
diff --git a/src/gallium/state_trackers/xorg/xvmc/context.c b/src/gallium/state_trackers/xorg/xvmc/context.c
index 586cc1f45ac..5e4af9e555a 100644
--- a/src/gallium/state_trackers/xorg/xvmc/context.c
+++ b/src/gallium/state_trackers/xorg/xvmc/context.c
@@ -172,6 +172,7 @@ static enum pipe_video_chroma_format FormatToPipe(int xvmc_format)
return -1;
}
+PUBLIC
Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
int width, int height, int flags, XvMCContext *context)
{
@@ -268,6 +269,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
return Success;
}
+PUBLIC
Status XvMCDestroyContext(Display *dpy, XvMCContext *context)
{
struct vl_screen *vscreen;
diff --git a/src/gallium/state_trackers/xorg/xvmc/subpicture.c b/src/gallium/state_trackers/xorg/xvmc/subpicture.c
index a6d75f63259..5bfccfaf37f 100644
--- a/src/gallium/state_trackers/xorg/xvmc/subpicture.c
+++ b/src/gallium/state_trackers/xorg/xvmc/subpicture.c
@@ -126,6 +126,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id, int xvi
return i < num_subpics ? Success : BadMatch;
}
+PUBLIC
Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture *subpicture,
unsigned short width, unsigned short height, int xvimage_id)
{
@@ -203,6 +204,7 @@ Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture *
return Success;
}
+PUBLIC
Status XvMCClearSubpicture(Display *dpy, XvMCSubpicture *subpicture, short x, short y,
unsigned short width, unsigned short height, unsigned int color)
{
@@ -224,6 +226,7 @@ Status XvMCClearSubpicture(Display *dpy, XvMCSubpicture *subpicture, short x, sh
return Success;
}
+PUBLIC
Status XvMCCompositeSubpicture(Display *dpy, XvMCSubpicture *subpicture, XvImage *image,
short srcx, short srcy, unsigned short width, unsigned short height,
short dstx, short dsty)
@@ -293,6 +296,7 @@ Status XvMCCompositeSubpicture(Display *dpy, XvMCSubpicture *subpicture, XvImage
return Success;
}
+PUBLIC
Status XvMCDestroySubpicture(Display *dpy, XvMCSubpicture *subpicture)
{
XvMCSubpicturePrivate *subpicture_priv;
@@ -313,6 +317,7 @@ Status XvMCDestroySubpicture(Display *dpy, XvMCSubpicture *subpicture)
return Success;
}
+PUBLIC
Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsigned char *palette)
{
assert(dpy);
@@ -326,6 +331,7 @@ Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsign
return BadMatch;
}
+PUBLIC
Status XvMCBlendSubpicture(Display *dpy, XvMCSurface *target_surface, XvMCSubpicture *subpicture,
short subx, short suby, unsigned short subw, unsigned short subh,
short surfx, short surfy, unsigned short surfw, unsigned short surfh)
@@ -367,6 +373,7 @@ Status XvMCBlendSubpicture(Display *dpy, XvMCSurface *target_surface, XvMCSubpic
return Success;
}
+PUBLIC
Status XvMCBlendSubpicture2(Display *dpy, XvMCSurface *source_surface, XvMCSurface *target_surface,
XvMCSubpicture *subpicture, short subx, short suby, unsigned short subw, unsigned short subh,
short surfx, short surfy, unsigned short surfw, unsigned short surfh)
@@ -390,6 +397,7 @@ Status XvMCBlendSubpicture2(Display *dpy, XvMCSurface *source_surface, XvMCSurfa
return Success;
}
+PUBLIC
Status XvMCSyncSubpicture(Display *dpy, XvMCSubpicture *subpicture)
{
assert(dpy);
@@ -400,6 +408,7 @@ Status XvMCSyncSubpicture(Display *dpy, XvMCSubpicture *subpicture)
return Success;
}
+PUBLIC
Status XvMCFlushSubpicture(Display *dpy, XvMCSubpicture *subpicture)
{
assert(dpy);
@@ -410,6 +419,7 @@ Status XvMCFlushSubpicture(Display *dpy, XvMCSubpicture *subpicture)
return Success;
}
+PUBLIC
Status XvMCGetSubpictureStatus(Display *dpy, XvMCSubpicture *subpicture, int *status)
{
assert(dpy);
diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c
index 998a7af0e95..42df9e49ea5 100644
--- a/src/gallium/state_trackers/xorg/xvmc/surface.c
+++ b/src/gallium/state_trackers/xorg/xvmc/surface.c
@@ -184,6 +184,7 @@ MacroBlocksToPipe(struct pipe_screen *screen,
}
}
+PUBLIC
Status XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surface)
{
XvMCContextPrivate *context_priv;
@@ -261,6 +262,7 @@ Status XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surfac
return Success;
}
+PUBLIC
Status XvMCRenderSurface(Display *dpy, XvMCContext *context, unsigned int picture_structure,
XvMCSurface *target_surface, XvMCSurface *past_surface, XvMCSurface *future_surface,
unsigned int flags, unsigned int num_macroblocks, unsigned int first_macroblock,
@@ -334,6 +336,7 @@ Status XvMCRenderSurface(Display *dpy, XvMCContext *context, unsigned int pictur
return Success;
}
+PUBLIC
Status XvMCFlushSurface(Display *dpy, XvMCSurface *surface)
{
assert(dpy);
@@ -344,6 +347,7 @@ Status XvMCFlushSurface(Display *dpy, XvMCSurface *surface)
return Success;
}
+PUBLIC
Status XvMCSyncSurface(Display *dpy, XvMCSurface *surface)
{
assert(dpy);
@@ -354,6 +358,7 @@ Status XvMCSyncSurface(Display *dpy, XvMCSurface *surface)
return Success;
}
+PUBLIC
Status XvMCPutSurface(Display *dpy, XvMCSurface *surface, Drawable drawable,
short srcx, short srcy, unsigned short srcw, unsigned short srch,
short destx, short desty, unsigned short destw, unsigned short desth,
@@ -442,6 +447,7 @@ Status XvMCPutSurface(Display *dpy, XvMCSurface *surface, Drawable drawable,
return Success;
}
+PUBLIC
Status XvMCGetSurfaceStatus(Display *dpy, XvMCSurface *surface, int *status)
{
assert(dpy);
@@ -456,6 +462,7 @@ Status XvMCGetSurfaceStatus(Display *dpy, XvMCSurface *surface, int *status)
return Success;
}
+PUBLIC
Status XvMCDestroySurface(Display *dpy, XvMCSurface *surface)
{
XvMCSurfacePrivate *surface_priv;
@@ -477,6 +484,7 @@ Status XvMCDestroySurface(Display *dpy, XvMCSurface *surface)
return Success;
}
+PUBLIC
Status XvMCHideSurface(Display *dpy, XvMCSurface *surface)
{
assert(dpy);