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
95da3e74
Commit
95da3e74
authored
Jan 27, 2011
by
Gwenole Beauchesne
Committed by
Austin Yuan
Feb 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make VADriverContext.vtable a pointer.
parent
96b62de6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
54 deletions
+80
-54
va/glx/va_glx_impl.c
va/glx/va_glx_impl.c
+4
-4
va/va.c
va/va.c
+58
-45
va/va_backend.h
va/va_backend.h
+17
-4
va/x11/va_x11.c
va/x11/va_x11.c
+1
-1
No files found.
va/glx/va_glx_impl.c
View file @
95da3e74
...
...
@@ -803,7 +803,7 @@ end:
/* ========================================================================= */
#define INVOKE(ctx, func, args) do { \
VADriverVTableGLXP vtable = (ctx)->vtable
.
glx; \
VADriverVTableGLXP vtable = (ctx)->vtable
_
glx; \
if (!vtable->va##func##GLX) \
return VA_STATUS_ERROR_UNIMPLEMENTED; \
\
...
...
@@ -937,7 +937,7 @@ associate_surface(
return
status
;
x11_trap_errors
();
status
=
ctx
->
vtable
.
vaPutSurface
(
status
=
ctx
->
vtable
->
vaPutSurface
(
ctx
,
surface
,
(
void
*
)
pSurfaceGLX
->
pixmap
,
...
...
@@ -962,7 +962,7 @@ sync_surface(VADriverContextP ctx, VASurfaceGLXP pSurfaceGLX)
if
(
pSurfaceGLX
->
surface
==
VA_INVALID_SURFACE
)
return
VA_STATUS_ERROR_INVALID_SURFACE
;
return
ctx
->
vtable
.
vaSyncSurface
(
ctx
,
pSurfaceGLX
->
surface
);
return
ctx
->
vtable
->
vaSyncSurface
(
ctx
,
pSurfaceGLX
->
surface
);
}
static
inline
VAStatus
...
...
@@ -1058,7 +1058,7 @@ VAStatus va_glx_init_context(VADriverContextP ctx)
if
(
glx_ctx
->
is_initialized
)
return
VA_STATUS_SUCCESS
;
if
(
ctx
->
vtable
.
glx
&&
ctx
->
vtable
.
glx
->
vaCopySurfaceGLX
)
{
if
(
ctx
->
vtable
_glx
&&
ctx
->
vtable_
glx
->
vaCopySurfaceGLX
)
{
vtable
->
vaCreateSurfaceGLX
=
vaCreateSurfaceGLX_impl_driver
;
vtable
->
vaDestroySurfaceGLX
=
vaDestroySurfaceGLX_impl_driver
;
vtable
->
vaCopySurfaceGLX
=
vaCopySurfaceGLX_impl_driver
;
...
...
va/va.c
View file @
95da3e74
This diff is collapsed.
Click to expand it.
va/va_backend.h
View file @
95da3e74
...
...
@@ -378,15 +378,28 @@ struct VADriverVTable
VADriverContextP
ctx
,
VASurfaceID
surface
);
/* Optional: GLX support hooks */
struct
VADriverVTableGLX
*
glx
;
};
struct
VADriverContext
{
void
*
pDriverData
;
struct
VADriverVTable
vtable
;
/**
* The core VA implementation hooks.
*
* This structure is allocated from libva with calloc().
*/
struct
VADriverVTable
*
vtable
;
/**
* The VA/GLX implementation hooks.
*
* This structure is intended for drivers that implement the
* VA/GLX API. The driver implementation is responsible for the
* allocation and deallocation of this structure.
*/
struct
VADriverVTableGLX
*
vtable_glx
;
void
*
vtable_tpi
;
/* the structure is malloc-ed */
void
*
native_dpy
;
...
...
va/x11/va_x11.c
View file @
95da3e74
...
...
@@ -285,7 +285,7 @@ VAStatus vaPutSurface (
destx
,
desty
,
destw
,
desth
,
cliprects
,
number_cliprects
,
flags
);
return
ctx
->
vtable
.
vaPutSurface
(
ctx
,
surface
,
(
void
*
)
draw
,
srcx
,
srcy
,
srcw
,
srch
,
return
ctx
->
vtable
->
vaPutSurface
(
ctx
,
surface
,
(
void
*
)
draw
,
srcx
,
srcy
,
srcw
,
srch
,
destx
,
desty
,
destw
,
desth
,
cliprects
,
number_cliprects
,
flags
);
}
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