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
e734b66e
Commit
e734b66e
authored
May 12, 2010
by
Ren Zhaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Drawable paramater of vaPutSurfaceBuf
parent
c6fc410a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
va/va_backend_tpi.h
va/va_backend_tpi.h
+0
-1
va/va_tpi.c
va/va_tpi.c
+1
-6
va/va_tpi.h
va/va_tpi.h
+7
-6
No files found.
va/va_backend_tpi.h
View file @
e734b66e
...
...
@@ -54,7 +54,6 @@ struct VADriverVTableTPI
VAStatus
(
*
vaPutSurfaceBuf
)
(
VADisplay
dpy
,
VASurfaceID
surface
,
unsigned
int
draw
,
/* Android Surface/Window */
unsigned
char
*
data
,
int
*
data_len
,
short
srcx
,
...
...
va/va_tpi.c
View file @
e734b66e
...
...
@@ -39,10 +39,6 @@
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
#ifdef ANDROID
#define Drawable unsigned int
#endif
static
int
vaDisplayIsValid
(
VADisplay
dpy
)
{
VADisplayContextP
pDisplayContext
=
(
VADisplayContextP
)
dpy
;
...
...
@@ -111,7 +107,6 @@ VAStatus vaCreateSurfaceFromV4L2Buf(
VAStatus
vaPutSurfaceBuf
(
VADisplay
dpy
,
VASurfaceID
surface
,
Drawable
draw
,
/* Android Surface/Window */
unsigned
char
*
data
,
int
*
data_len
,
short
srcx
,
...
...
@@ -134,7 +129,7 @@ VAStatus vaPutSurfaceBuf (
tpi
=
(
struct
VADriverVTableTPI
*
)
ctx
->
vtable_tpi
;
if
(
tpi
&&
tpi
->
vaPutSurfaceBuf
)
{
return
tpi
->
vaPutSurfaceBuf
(
ctx
,
surface
,
d
raw
,
d
ata
,
data_len
,
srcx
,
srcy
,
srcw
,
srch
,
return
tpi
->
vaPutSurfaceBuf
(
ctx
,
surface
,
data
,
data_len
,
srcx
,
srcy
,
srcw
,
srch
,
destx
,
desty
,
destw
,
desth
,
cliprects
,
number_cliprects
,
flags
);
}
else
return
VA_STATUS_ERROR_UNIMPLEMENTED
;
...
...
va/va_tpi.h
View file @
e734b66e
...
...
@@ -30,14 +30,12 @@
* and also a vaSyncSurface should be called before application tries to access the frame
* from CI stack
*/
#include <va/va.h>
#ifdef ANDROID
#define Drawable unsigned int
#else
#include <X11/Xlib.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#include <va/va.h>
VAStatus
vaCreateSurfaceFromCIFrame
(
VADisplay
dpy
,
unsigned
long
frame_id
,
...
...
@@ -55,7 +53,6 @@ VAStatus vaCreateSurfaceFromV4L2Buf(
VAStatus
vaPutSurfaceBuf
(
VADisplay
dpy
,
VASurfaceID
surface
,
Drawable
draw
,
/* Android Surface/Window */
unsigned
char
*
data
,
int
*
data_len
,
short
srcx
,
...
...
@@ -70,3 +67,7 @@ VAStatus vaPutSurfaceBuf (
unsigned
int
number_cliprects
,
/* number of clip rects in the clip list */
unsigned
int
flags
/* de-interlacing flags */
);
#ifdef __cplusplus
}
#endif
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