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
9134c0e5
Commit
9134c0e5
authored
Sep 20, 2007
by
Waldo Bastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swapped vaGetConfigAttributes and vaQueryConfigAttributes for API consistency
parent
de4abcf3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
dummy_drv_video/dummy_drv_video.c
dummy_drv_video/dummy_drv_video.c
+2
-2
src/va.c
src/va.c
+6
-6
src/va.h
src/va.h
+5
-5
src/va_backend.h
src/va_backend.h
+2
-2
No files found.
dummy_drv_video/dummy_drv_video.c
View file @
9134c0e5
...
...
@@ -141,7 +141,7 @@ VAStatus dummy_QueryConfigEntrypoints(
return
VA_STATUS_SUCCESS
;
}
VAStatus
dummy_
Query
ConfigAttributes
(
VAStatus
dummy_
Get
ConfigAttributes
(
VADriverContextP
ctx
,
VAProfile
profile
,
VAEntrypoint
entrypoint
,
...
...
@@ -332,7 +332,7 @@ VAStatus dummy_DestroyConfig(
return
VA_STATUS_SUCCESS
;
}
VAStatus
dummy_
Get
ConfigAttributes
(
VAStatus
dummy_
Query
ConfigAttributes
(
VADriverContextP
ctx
,
VAConfigID
config_id
,
VAProfile
*
profile
,
/* out */
...
...
src/va.c
View file @
9134c0e5
...
...
@@ -477,7 +477,7 @@ VAStatus vaQueryConfigEntrypoints (
return
ctx
->
vtable
.
vaQueryConfigEntrypoints
(
ctx
,
profile
,
entrypoints
,
num_entrypoints
);
}
VAStatus
va
Query
ConfigAttributes
(
VAStatus
va
Get
ConfigAttributes
(
VADisplay
dpy
,
VAProfile
profile
,
VAEntrypoint
entrypoint
,
...
...
@@ -488,8 +488,8 @@ VAStatus vaQueryConfigAttributes (
VADriverContextP
ctx
=
CTX
(
dpy
);
ASSERT_CONTEXT
(
ctx
);
TRACE
(
va
Query
ConfigAttributes
);
return
ctx
->
vtable
.
va
Query
ConfigAttributes
(
ctx
,
profile
,
entrypoint
,
attrib_list
,
num_attribs
);
TRACE
(
va
Get
ConfigAttributes
);
return
ctx
->
vtable
.
va
Get
ConfigAttributes
(
ctx
,
profile
,
entrypoint
,
attrib_list
,
num_attribs
);
}
VAStatus
vaQueryConfigProfiles
(
...
...
@@ -533,7 +533,7 @@ VAStatus vaDestroyConfig (
return
ctx
->
vtable
.
vaDestroyConfig
(
ctx
,
config_id
);
}
VAStatus
va
Get
ConfigAttributes
(
VAStatus
va
Query
ConfigAttributes
(
VADisplay
dpy
,
VAConfigID
config_id
,
VAProfile
*
profile
,
/* out */
...
...
@@ -545,8 +545,8 @@ VAStatus vaGetConfigAttributes (
VADriverContextP
ctx
=
CTX
(
dpy
);
ASSERT_CONTEXT
(
ctx
);
TRACE
(
va
Get
ConfigAttributes
);
return
ctx
->
vtable
.
va
Get
ConfigAttributes
(
ctx
,
config_id
,
profile
,
entrypoint
,
attrib_list
,
num_attribs
);
TRACE
(
va
Query
ConfigAttributes
);
return
ctx
->
vtable
.
va
Query
ConfigAttributes
(
ctx
,
config_id
,
profile
,
entrypoint
,
attrib_list
,
num_attribs
);
}
VAStatus
vaCreateSurfaces
(
...
...
src/va.h
View file @
9134c0e5
...
...
@@ -231,14 +231,14 @@ VAStatus vaQueryConfigEntrypoints (
);
/*
*
Query
attributes for a given profile/entrypoint pair
*
Get
attributes for a given profile/entrypoint pair
* The caller must provide an “attrib_list” with all attributes to be
* queried. Upon return, the attributes in “attrib_list” have been
* updated with their value. Unknown attributes or attributes that are
* not supported for the given profile/entrypoint pair will have their
* value set to VA_ATTRIB_NOT_SUPPORTED
*/
VAStatus
va
Query
ConfigAttributes
(
VAStatus
va
Get
ConfigAttributes
(
VADisplay
dpy
,
VAProfile
profile
,
VAEntrypoint
entrypoint
,
...
...
@@ -274,14 +274,14 @@ VAStatus vaDestroyConfig (
);
/*
*
Get
all attributes for a given configuration
*
Query
all attributes for a given configuration
* The profile of the configuration is returned in “profile”
* The entrypoint of the configuration is returned in “entrypoint”
* The caller must provide an “attrib_list” array that can hold at least
* vaMaxNumConfigAttributes() entries. The actual number of attributes
* returned in “attrib_list” is returned in “num_attribs”
*/
VAStatus
va
Get
ConfigAttributes
(
VAStatus
va
Query
ConfigAttributes
(
VADisplay
dpy
,
VAConfigID
config_id
,
VAProfile
*
profile
,
/* out */
...
...
@@ -1459,7 +1459,7 @@ Mostly to demonstrate program flow with no error handling ...
/* Assuming finding VLD, find out the format for the render target */
VAConfigAttrib attrib;
attrib.type = VAConfigAttribRTFormat;
va
Query
ConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD,
va
Get
ConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD,
&attrib, 1);
if (attrib.value & VA_RT_FORMAT_YUV420)
...
...
src/va_backend.h
View file @
9134c0e5
...
...
@@ -68,7 +68,7 @@ struct VADriverContext
int
*
num_entrypoints
/* out */
);
VAStatus
(
*
va
Query
ConfigAttributes
)
(
VAStatus
(
*
va
Get
ConfigAttributes
)
(
VADriverContextP
ctx
,
VAProfile
profile
,
VAEntrypoint
entrypoint
,
...
...
@@ -90,7 +90,7 @@ struct VADriverContext
VAConfigID
config_id
);
VAStatus
(
*
va
Get
ConfigAttributes
)
(
VAStatus
(
*
va
Query
ConfigAttributes
)
(
VADriverContextP
ctx
,
VAConfigID
config_id
,
VAProfile
*
profile
,
/* out */
...
...
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