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
66f9048e
Commit
66f9048e
authored
Apr 17, 2010
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
Signed-off-by:
Austin Yuan
<
shengquan.yuan@gmail.com
>
parent
c27fe40c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
va/Makefile.am
va/Makefile.am
+1
-1
va/android/drmtest.c
va/android/drmtest.c
+2
-2
va/android/va_android.c
va/android/va_android.c
+9
-2
va/va_dummy.h
va/va_dummy.h
+1
-0
va/x11/va_dricommon.h
va/x11/va_dricommon.h
+2
-1
No files found.
va/Makefile.am
View file @
66f9048e
...
@@ -57,7 +57,7 @@ endif
...
@@ -57,7 +57,7 @@ endif
libva_la_SOURCES
=
va.c va_trace.c
libva_la_SOURCES
=
va.c va_trace.c
libvaincludedir
=
${includedir}
/va
libvaincludedir
=
${includedir}
/va
libvainclude_HEADERS
=
va.h va_x11.h va_backend.h va_version.h
libvainclude_HEADERS
=
va.h va_x11.h va_backend.h va_
dummy.h va_
version.h
DISTCLEANFILES
=
\
DISTCLEANFILES
=
\
va_version.h
va_version.h
...
...
va/android/drmtest.c
View file @
66f9048e
...
@@ -107,7 +107,7 @@ int drm_open_any(void)
...
@@ -107,7 +107,7 @@ int drm_open_any(void)
if
(
fd
<
0
)
{
if
(
fd
<
0
)
{
fprintf
(
stderr
,
"failed to open any drm device
\n
"
);
fprintf
(
stderr
,
"failed to open any drm device
\n
"
);
abort
();
//
abort();
}
}
return
fd
;
return
fd
;
...
@@ -122,7 +122,7 @@ int drm_open_any_master(void)
...
@@ -122,7 +122,7 @@ int drm_open_any_master(void)
if
(
fd
<
0
)
{
if
(
fd
<
0
)
{
fprintf
(
stderr
,
"failed to open any drm device
\n
"
);
fprintf
(
stderr
,
"failed to open any drm device
\n
"
);
abort
();
//
abort();
}
}
return
fd
;
return
fd
;
...
...
va/android/va_android.c
View file @
66f9048e
...
@@ -97,8 +97,15 @@ static VAStatus va_DisplayContextGetDriverName (
...
@@ -97,8 +97,15 @@ static VAStatus va_DisplayContextGetDriverName (
memset
(
dri_state
,
0
,
sizeof
(
*
dri_state
));
memset
(
dri_state
,
0
,
sizeof
(
*
dri_state
));
dri_state
->
fd
=
drm_open_any_master
();
dri_state
->
fd
=
drm_open_any_master
();
if
(
dri_state
->
fd
<
0
)
if
(
dri_state
->
fd
<
0
)
{
fprintf
(
stderr
,
"open DRM device by udev failed, try /dev/dri/card0
\n
"
);
dri_state
->
fd
=
open
(
"/dev/dri/card0"
,
O_RDWR
);
}
if
(
dri_state
->
fd
<
0
)
{
fprintf
(
stderr
,
"can't open DRM devices
\n
"
);
return
VA_STATUS_ERROR_UNKNOWN
;
return
VA_STATUS_ERROR_UNKNOWN
;
}
if
((
driver_name_env
=
getenv
(
"LIBVA_DRIVER_NAME"
))
!=
NULL
if
((
driver_name_env
=
getenv
(
"LIBVA_DRIVER_NAME"
))
!=
NULL
&&
geteuid
()
==
getuid
())
&&
geteuid
()
==
getuid
())
...
@@ -110,7 +117,7 @@ static VAStatus va_DisplayContextGetDriverName (
...
@@ -110,7 +117,7 @@ static VAStatus va_DisplayContextGetDriverName (
*
driver_name
=
strdup
(
devices
[
0
].
driver_name
);
*
driver_name
=
strdup
(
devices
[
0
].
driver_name
);
dri_state
->
driConnectedFlag
=
VA_D
RI2
;
dri_state
->
driConnectedFlag
=
VA_D
UMMY
;
return
VA_STATUS_SUCCESS
;
return
VA_STATUS_SUCCESS
;
}
}
...
...
va/va_dummy.h
0 → 120000
View file @
66f9048e
va_android
.
h
\ No newline at end of file
va/x11/va_dricommon.h
View file @
66f9048e
...
@@ -13,7 +13,8 @@ enum
...
@@ -13,7 +13,8 @@ enum
{
{
VA_NONE
=
0
,
VA_NONE
=
0
,
VA_DRI1
=
1
,
VA_DRI1
=
1
,
VA_DRI2
=
2
VA_DRI2
=
2
,
VA_DUMMY
=
3
};
};
union
dri_buffer
union
dri_buffer
...
...
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