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
d8f7c84f
Commit
d8f7c84f
authored
Feb 06, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vaDbgCreateSurfaceFromUB for V4L2 buffer sharing
Signed-off-by:
Austin Yuan
<
shengquan.yuan@intel.com
>
parent
fee5a472
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
src/va.c
src/va.c
+18
-0
src/va_backend.h
src/va_backend.h
+8
-0
No files found.
src/va.c
View file @
d8f7c84f
...
...
@@ -1271,3 +1271,21 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
return
ctx
->
vtable
.
vaDbgCopySurfaceToBuffer
(
ctx
,
surface
,
buffer
,
stride
);
}
VAStatus
vaDbgCreateSurfaceFromUB
(
VADisplay
dpy
,
unsigned
int
width
,
unsigned
int
height
,
unsigned
int
size
,
void
*
start
,
VASurfaceID
*
surface
/* out */
)
{
VADriverContextP
ctx
;
CHECK_DISPLAY
(
dpy
);
ctx
=
CTX
(
dpy
);
TRACE
(
vaDbgCreateSurfaceFromUB
);
return
ctx
->
vtable
.
vaDbgCreateSurfaceFromUB
(
ctx
,
width
,
height
,
size
,
start
,
surface
);
}
src/va_backend.h
View file @
d8f7c84f
...
...
@@ -393,6 +393,14 @@ struct VADriverVTable
void
**
buffer
,
/* out */
unsigned
int
*
stride
/* out */
);
VAStatus
(
*
vaDbgCreateSurfaceFromUB
)
(
VADriverContextP
ctx
,
unsigned
int
width
,
unsigned
int
height
,
unsigned
int
size
,
void
*
start
,
VASurfaceID
*
surface
/* out */
);
};
struct
VADriverContext
...
...
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