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
1ccd01cd
Commit
1ccd01cd
authored
May 05, 2008
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct some mistakes in va.h
parent
8db6ca66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/va.h
src/va.h
+7
-6
No files found.
src/va.h
View file @
1ccd01cd
...
@@ -203,7 +203,7 @@ typedef enum
...
@@ -203,7 +203,7 @@ typedef enum
VAEntrypointMoComp
=
4
,
VAEntrypointMoComp
=
4
,
VAEntrypointDeblocking
=
5
,
VAEntrypointDeblocking
=
5
,
/* Encode entrypoints */
/* Encode entrypoints */
VAEntrypoint
VLC
=
6
,
/* slice level encode */
VAEntrypoint
EncodeES
=
6
,
/* slice level encode */
}
VAEntrypoint
;
}
VAEntrypoint
;
/* Currently defined configuration attribute types */
/* Currently defined configuration attribute types */
...
@@ -1837,7 +1837,7 @@ Mostly to demonstrate program flow with no error handling ...
...
@@ -1837,7 +1837,7 @@ Mostly to demonstrate program flow with no error handling ...
/* find out whether H.264 BP encode is supported */
/* find out whether H.264 BP encode is supported */
VAProfile *profiles = malloc(sizeof(VAProfile)*max_num_profiles);
VAProfile *profiles = malloc(sizeof(VAProfile)*max_num_profiles);
int num_profiles;
int num_profiles;
vaQueryConfigProfiles(dpy, profiles, &profiles);
vaQueryConfigProfiles(dpy, profiles, &
num_
profiles);
/*
/*
* traverse "profiles" to locate the one that matches VAProfileH264BP
* traverse "profiles" to locate the one that matches VAProfileH264BP
*/
*/
...
@@ -1849,11 +1849,12 @@ Mostly to demonstrate program flow with no error handling ...
...
@@ -1849,11 +1849,12 @@ Mostly to demonstrate program flow with no error handling ...
/* traverse "entrypoints" to see whether VLC is there */
/* traverse "entrypoints" to see whether VLC is there */
/* Assuming finding VLC, find out the format and rate control mode for the source */
/* Assuming finding VAEntrypointEncodeES, find out the format and rate control mode for the source */
VAConfigAttrib attrib;
VAConfigAttrib attrib[2];
attrib.type = VAConfigAttribRTFormat;
attrib[0].type = VAConfigAttribRTFormat;
attrib[1].type = VAConfigAttribRateControl;
vaGetConfigAttributes(dpy, VAProfileH264Baseline, VAEntrypointVLC,
vaGetConfigAttributes(dpy, VAProfileH264Baseline, VAEntrypointVLC,
&attrib,
1
);
&attrib,
2
);
if (attrib[0].value & VA_RT_FORMAT_YUV420)
if (attrib[0].value & VA_RT_FORMAT_YUV420)
/* Found desired format, keep going */
/* Found desired format, keep going */
...
...
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