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
6900ce35
Commit
6900ce35
authored
Sep 03, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-fd.o'
parents
a5f3e054
8c14a97b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
25 deletions
+16
-25
Makefile.am
Makefile.am
+3
-8
configure.ac
configure.ac
+1
-8
libva-x11.pc.in
libva-x11.pc.in
+1
-1
src/Makefile.am
src/Makefile.am
+1
-1
src/va.c
src/va.c
+2
-6
src/x11/va_nvctrl.c
src/x11/va_nvctrl.c
+8
-1
No files found.
Makefile.am
View file @
6900ce35
...
...
@@ -30,17 +30,12 @@ if BUILD_I965_DRIVER
SUBDIRS
+=
i965_drv_video
endif
pcfiles
=
\
libva.pc
\
libva-
$(LIBVA_DISPLAY)
.pc
# libva-<display>.pc - for display-specific dependencies
libva-$(LIBVA_DISPLAY).pc
:
libva_display.pc
@
cp
$<
$@
pcfiles
=
libva.pc
pcfiles
+=
libva-x11.pc
pkgconfigdir
=
@pkgconfigdir@
pkgconfig_DATA
=
$(pcfiles)
EXTRA_DIST
=
libva.pc.in libva
_display
.pc.in
EXTRA_DIST
=
libva.pc.in libva
-x11
.pc.in
CLEANFILES
=
$(pcfiles)
configure.ac
View file @
6900ce35
...
...
@@ -28,9 +28,6 @@ m4_define([libva_micro_version], [0])
m4_define([libva_version],
[libva_major_version.libva_minor_version.libva_micro_version])
# increase this number for each API change
m4_define([libva_sds_version], [2])
# if the library source code has changed, increment revision
m4_define([libva_lt_revision], [0])
# if any interface was added/removed/changed, then inc current, reset revision
...
...
@@ -55,9 +52,6 @@ AC_SUBST(LIBVA_MINOR_VERSION)
AC_SUBST(LIBVA_MICRO_VERSION)
AC_SUBST(LIBVA_VERSION)
LIBVA_SDS_VERSION=libva_sds_version
AC_SUBST(LIBVA_SDS_VERSION)
LIBVA_LT_CURRENT=libva_lt_current
LIBVA_LT_REV=libva_lt_revision
LIBVA_LT_AGE=libva_lt_age
...
...
@@ -119,7 +113,6 @@ libvacorelib=libva.la
libvabackendlib=libva-$LIBVA_DISPLAY.la
AC_SUBST([libvacorelib])
AC_SUBST([libvabackendlib])
AC_SUBST(LIBVA_DISPLAY)
AC_OUTPUT([
Makefile
...
...
@@ -134,6 +127,6 @@ AC_OUTPUT([
i965_drv_video/shaders/render/Makefile
test/Makefile
libva.pc
libva
_display
.pc
libva
-x11
.pc
])
libva
_display
.pc.in
→
libva
-x11
.pc.in
View file @
6900ce35
...
...
@@ -2,7 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
display=
@LIBVA_DISPLAY@
display=
x11
Name: libva-${display}
Description: Userspace Video Acceleration (VA) ${display} interface
...
...
src/Makefile.am
View file @
6900ce35
...
...
@@ -39,7 +39,7 @@ libva_la_LIBADD = $(LIBVA_LIBS) -ldl
libva_x11_la_SOURCES
=
libva_x11_la_LIBADD
=
$(libvacorelib)
x11/libva_x11.la
$(LIBVA_LIBS)
$(X11_LIBS)
$(XEXT_LIBS)
$(DRM_LIBS)
$(XFIXES_LIBS)
libva_x11_la_LDFLAGS
=
$(LDADD)
libva_x11_la_DEPENDENCIES
=
$(libvacorelib)
libva_x11_la_DEPENDENCIES
=
$(libvacorelib)
x11/libva_x11.la
SUBDIRS
=
x11
...
...
src/va.c
View file @
6900ce35
...
...
@@ -40,7 +40,6 @@
#define DRIVER_INIT_FUNC "__vaDriverInit_0_31"
#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_31_sds"
#define DRIVER_EXTENSION "_drv_video.so"
...
...
@@ -170,11 +169,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
VADriverInit
init_func
;
init_func
=
(
VADriverInit
)
dlsym
(
handle
,
DRIVER_INIT_FUNC
);
if
(
!
init_func
)
{
/* Then try SDS extensions (VDPAU and XvBA backends) */
init_func
=
(
VADriverInit
)
dlsym
(
handle
,
DRIVER_INIT_FUNC_SDS
);
}
if
(
!
init_func
)
{
va_errorMessage
(
"%s has no function %s
\n
"
,
driver_path
,
DRIVER_INIT_FUNC
);
dlclose
(
handle
);
...
...
@@ -317,6 +311,8 @@ const char *vaErrorStr(VAStatus error_status)
return
"invalid parameter"
;
case
VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED
:
return
"resolution not supported"
;
case
VA_STATUS_ERROR_UNIMPLEMENTED
:
return
"the requested function is not implemented"
;
case
VA_STATUS_ERROR_UNKNOWN
:
return
"unknown libva error"
;
}
...
...
src/x11/va_nvctrl.c
View file @
6900ce35
...
...
@@ -377,9 +377,16 @@ Bool VA_NVCTRLGetClientDriverName( Display *dpy, int screen,
*
ddxDriverMajorVersion
=
v
;
if
(
*
(
str
=
end
)
==
'.'
)
{
v
=
strtoul
(
str
+
1
,
&
end
,
10
);
if
(
end
&&
end
!=
str
&&
*
end
==
'\0'
)
{
if
(
end
&&
end
!=
str
&&
(
*
end
==
'.'
||
*
end
==
'\0'
)
)
{
if
(
ddxDriverMinorVersion
)
*
ddxDriverMinorVersion
=
v
;
if
(
*
(
str
=
end
)
==
'.'
)
{
v
=
strtoul
(
str
+
1
,
&
end
,
10
);
if
(
end
&&
end
!=
str
&&
*
end
==
'\0'
)
{
if
(
ddxDriverPatchVersion
)
*
ddxDriverPatchVersion
=
v
;
}
}
}
}
}
...
...
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