Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
03a6cbe5
Commit
03a6cbe5
authored
May 07, 2010
by
Ren Zhaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove and redifine some Xlib Macros, use void* instead of Surface* for VAStatus (*vaPutSurface)
parent
085f5e3b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
26 deletions
+14
-26
va/android/va_android.cpp
va/android/va_android.cpp
+3
-4
va/va.c
va/va.c
+5
-0
va/va.h
va/va.h
+0
-11
va/va_android.h
va/va_android.h
+0
-5
va/va_backend.h
va/va_backend.h
+1
-6
va/x11/va_dricommon.h
va/x11/va_dricommon.h
+5
-0
No files found.
va/android/va_android.cpp
View file @
03a6cbe5
...
...
@@ -43,7 +43,7 @@
#endif
#define CHECK_SYMBOL(func) { if (!func) printf("func %s not found\n", #func); return VA_STATUS_ERROR_UNKNOWN; }
#define DEVICE_NAME "/dev/
dri/
card0"
#define DEVICE_NAME "/dev/card0"
static
VADisplayContextP
pDisplayContexts
=
NULL
;
...
...
@@ -282,7 +282,7 @@ VADisplay vaGetDisplay (
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
static
int
vaDisplayIsValid
(
VADisplay
dpy
)
static
int
vaDisplayIsValid
(
VADisplay
dpy
)
{
VADisplayContextP
pDisplayContext
=
(
VADisplayContextP
)
dpy
;
return
pDisplayContext
&&
(
pDisplayContext
->
vadpy_magic
==
VA_DISPLAY_MAGIC
)
&&
pDisplayContext
->
vaIsValid
(
pDisplayContext
);
...
...
@@ -310,9 +310,8 @@ VAStatus vaPutSurface (
CHECK_DISPLAY
(
dpy
);
ctx
=
CTX
(
dpy
);
return
ctx
->
vtable
.
vaPutSurface
(
ctx
,
surface
,
static_cast
<
void
*>
(
&
draw
),
srcx
,
srcy
,
srcw
,
srch
,
return
ctx
->
vtable
.
vaPutSurface
(
ctx
,
surface
,
static_cast
<
void
*>
(
&
draw
),
srcx
,
srcy
,
srcw
,
srch
,
destx
,
desty
,
destw
,
desth
,
cliprects
,
number_cliprects
,
flags
);
}
#endif
va/va.c
View file @
03a6cbe5
...
...
@@ -35,6 +35,11 @@
#include <dlfcn.h>
#include <unistd.h>
#ifdef ANDROID
#define Bool int
#define True 1
#define False 0
#endif
#define DRIVER_INIT_FUNC "__vaDriverInit_0_31"
...
...
va/va.h
View file @
03a6cbe5
...
...
@@ -1804,17 +1804,6 @@ VAStatus vaSetDisplayAttributes (
int
num_attributes
);
#ifdef ANDROID
#define Display unsigned int
#define Drawable unsigned int
#define XID unsigned int
#define Bool int
#define Status int
#define True 1
#define False 0
#define Xfree(ptr) free((ptr))
#endif
#ifdef __cplusplus
}
#endif
...
...
va/va_android.h
View file @
03a6cbe5
...
...
@@ -2,10 +2,6 @@
#define _VA_ANDROID_H_
#include <va/va.h>
//FIXME: Surface conflict with va_backend.h
#ifdef Surface
#undef Surface
#endif
#ifdef ANDROID
#include <ui/Surface.h>
...
...
@@ -23,7 +19,6 @@ VADisplay vaGetDisplay (
);
#ifdef ANDROID
/*
* Output rendering
* Following is the rendering interface for X windows,
...
...
va/va_backend.h
View file @
03a6cbe5
...
...
@@ -38,10 +38,6 @@
typedef
struct
VADriverContext
*
VADriverContextP
;
typedef
struct
VADisplayContext
*
VADisplayContextP
;
#ifdef ANDROID
#define Surface void
#endif
struct
VADriverVTable
{
VAStatus
(
*
vaTerminate
)
(
VADriverContextP
ctx
);
...
...
@@ -185,7 +181,7 @@ struct VADriverVTable
VAStatus
(
*
vaPutSurface
)
(
VADriverContextP
ctx
,
VASurfaceID
surface
,
Surface
*
draw
,
/* Drawable of window system */
void
*
draw
,
/* Drawable of window system */
short
srcx
,
short
srcy
,
unsigned
short
srcw
,
...
...
@@ -430,5 +426,4 @@ typedef VAStatus (*VADriverInit) (
VADriverContextP
driver_context
);
#endif
/* _VA_BACKEND_H_ */
va/x11/va_dricommon.h
View file @
03a6cbe5
...
...
@@ -10,6 +10,11 @@
#include <va/va_backend.h>
#ifdef ANDROID
#define XID unsigned int
#define Bool int
#endif
enum
{
VA_NONE
=
0
,
...
...
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