Armin Novak
aff9a22367
Fixed obsolete TAG definitions and use.
2018-02-07 13:26:39 +01:00
Armin Novak
77d0c77ed9
Fix OpenH264 trace logging, set up context first
2018-02-07 13:26:39 +01:00
Armin Novak
7adc384d9a
Using dynamic logger for GFX-H264 backend.
2018-02-07 13:26:39 +01:00
Bernhard Miklautz
db8519fd8a
Merge pull request #4397 from SriRamanujam/vaapi
...
Use libavcodec's VA-API to accelerate H.264 decoding.
2018-02-07 12:56:31 +01:00
Sri Ramanujam
26eee4aecf
TO BE SQUASHED: use hw_frames_ctx to set up vaapi on older versions of libavcodec
2018-02-02 15:49:59 -05:00
Sri Ramanujam
edf9c52c6b
TO BE SQUASHED: initial changes from code review
2018-02-02 14:30:31 -05:00
Armin Novak
bc33fa8b1b
Tuned FFMPEG encoder settings.
...
Using preset medium with zerolatency.
2018-02-02 13:59:08 +01:00
Armin Novak
9f57e07a23
Align YUV buffer strides and height.
2018-02-02 10:39:33 +01:00
Armin Novak
3b70d1178b
Added AVC444 chroma support to shadow server.
2018-02-02 10:39:33 +01:00
Sri Ramanujam
bedc1ac4c6
Use libavcodec's VA-API decoding.
...
Leverages libavcodec's hw decode support to provide VA-API based
hardware decoding. Depends on the local build of ffmpeg having hardware
VA-API support compiled in and the appropriate libva drivers and
libraries installed.
2018-02-02 02:31:23 -05:00
David Fort
e1cc601963
Merge pull request #4323 from akallabeth/scanbuild_fixes
...
Scanbuild and other warnings fixed
2018-01-08 11:16:21 +01:00
akallabeth
900ec855de
Merge pull request #4334 from h3xx/fix-ffmpeg-support
...
Fix building against current ffmpeg
2018-01-08 09:21:53 +01:00
akallabeth
4077d55a6c
Merge pull request #4332 from hardening/xrandr_and_fixes
...
Xrandr and fixes
2018-01-08 09:20:56 +01:00
Mike Gilbert
51cdd8df19
codec/nsc_sse2: add runtime CPU feature check
2017-12-29 14:06:49 -05:00
Dan Church
ed571e74a5
Provide support for older versions of libavcodec
...
My method was to find the LIBAVUTIL_VERSION_* at the commit where the
updated AV_ prefixed constants became available, add one "micro" version
to it, then if it's not at least that version, provide the unprefixed
constant. It just so happens that the same commit introduced all
the AV_* constants.
2017-12-29 11:13:03 -06:00
Dan Church
78df32c77f
Fix future ffmpeg support
...
The AV_ prefixed constants have been available since
ffmpeg@def97856de6021965db86c25a732d78689bd6bb0 (2015-07-07), or version
2.8.
The non-prefixed constants are set to be removed in the next ffmpeg
release, and were removed in
ffmpeg@302554835e39b79b977ed60c9afe81b44590dfef (2016-12-05).
2017-12-28 09:41:45 -06:00
David Fort
5e2d6ea029
zgfx: add a check
2017-12-22 17:55:48 +01:00
Armin Novak
50a0968c6a
Removed unused variables.
2017-12-21 11:29:24 +01:00
Martin Fleisz
bfe8359b5b
Merge pull request #4239 from akallabeth/test_memleak_fixes
...
Test memleak fixes
2017-12-20 12:38:38 +01:00
Martin Fleisz
5cec90c781
Merge pull request #4305 from hardening/xrandr_fix
...
Fix XRandr for old systems and MacOSX
2017-12-13 17:24:41 +01:00
Martin Fleisz
f6b8a6eaa2
Merge pull request #4276 from akallabeth/big_endian_more
...
Big endian fixes
2017-12-13 09:58:14 +01:00
Armin Novak
7305828122
Fix #4239 : Various memory leaks
...
* Fixed all tests, now can be run with -DWITH_ADDRESS_SANITIZER=ON compiled.
* Enabled address sanitizer for nightly builds.
2017-12-12 11:40:48 +01:00
David Fort
3b670703fb
Merge pull request #4277 from akallabeth/mac_server
...
Mac fixes
2017-12-12 10:40:14 +01:00
David Fort
41823080f9
Fix users of Stream_GetPosition() that returns size_t
2017-12-11 22:38:58 +01:00
Bernhard Miklautz
aa47c8ebe8
Merge pull request #4268 from akallabeth/big_endian_fixes
...
Fix ZGfx decoder on big endian
2017-11-24 15:44:15 +01:00
Armin Novak
57958cb178
Fixed #3810 : Renamed color functions
2017-11-24 13:21:43 +01:00
Armin Novak
13e0d56574
Fixed endianess issues with ncrush.
2017-11-24 12:03:46 +01:00
Armin Novak
dbdc4f4933
Fixed endianess issues of zgfx decoder.
2017-11-23 09:32:29 +01:00
Armin Novak
b1d2053ad1
Fix #4101 : Rfx decode tile width.
2017-11-21 11:08:16 +01:00
Armin Novak
536ffbc31f
Fixed missing function return check.
2017-11-15 15:56:25 +01:00
Armin Novak
dbe418062f
Fixed missing parameter checks.
2017-11-15 15:56:25 +01:00
Armin Novak
7fd5b6f4a2
Fixed warnings and test return values.
2017-11-15 15:54:38 +01:00
Armin Novak
e4873fe2c4
Added encoder path for libavcodec versions <1.0
2017-11-14 09:15:43 +01:00
Armin Novak
5cd89a3bc5
Added compat define for missing format.
2017-11-13 11:28:43 +01:00
Sri Ramanujam
fef3865ff2
Fallback #ifdefs for older versions of libavcodec
2017-11-12 17:31:22 -05:00
Sri Ramanujam
66c925c9e4
Fix libavcodec encoding errors and set tunables.
2017-11-09 11:39:54 -05:00
KOVACS Krisztian
d396258866
codec/nsc: fix memory corruption in case of chroma subsampling
...
For odd number of rows, the memory copy operation was broken: after exiting
the loop, yplane points to the end of the last row data, and thus (yplane +
rw) points *after* the end of the last row.
2017-11-09 14:38:46 +01:00
Armin Novak
5dc8763b2c
Fixed compilation errors with old FFMPEG versions.
2017-11-08 12:55:11 +01:00
David Fort
504b771686
Merge pull request #4053 from akallabeth/ffmpeg_encoder
...
Implemented FFMPEG based encoder.
2017-11-06 11:25:48 +01:00
Armin Novak
5d96fc9b14
Removed unused function pointer
...
The function was breaking windows 7 compatibility.
2017-10-18 09:52:41 +02:00
Norbert Federa
456ce96618
codec/h264: fix potential segfault and mf_init
2017-10-17 19:28:54 +02:00
Bernhard Miklautz
52fbfb7b12
fix clang warnings, directly include wtypes.h ( #4097 )
...
* build: clang use -Wno-unused-command-line-argument
With clang 5.0 builds are quite noisy otherwise.
* Directly include wtypes.h
Directly include winpr/wtypes.h where _fseeki64 or _ftelli64 is used.
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: parentheses-equality
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: tautological-compare
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning:
incompatible pointer types passing 'size_t *' (aka 'unsigned
long *') to parameter of type 'UINT32 *' (aka 'unsigned int *')
[-Wincompatible-pointer-types]
2017-08-29 09:09:38 +02:00
Armin Novak
c3d4b7d262
fseeko and ftello for 64bit file support.
2017-08-14 08:42:49 +02:00
Armin Novak
a63b2c5a4a
Use encoder context for old libavcodec.
2017-08-02 08:53:03 +02:00
Armin Novak
3501f82e95
Implemented FFMPEG based encoder.
2017-07-20 13:27:09 +02:00
Armin Novak
e8b9e4f512
Fixed double free.
2017-07-20 09:35:41 +02:00
Armin Novak
8b9e3fa51e
Fixed use of reserved keywords for include guards.
2017-07-20 09:35:41 +02:00
Armin Novak
0490aeb018
Fixed clang malloc integer overflow warnings.
2017-07-20 09:29:48 +02:00
Armin Novak
88fa131248
Fixed variable assignment.
2017-07-19 11:36:28 +02:00
Armin Novak
42fdb0b8d3
Reordered backends with regard to feature completeness.
2017-07-18 07:46:51 +02:00
Armin Novak
96d53933d2
Deactivated all H264 related code paths.
2017-07-17 10:39:08 +02:00
Armin Novak
2614251e83
Removed H264 dummy, did not work (crash on use)
2017-07-17 09:28:08 +02:00
Armin Novak
5764d5a78a
Disable GFX H264 if no backend compiled in.
2017-07-17 09:25:21 +02:00
David Fort
14969adaec
Fix openh264 backend compilation
2017-06-20 10:01:50 +02:00
David Fort
dcbb61e3b3
Fix variable declaration and win32 compilation
2017-06-19 23:52:31 +02:00
David Fort
0308123592
Split h264 subsystems in different files
2017-06-14 16:04:54 +02:00
Armin Novak
8adc2ba201
Align width and height for AVC444 decoding to 16.
2017-06-01 13:01:23 +02:00
David Fort
17a4e95a5b
Drop some annoying warning
...
Probably that some unused functions should be removed, but at least it makes
it compile with no warnings.
2017-05-12 13:54:16 +02:00
akallabeth
8df8cc6fb5
Merge pull request #3937 from hardening/h264_multimon
...
Fix h264 in multimon scenario
2017-05-09 11:16:12 +02:00
Martin Fleisz
16111e7e7f
codec: Fix multi-threading support for OpenH264 1.6 or later
2017-05-05 12:37:27 +02:00
David Fort
b2ee8a19ab
Fixed progressive code style and added error handling
2017-05-02 18:39:33 +02:00
David Fort
40baadb471
Merge pull request #3911 from akallabeth/avc444_v2
...
Added AVC444v2 client support.
2017-05-02 16:02:21 +02:00
Armin Novak
2da8dcf8ed
Fixed MF H264 buffer allocation.
2017-04-20 12:35:51 +02:00
Armin Novak
a2167d5417
Added surface width and heigth for YUV combine.
2017-04-18 14:12:40 +02:00
Armin Novak
b0d3cfda4d
Added AVC444v2 client support.
2017-04-11 11:29:14 +02:00
Norbert Federa
1739f27b82
rdpegfx: fix RemoteFX Progressive Codec decoding
...
Since this comes via a Wire-To-Surface-2 PDU we don't have
any left/top/right/bottom destination values.
The current code has always dealt with zeros when updating the
invalid region which resulted in black rectangles.
The correct update region is determined during decompression.
2017-04-03 18:59:58 +02:00
Armin Novak
09d43a66f4
Fixed tests and dead store warnings.
2017-03-28 16:49:56 +02:00
Norbert Federa
fa2086686b
some performance fixes
...
- draw only the updated region in the gdi and x11 surface bits implementation
- don't repeatedly call IsProcessorFeaturePresentEx in rfx rlgr decoder
- fix ugly and unaligned profiler print layout and remove an unnecessary value
2017-03-27 20:14:13 +02:00
Armin Novak
e1a709cea7
Ignore AND mask for 32bpp cursor. #3863
2017-03-17 09:45:32 +01:00
Armin Novak
b2c29158be
Scanbuild warning, argument checks and leak fixes.
...
* Added Stream_GetRemainingCapacity to check remaining stream size
before writes.
* Fixed shadow server memory leak.
* Fixed lots of scanbuild warnings
* Added missing argument checks in many functions
* Added missing static function declarations
2017-03-02 18:13:43 +01:00
Armin Novak
e9b5d78673
Fixed scanbuild warnings.
2017-02-20 14:28:33 +01:00
Armin Novak
c0671b49b4
Fixed scanbuild warnings.
2017-02-20 14:18:18 +01:00
Armin Novak
844919defe
Fixed scanbuild issues.
2017-02-20 14:15:25 +01:00
Armin Novak
c249705085
Fixed scanbuild warnings.
2017-02-20 13:45:19 +01:00
Armin Novak
5755cb72a1
Fixed crash on h264 context cleanup (windows).
2017-02-17 11:40:27 +01:00
Armin Novak
198bc6d9e1
Fixed compiler warnings.
2017-02-16 13:17:49 +01:00
Armin Novak
01d24264d2
Using aligned RFX buffers.
2017-02-15 12:37:37 +01:00
Armin Novak
f24b112514
Refactored AVC444 decoding to single YUV420 buffer
...
Since not all H264 decoders support multiple YUV420 output
buffers process H264 decoding and YUV to RGB conversion
sequentially to avoid overriding the input data.
2017-02-15 09:28:10 +01:00
Armin Novak
2c99c17078
Fixed libavcodec issues.
2017-02-14 16:41:07 +01:00
Armin Novak
f324b0ef9c
Use aligned malloc/free for GFX surfaces/buffers
2017-02-14 16:02:11 +01:00
Armin Novak
94b9fef049
Updated LIBAVCODEC support for H264 decoder.
2017-02-14 10:34:27 +01:00
Martin Fleisz
e97c4b57a4
Merge pull request #3754 from akallabeth/asm3
...
NEON and SSSE3 decoder optimisations
2017-02-14 09:23:21 +01:00
Armin Novak
e3ed91ea7a
Optimized clear codec line copy.
2017-02-13 17:29:29 +01:00
Armin Novak
3644d8dfbd
Fixed YUV444ToRGB, do not discard chroma frame.
2017-02-13 16:11:11 +01:00
Armin Novak
85d8157b41
Limit RFX update region to screen.
2017-02-13 15:26:21 +01:00
Armin Novak
57db52237c
Fixed AVC444 luma/chroma checks.
2017-02-10 08:31:32 +01:00
Armin Novak
ef0a7cf5d1
Fixed missing chroma data for AVC444
2017-02-09 19:55:40 +01:00
Armin Novak
7ef90497c7
Respect width and height in rfx_process_message
2017-02-09 12:36:54 +01:00
Norbert Federa
6001cb710d
Merge pull request #3717 from akallabeth/prim_fixes
...
Fixed primitives.
2017-02-01 11:11:27 +01:00
Armin Novak
16de1bca2b
Removed unused profiler.
2017-01-31 14:18:28 +01:00
Armin Novak
dbfbd5b086
Fixed argument order of yCbCrToRGB_16s8u_P3AC4R
2017-01-31 10:49:59 +01:00
Armin Novak
a926c73641
Fixed compiler warning.
2017-01-31 10:05:45 +01:00
David Fort
a6dbc32cf3
Added missing const modifiers for source pointers in codecs
2017-01-27 11:23:08 +01:00
Armin Novak
d39f4a4d3d
Removed unused functions.
2017-01-24 12:54:02 +01:00
Armin Novak
b04b8303e6
Using faster transformation for RFX decoder.
2017-01-24 11:37:24 +01:00
Armin Novak
b233afc076
Fixed uninitialized variable warning.
2017-01-23 13:27:30 +01:00
Armin Novak
00c32f62d3
Fixed alpha channel for color formats without.
2017-01-23 11:32:26 +01:00
Armin Novak
6188a12b37
Fixed planar with if local framebuffer is 16bpp
2017-01-23 11:32:25 +01:00
Armin Novak
34eb0e5d9d
Progressive structs to private header for tests.
2017-01-18 16:41:02 +01:00
Armin Novak
d9810dd7a4
Progressive struct now opaque.
2017-01-18 16:16:29 +01:00