Armin Novak
ab15e34032
Refactored freerdp_dsp_resample, checks now done internally.
2018-11-14 13:27:20 +01:00
Armin Novak
60025dde8e
Fixed unused function warnings when FFMPEG backend is used.
2018-11-14 13:27:20 +01:00
Armin Novak
e8e4800c5e
Added resampling to freerdp_dsp_encode.
2018-11-14 13:27:20 +01:00
Bernhard Miklautz
c5c1bac31a
Merge pull request #4960 from akallabeth/interleaved_fix
...
Fixed #4954 : Check destination buffer bounds.
2018-11-09 12:25:55 +00:00
Armin Novak
fff2454ae6
Make VS2010 happy, reworked UNROLL defines.
2018-11-09 12:18:51 +01:00
Armin Novak
6e61dd9d9f
Unroll bBits loops as well.
2018-11-09 12:12:19 +01:00
Armin Novak
7e932bbfa2
Readded loop unrolling.
2018-11-09 11:32:28 +01:00
Armin Novak
cf8bc72dc4
Fixed profiler naming in tests.
2018-11-08 17:43:50 +01:00
Armin Novak
9e2c203771
Fixed various issues with freerdp_bitmap_compress and interleaved_compress
2018-11-08 17:21:28 +01:00
Armin Novak
c0c1d064be
Added a unit test for interleaved codec compression.
2018-11-08 17:20:31 +01:00
Armin Novak
a544776bd8
Simplified code, moved bounds check out of loops.
2018-11-07 13:10:23 +01:00
Armin Novak
10d3ee131e
Fixed #4954 : Check destination buffer bounds.
2018-11-07 12:18:08 +01:00
Bernhard Miklautz
37f8181735
fix [libfreerdp/codec]: heap buffer overflow in TestFreeRDPCodecClear
...
The examples and the allocated buffers assume that the destination
starts with x 0 and y 0 and not 1/1.
2018-11-05 15:43:12 +01:00
Norbert Federa
0572572eb9
fix issue with fnObjectFree and related casts
...
- remove unnecessary/dangerous OBJECT_xxx function-style casts
- fix -Wstrict-prototypes issue with OBJECT_NEW_FN definition
2018-10-19 11:30:01 +02:00
Martin Fleisz
e46d1d95ff
Merge pull request #4926 from akallabeth/primary_order_checks
...
Order data validation and correction
2018-10-17 16:02:28 +02:00
Armin Novak
bbcba568f4
Added parameter checks.
2018-10-16 17:23:24 +02:00
Armin Novak
d2e08c0aa8
Fixed missing argument check.
2018-10-16 17:14:56 +02:00
Armin Novak
91107beb67
Separate alpha handling for planar codec
...
If the destination does not support an alpha channel ignore it
when decoding and prevent data to be copied unnecessarily
2018-10-16 12:17:25 +02:00
Armin Novak
a29bc16af4
Siplified planar alpha / non alpha paths
2018-10-16 10:05:33 +02:00
Martin Fleisz
00af869cd3
Merge pull request #4889 from akallabeth/shadow_server_audin_refactor
...
Shadow server audin refactor
2018-10-08 12:56:09 +02:00
akallabeth
9cc4f844c4
Merge pull request #4912 from akallabeth/swresample
...
Swresample support with avresample fallback
2018-10-05 11:00:13 +02:00
Armin Novak
fbe95209e7
Readded AVRESAMPLE support as fallback.
2018-10-04 09:16:34 +02:00
Vladimir Lomov
41cc2b63cb
Move from libavresample to libswresample
...
- The libavresample as part of FFmpeg was declared as deprecated in
favor of libswresample on Dec 25 2017 in commit "lavr: deprecate the
entire library"
(c29038f304
;
c29038f304
).
As major Linux distributions (RPM, DEB and Archlinux) provide now
FFmpeg and libswresample as its part use the libswresample instead of
libavresample.
Signed-off-by: Vladimir Lomov <vladimir@smoon7.vl-lomov.ru>
2018-10-04 08:35:04 +02:00
Armin Novak
a8a6accc15
Fixed compiler warnings.
2018-10-03 15:16:59 +02:00
Armin Novak
106dde9571
Working mic redirection for shadow server.
2018-09-26 12:49:09 +02:00
Armin Novak
28efbbc01f
Refactored audio_format* functions.
2018-09-26 12:49:09 +02:00
Armin Novak
7e8d128fc6
Fixed clear codec reset and test cases.
2018-09-19 14:18:29 +02:00
Armin Novak
712a39898c
Fixed buffer size for clear_decompress test.
2018-09-19 14:18:29 +02:00
Armin Novak
13e59b5d6a
Fix #4868 : Allow empty bands data.
2018-09-19 14:18:29 +02:00
Armin Novak
4c491b5a18
Fixed #4857 : Properly reset clear codec.
2018-09-18 09:59:49 +02:00
Armin Novak
6d3beabd54
Removed unused variables in tests.
2018-08-24 13:40:36 +02:00
Armin Novak
8d473af4fb
Fixed missing type cast.
2018-08-24 13:40:36 +02:00
Armin Novak
bff49a9bd0
Fixed invalid argument warnings.
2018-08-24 13:40:36 +02:00
Ondrej Holy
79d0725a80
codec/planar: Fix leak found by covscan
...
The patch changes API of functions instead of fixing unused and broken code.
leaked_storage: Returning without freeing "outPlane" leaks the storage that it points to.
2018-08-22 14:34:02 +02:00
Ondrej Holy
36960e97a4
codec/nsc: Fix leak found by covscan
...
leaked_storage: Variable "s" going out of scope leaks the storage it points to.
2018-08-22 13:35:43 +02:00
Armin Novak
2a3a66b18b
Fixed expression ambiguity
2018-08-01 12:56:18 +02:00
Armin Novak
3b187ef321
Code Cleanup
2018-07-19 16:21:03 +02:00
Armin Novak
a984dd7f56
Updated experimental list.
2018-07-19 15:38:44 +02:00
Armin Novak
d40daedb9c
Fixed FFMPEG backend: Do not drop samples for package alignment.
2018-07-19 15:17:54 +02:00
Armin Novak
c192c17c8c
Fixed mixed declaration.
2018-07-19 12:20:14 +02:00
Armin Novak
00b073adda
Fixed DVI_ADPCM mapping.
2018-07-18 12:33:39 +02:00
Armin Novak
6029a411e2
Fixed ima_adpcm encoder bug.
2018-07-17 12:57:57 +02:00
Armin Novak
7260a4fd8f
Fixed override of stream data in dsp_encode methods.
2018-07-17 10:30:35 +02:00
Armin Novak
2d69e369ba
Fixed #4693 : Fix integer underflow in encoder loop.
2018-06-04 10:14:29 +02:00
Armin Novak
ae765430e9
Fixed #4647 : nsc_context_free must not access possibly uninitialized fields.
2018-05-15 13:41:45 +02:00
David Fort
456b0e8934
Merge pull request #4453 from akallabeth/sound_channel_refactor
...
Sound channel refactoring
2018-05-03 11:56:58 +02:00
Armin Novak
bda925c52d
Added libavcodec version check for dsp-ffmpeg component.
...
Abort compilation with a specific error if the libavcodec module
detected is too old.
2018-04-27 12:27:16 +02:00
Armin Novak
3f712cab70
Fixed formatting of changed files.
2018-04-05 13:14:16 +02:00
Armin Novak
4d45bd6661
Added CMake option WITH_DSP_EXPERIMENTAL
...
Some encoder/decoder formats are currently not really working or
have not been thouroughly tested. To allow fearless hackers
fine tuning this flag is added to easily enable/disable these formats.
2018-04-05 13:14:16 +02:00
Armin Novak
f89c1857b9
Rewrite of sound and microphone channels
...
The sound and microphone redirection channels (and in part TSMF)
did not properly decouple encoding/decoding from the backends used
to play/record sound.
Encapsulating encoding/decoding in rewritten freerdp_dsp_* functions
with variable backends, simplifying alsa/oss/pulse/... audio backends.
2018-04-05 13:14:16 +02:00