Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
91261e52
Commit
91261e52
authored
Dec 29, 2014
by
Christian Beier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #49 from maxnet/master
Fix libva related compile errors
parents
53becab9
aaee22aa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
gtkvncviewer.c
client_examples/gtkvncviewer.c
+1
-1
configure.ac
configure.ac
+2
-3
h264.c
libvncclient/h264.c
+4
-0
zrle.c
libvncclient/zrle.c
+1
-1
No files found.
client_examples/gtkvncviewer.c
View file @
91261e52
...
@@ -588,7 +588,7 @@ static void GtkDefaultLog (const char *format, ...)
...
@@ -588,7 +588,7 @@ static void GtkDefaultLog (const char *format, ...)
time
(
&
log_clock
);
time
(
&
log_clock
);
strftime
(
buf
,
255
,
"%d/%m/%Y %X "
,
localtime
(
&
log_clock
));
strftime
(
buf
,
255
,
"%d/%m/%Y %X "
,
localtime
(
&
log_clock
));
fprintf
(
stdout
,
buf
);
fprintf
(
stdout
,
"%s"
,
buf
);
vfprintf
(
stdout
,
format
,
args
);
vfprintf
(
stdout
,
format
,
args
);
fflush
(
stdout
);
fflush
(
stdout
);
...
...
configure.ac
View file @
91261e52
...
@@ -150,12 +150,11 @@ AM_CONDITIONAL(HAVE_LIBSSL, test ! -z "$SSL_LIBS")
...
@@ -150,12 +150,11 @@ AM_CONDITIONAL(HAVE_LIBSSL, test ! -z "$SSL_LIBS")
# See if we want libva support
# See if we want libva support
# TODO: check if library actually exists
AH_TEMPLATE(CONFIG_LIBVA, [Build libva support])
AH_TEMPLATE(CONFIG_LIBVA, [Build libva support])
AC_ARG_WITH(libva,
AC_ARG_WITH(libva,
[ --with
-libva build libva support
],,)
[ --with
out-libva disable support for libva
],,)
if test "x$with_libva" != "xno"; then
if test "x$with_libva" != "xno"; then
AC_CHECK_LIB(va
, vaInitialize
,
AC_CHECK_LIB(va
-x11, vaGetDisplay
,
VA_LIBS="-lva -lva-x11"
VA_LIBS="-lva -lva-x11"
[AC_DEFINE(CONFIG_LIBVA) CONFIG_LIBVA="true"], ,)
[AC_DEFINE(CONFIG_LIBVA) CONFIG_LIBVA="true"], ,)
fi
fi
...
...
libvncclient/h264.c
View file @
91261e52
...
@@ -20,6 +20,10 @@
...
@@ -20,6 +20,10 @@
#ifdef LIBVNCSERVER_CONFIG_LIBVA
#ifdef LIBVNCSERVER_CONFIG_LIBVA
#include <X11/Xlib.h>
#include <X11/Xlib.h>
#include <va/va_version.h>
#if VA_CHECK_VERSION(0,34,0)
#include <va/va_compat.h>
#endif
#include <va/va_x11.h>
#include <va/va_x11.h>
enum
_slice_types
{
enum
_slice_types
{
...
...
libvncclient/zrle.c
View file @
91261e52
...
@@ -198,7 +198,7 @@ HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh)
...
@@ -198,7 +198,7 @@ HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh)
for
(
i
=
0
;
i
<
rw
;
i
+=
rfbZRLETileWidth
)
{
for
(
i
=
0
;
i
<
rw
;
i
+=
rfbZRLETileWidth
)
{
int
subWidth
=
(
i
+
rfbZRLETileWidth
>
rw
)
?
rw
-
i
:
rfbZRLETileWidth
;
int
subWidth
=
(
i
+
rfbZRLETileWidth
>
rw
)
?
rw
-
i
:
rfbZRLETileWidth
;
int
subHeight
=
(
j
+
rfbZRLETileHeight
>
rh
)
?
rh
-
j
:
rfbZRLETileHeight
;
int
subHeight
=
(
j
+
rfbZRLETileHeight
>
rh
)
?
rh
-
j
:
rfbZRLETileHeight
;
int
result
=
HandleZRLETile
(
client
,
buf
,
remaining
,
rx
+
i
,
ry
+
j
,
subWidth
,
subHeight
);
int
result
=
HandleZRLETile
(
client
,
(
uint8_t
*
)
buf
,
remaining
,
rx
+
i
,
ry
+
j
,
subWidth
,
subHeight
);
if
(
result
<
0
)
{
if
(
result
<
0
)
{
rfbClientLog
(
"ZRLE decoding failed (%d)
\n
"
,
result
);
rfbClientLog
(
"ZRLE decoding failed (%d)
\n
"
,
result
);
...
...
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