Commit Graph

7195 Commits

Author SHA1 Message Date
Bernhard Miklautz
96cd479c99 rdpsnd_server_handle_messages: change return type
With BOOL as return type it is not possible to differentiate between
success and "no data can be read" (when a channel read would block).

rdpsnd_server_handle_messages returns now int with the following
possible values:

-1 if no data could be read
0 error (like connection close) (formerly FALSE)
1 succsess (also if further bytes need to be read) (formerly TRUE)

Not using -1 for error cases was chosen to be compatible with the BOOL
return values used before.
2014-09-11 13:45:23 +02:00
Bernhard Miklautz
e603655048 rdpsnd server: seal stream before processing
If the stream is not sealed Stream_GetRemainingLength might return bogus
values.
2014-09-11 12:30:37 +02:00
Bernhard Miklautz
bbaecbd42d rdpsnd server: add support for clients version < 6
MS-RDPEA 2.2.2.3 states (Appendix A <6>) that quality mode PDU
should be ignored if the client version is < 6. For these clients the sound
channel got never activated since activated was only called after
reception of the quality mode PDU.

For clients < version 6 activated is now called after
CLIENT_AUDIO_VERSION_AND_FORMATS was received.
2014-09-11 12:30:37 +02:00
Martin Fleisz
c3f49c307b Merge pull request #2086 from llyzs/llyzs
transport: exit transport loop when the session is activated.
2014-09-11 11:23:57 +02:00
Vic Lee
af57056228 transport: exit transport loop when the session is activated. 2014-09-11 14:04:32 -07:00
Marc-André Moreau
c86b81f966 Merge pull request #2084 from awakecoding/egfx
Progressive, H.264, YUV420, YCbCr, Planar, Interleaved
2014-09-10 13:35:05 -04:00
Marc-André Moreau
89e5fef11f wfreerdp: fix build on Windows 2014-09-10 11:38:38 -04:00
Marc-André Moreau
4abf49caa8 Merge pull request #2080 from bmiklautz/issue/2079
xfreerdp: use _aligned_free instead of free
2014-09-10 10:49:33 -04:00
Marc-André Moreau
08373c50bc Merge branch 'master' of github.com:FreeRDP/FreeRDP into egfx 2014-09-10 10:44:48 -04:00
Marc-André Moreau
c71e4e18a1 libfreerdp-core: refactor codec context management 2014-09-10 00:42:41 -04:00
Marc-André Moreau
3d4fea7d8e libfreerdp-primitives: fix YUV420 color conversion matrix 2014-09-09 19:18:07 -04:00
Marc-André Moreau
bcf1266f51 libfreerdp-primitives: integrate H264 SSE3 color converter 2014-09-09 19:15:07 -04:00
Marc-André Moreau
666919d157 Merge branch 'egfx_new' of https://github.com/erbth/FreeRDP into egfx 2014-09-09 18:04:55 -04:00
Marc-André Moreau
5c5eedc85b libfreerdp-codec: allow error margin of 1 on YCbCr to RGB color decoding 2014-09-09 17:34:02 -04:00
Marc-André Moreau
372d4076d4 libfreerdp-codec: fix progressive decoding 2014-09-09 14:36:04 -04:00
Marc-André Moreau
1931dc546f Merge branch 'egfx' of github.com:awakecoding/FreeRDP into egfx 2014-09-09 13:45:08 -04:00
Marc-André Moreau
12ca7b3391 libfreerdp-primitives: update YCbCr test code 2014-09-09 13:44:57 -04:00
erbth
2d6a59e34b added some commits, I didn't understand my own code anymore 2014-09-09 12:34:08 +02:00
erbth
7828725413 YUV data conversion of H.264 implementation (egfx):
only convert invalid areas
SIMD SSSE3 conversion in primitives
compiling all primitives sources with optimization

and cleanup after last merge
2014-09-09 00:13:18 +02:00
Marc-André Moreau
a427a46ba5 libfreerdp-primitives: start porting tests to Windows 2014-09-08 16:24:43 -04:00
Marc-André Moreau
81454c1171 libfreerdp-primitives: add more YCbCr test coefficients 2014-09-08 15:47:03 -04:00
Marc-André Moreau
e21202ee61 libfreerdp-primitives: add per-pixel YCbCr test code 2014-09-08 15:16:03 -04:00
Marc-André Moreau
cc16ddea2d libfreerdp-primitives: update YCbCr color converter 2014-09-08 12:28:35 -04:00
erbth
cbc8b3a7e1 Merge branch 'egfx' of https://github.com/awakecoding/freerdp into egfx_new
Conflicts:
	channels/drdynvc/client/dvcman.c
	include/freerdp/codec/h264.h
	libfreerdp/codec/h264.c		after this merge h264 doesn't work anymore!!
	libfreerdp/utils/svc_plugin.c
2014-09-08 16:56:45 +02:00
erbth
fee370e4b2 YUV data conversion with SSSE3 using intrinsics 2014-09-08 16:29:01 +02:00
Pavel Tsekov
831375aa47 xfreerdp: use _aligned_free instead of free
Use _aligned_free to release memory allocated with
freerdp_image_convert().

Fixes #2075
2014-09-08 15:00:47 +02:00
Marc-André Moreau
ad9092baf9 libfreerdp-codec: cleanup and restructure planar decompressor for chroma subsampling 2014-09-07 15:40:36 -04:00
Marc-André Moreau
5b8fb70e8c libfreerdp-codec: simplify and optimize planar raw rgb decoding 2014-09-07 14:08:29 -04:00
Marc-André Moreau
bd516e04fa libfreerdp-primitives: cleanup YCoCg 2014-09-06 21:13:37 -04:00
Marc-André Moreau
3203d37bdf libfreerdp-primitives: optimize YUV420p to RGB conversion 2014-09-06 20:15:40 -04:00
Marc-André Moreau
437583aa9a libfreerdp-primitives: add YUV420 to RGB conversion 2014-09-06 17:10:27 -04:00
Marc-André Moreau
73d121dd82 Merge branch 'egfx' of github.com:awakecoding/FreeRDP into egfx 2014-09-05 20:17:05 -04:00
Marc-André Moreau
5f37e768f0 libfreerdp-codec: improve YUV to RGB color conversion 2014-09-05 20:16:56 -04:00
Marc-André Moreau
763410a66d Merge pull request #2076 from awakecoding/egfx
MS-RDPEGFX Improvements
2014-09-05 19:50:25 -04:00
Marc-André Moreau
fe75405d5c libfreerdp-codec: fix build on Windows 2014-09-05 19:38:33 -04:00
Marc-André Moreau
f14b0e0195 libfreerdp-codec: cleanup h264 decoder 2014-09-05 19:11:03 -04:00
Marc-André Moreau
033e75467b Merge branch 'master' of github.com:awakecoding/FreeRDP into egfx 2014-09-05 17:29:35 -04:00
Marc-André Moreau
66bbbf0519 libfreerdp-gdi: enable altsec frame markers 2014-09-05 16:06:19 -04:00
Marc-André Moreau
7f9d05183c Merge pull request #2054 from erbth/wfreerdp
(hopefully) proper window style setup in wfreerdp at startup
2014-09-05 15:06:04 -04:00
Marc-André Moreau
5107f07b52 Merge pull request #2057 from ptsekov/software-gdi-improvements
Adjust the X11 code to work with the new GDI color
2014-09-05 15:05:53 -04:00
Marc-André Moreau
4a80fc05c8 Merge pull request #2072 from nfedera/fix-2014-09-01-01
rdpdr/drive: fixes for hung peers & info requests
2014-09-05 14:54:05 -04:00
Marc-André Moreau
dc56ad7a0e Merge pull request #2055 from dbungert/initialize
Fix multiple cases of use of uninitialized vars
2014-09-05 14:51:43 -04:00
Marc-André Moreau
bfe04cc9a1 Merge pull request #2067 from bmiklautz/fix/clog
channels: fix possible overflow in logging
2014-09-05 14:51:09 -04:00
Marc-André Moreau
510a02ea94 libfreerdp-codec: improve progressive unit test 2014-09-04 16:52:41 -04:00
Marc-André Moreau
be60bddec0 libfreerdp-primitives: add YCbCr color converter test 2014-09-04 16:34:29 -04:00
Marc-André Moreau
ccb31efe63 libfreerdp-primitives: migrate tests to ctest 2014-09-04 15:46:20 -04:00
Marc-André Moreau
37aabc50d1 libfreerdp-codec: improve YCbCr to RGB color conversion 2014-09-04 13:09:46 -04:00
Pavel Tsekov
cdfcbeff5c X11: Convert GDI color to X11 color troughout.
* client/X11/xf_client.c (xf_pre_connect): Set the field `colormap' of
`struct xfContext' to the default colormap.
* client/X11/xfreerdp.h (xf_gdi_get_color): Declare new external function.
* client/X11/xf_gdi.c (xf_gdi_get_color): Define new external function.
Use xf_gdi_get_color() to get the appropriate X color index from the GDI
color representation.
* client/X11/xf_graphics.c: Likewise.
2014-09-04 12:44:03 +03:00
Marc-André Moreau
fd7b9669a5 libfreerdp-codec: improve progressive unit tests 2014-09-03 18:47:02 -04:00
Marc-André Moreau
320b1d35ed libwinpr-utils: centralize bitmap utils 2014-09-03 16:20:50 -04:00