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
12e8a228
Commit
12e8a228
authored
Oct 25, 2007
by
Waldo Bastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Improve validation of input parameters & error reporting
parent
8f82bf2b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
66 deletions
+86
-66
src/va.c
src/va.c
+68
-50
src/va.h
src/va.h
+13
-11
src/va_backend.h
src/va_backend.h
+5
-5
No files found.
src/va.c
View file @
12e8a228
This diff is collapsed.
Click to expand it.
src/va.h
View file @
12e8a228
...
...
@@ -86,17 +86,19 @@ typedef void* VADisplay; /* window system dependent */
typedef
int
VAStatus
;
/* Return status type from functions */
/* Values for the return status */
#define VA_STATUS_SUCCESS 0x00000000
#define VA_STATUS_ERROR_ALLOCATION_FAILED 0x00000001
#define VA_STATUS_ERROR_INVALID_CONFIG 0x00000002
#define VA_STATUS_ERROR_INVALID_CONTEXT 0x00000003
#define VA_STATUS_ERROR_INVALID_SURFACE 0x00000004
#define VA_STATUS_ERROR_INVALID_BUFFER 0x00000005
#define VA_STATUS_ERROR_ATTR_NOT_SUPPORTED 0x00000006
#define VA_STATUS_ERROR_MAX_NUM_EXCEEDED 0x00000007
#define VA_STATUS_ERROR_UNSUPPORTED_PROFILE 0x00000008
#define VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT 0x00000009
#define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000a
#define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000b
#define VA_STATUS_ERROR_OPERATION_FAILED 0x00000001
#define VA_STATUS_ERROR_ALLOCATION_FAILED 0x00000002
#define VA_STATUS_ERROR_INVALID_DISPLAY 0x00000003
#define VA_STATUS_ERROR_INVALID_CONFIG 0x00000004
#define VA_STATUS_ERROR_INVALID_CONTEXT 0x00000005
#define VA_STATUS_ERROR_INVALID_SURFACE 0x00000006
#define VA_STATUS_ERROR_INVALID_BUFFER 0x00000007
#define VA_STATUS_ERROR_ATTR_NOT_SUPPORTED 0x00000008
#define VA_STATUS_ERROR_MAX_NUM_EXCEEDED 0x00000009
#define VA_STATUS_ERROR_UNSUPPORTED_PROFILE 0x0000000a
#define VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT 0x0000000b
#define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000c
#define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000d
#define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
/*
...
...
src/va_backend.h
View file @
12e8a228
...
...
@@ -51,7 +51,7 @@ struct VADriverContext
int
max_display_attributes
;
void
*
handle
;
/* dlopen handle */
void
*
pDriverData
;
struct
struct
VADriverVTable
{
VAStatus
(
*
vaTerminate
)
(
VADriverContextP
ctx
);
...
...
@@ -139,15 +139,15 @@ struct VADriverContext
VAStatus
(
*
vaBufferData
)
(
VADriverContextP
ctx
,
VABufferID
buf_id
,
/* in */
unsigned
int
size
,
/* in */
unsigned
int
num_elements
,
/* in */
void
*
data
/* in */
unsigned
int
size
,
/* in */
unsigned
int
num_elements
,
/* in */
void
*
data
/* in */
);
VAStatus
(
*
vaBufferSetNumElements
)
(
VADriverContextP
ctx
,
VABufferID
buf_id
,
/* in */
unsigned
int
num_elements
/* in */
unsigned
int
num_elements
/* in */
);
VAStatus
(
*
vaMapBuffer
)
(
...
...
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