pax_global_header 0000666 0000000 0000000 00000000064 14346134245 0014520 g ustar 00root root 0000000 0000000 52 comment=1e4a20f8112aca1382dc6495300fdd76168c9055
mediastreamer2-5.2.0+dfsg/ 0000775 0000000 0000000 00000000000 14346134245 0015347 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/.clang-format 0000664 0000000 0000000 00000003672 14346134245 0017732 0 ustar 00root root 0000000 0000000 ---
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IndentCaseLabels: false
IndentFunctionDeclarationAfterType: false
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Always
...
mediastreamer2-5.2.0+dfsg/.cproject 0000664 0000000 0000000 00000014776 14346134245 0017200 0 ustar 00root root 0000000 0000000
make
all
true
true
true
mediastreamer2-5.2.0+dfsg/.git-pre-commit 0000775 0000000 0000000 00000004350 14346134245 0020212 0 ustar 00root root 0000000 0000000 #!/bin/bash
# This hook purpose is to keep coding style consistent between all developers
# It is automatically installed in .git/hooks folder by cmake on first run.
# From https://github.com/tatsuhiro-t/nghttp2/blob/master/pre-commit
function invalid-format-detected {
cat git-clang-format.diff
echo "*****************"
echo "$0: Invalid coding style detected (see git-clang-format.diff for issues). Please correct it using one of the following:"
echo "1) Apply patch located at git-clang-format.diff using:"
echo " cd $(git rev-parse --show-toplevel) && $1"
echo "2) Use clang-format to correctly format source code using:"
echo " $2"
echo "3) Reformat these lines manually."
echo "*** Aborting commit.***"
exit 1
}
function git-clang-format-diffing {
format_diff=$(which git-clang-format)
format_diff_options="--style=file"
#only diffing commited files, ignored staged one
$format_diff $format_diff_options --diff $(git --no-pager diff --cached --name-status | grep -v '^D' | cut -f2) > git-clang-format.diff
if ! grep -q -E '(no modified files to format|clang-format did not modify any files)' git-clang-format.diff; then
invalid-format-detected "git apply git-clang-format.diff" "clang-format $format_diff_options -i "
fi
}
function clang-format-diff-diffing {
format_diff=$(find /usr/bin/ -name 'clang-format-diff*' -type f | tail -n1)
format_diff_options="-style file"
git diff-index --cached --diff-filter=ACMR -p HEAD -- | $format_diff $format_diff_options -p1 > git-clang-format.diff
if [ -s git-clang-format.diff ]; then
invalid-format-detected "patch -p0 < git-clang-format.diff" "${format_diff/-diff/} $format_diff_options -i "
fi
}
set -e
if which git-clang-format &>/dev/null; then
git-clang-format-diffing $@
elif [ ! -z "$(find /usr/bin/ /usr/local/bin/ /opt/bin/ -name 'clang-format-diff*' -type f 2>/dev/null)" ]; then
# Warning! We need at least version 1.6...
clang-format-diff-diffing $@
else
echo "$0: Please install clang-format (coding style checker) - could not find git-clang-format nor clang-format-diff in PATH. Skipping code verification..."
exit 0
fi
mediastreamer2-5.2.0+dfsg/.github/ 0000775 0000000 0000000 00000000000 14346134245 0016707 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14346134245 0021072 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/.github/ISSUE_TEMPLATE/bug_report.yml 0000664 0000000 0000000 00000013472 14346134245 0023774 0 ustar 00root root 0000000 0000000 ---
name: Bug report
description: File a bug/issue
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: '# Reminder'
- type: markdown
attributes:
value: |
The responses are provided by the **community** and, on a **best effort** basis, by some Belledonne Communications SARL engineers working on Linphone and its related projects.
The community means any people all around the world simply willing to participate to the discussions.
Belledonne Communications SARL **disclaims any WARRANTY** that the content posted on github issues or mailing lists is technically correct.
Responses from Belledonne Communications SARL engineers shall be considered as individual contributions and shall not be seen as Belledonne Communications's official point of view or commitment.
The Github issue tracker must be seen as a place for **collaboration**. Issues submitted should be of general interest, in the goal of improving the software. Consider that a **well documented** issue (with precise reproduction procedure, logs, stack trace if relevant, possibly a corrective patch) has a higher chance to receive interest and feedback from community members and Belledonne Communications' engineers.
__Issues poorly documented, with no facts, or asking for debugging assistance for a custom app using Linphone's libraries, or for a modified version of Linphone are unlikely to receive any kind of response.__
People using Linphone or its related projects within the scope of their company job are invited to contact [Belledonne Communications](https://linphone.org/contact#content-bottom3) in order to obtain commercial support.
- type: markdown
attributes:
value: |
# Well ordered issues are treated issues
**In our apps, the [Linphone-SDK](https://github.com/BelledonneCommunications/linphone-sdk) is used.**
Please report your issue here **ONLY** if you are sure that the origin of the error is in this module.
Otherwise, open an issue in the repository of the app you are using or in the Linphone-SDK, and we will move it to the related module.
- type: markdown
attributes:
value: |
# Useful links
[Linphone.org](https://linphone.org)
[Linphone commercial contact](https://linphone.org/contact#content-bottom3)
Linphone Vulnerability/Security contact: vulnerabilities@linphone.org
[Contributor agreement (to sign and to return to sales@belledonne-communications.com for a pull request)](https://linphone.org/sites/default/files/bc-contributor-agreement_0.pdf)
- type: textarea
attributes:
label: |
Context
description: |
- For which purpose do you use the project ?
- With which software/hardware it is integrated ?
- Did you use sip.linphone.org or a different SIP service (in this case specify which one and which version) ?
value: |
I use this project in a custom app running on Linux with the sip.linphone.org service for my company. I want to do a simple call between an Android phone and a Linux client. There is an error with a method of this project and I'm sure that I followed the documentation and double checked before posting.
validations:
required: true
- type: textarea
attributes:
label: General information
description: |
Complete it multiple time if there are multiple devices involved.
Please note that the issue has more chances to be read if you report a bug seen in the latest version of the module.
Ex:
- Device: [e.g. Samsung Note 20 Ultra]
- OS: [e.g. Android 11]
- Version of the App [e.g. 4.3.1]
- Version of the SDK [e.g 4.4.16]
value: |
- Device:
- OS:
- Version of the App:
- Version of the SDK:
validations:
required: true
- type: textarea
attributes:
label: Expected behaviour
description: "A clear and concise description of what you expected to happen."
value: |
I wanted to do a simple call with the Linux client calling the Android phone. However, the phone doesn't ring when it is asleep.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
description: "Steps to reproduce the behavior:"
value: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
attributes:
label: 'Additional context'
value: Add any other context about the problem here.
- type: markdown
attributes:
value: |
# Logs
## Module logs
Enable debug logs in advanced section of the settings, restart the app, reproduce the issue and then go to About page, click on "Send logs" and copy/paste the link here.
If you doesn't have such an option, just provide the logs in attachments.
- type: input
attributes:
label: 'SDK logs URL'
- type: markdown
attributes:
value: |
## Module crash logs
In case of a crash related to this module, please also provide the backtrace of the crash in attachments using adb logcat (Android) or the device console (iOS).
For desktop versions, you can get the backtrace from a core dump.
- type: markdown
attributes:
value: |
# Screenshots
Please add screenshots in attachments to help us to understand your problem.
- type: markdown
attributes:
value: |
# Pcap file
If this is a network issue, join a pcap file of your attempt in attachments (done with Wireshark or TCPDump, for example)
mediastreamer2-5.2.0+dfsg/.gitignore 0000664 0000000 0000000 00000001362 14346134245 0017341 0 ustar 00root root 0000000 0000000 INSTALL
install-sh
aclocal.m4
*~
configure
Makefile.in
Makefile
intltool.m4
libtool.m4
lt*.m4
build-aux
autom4te.cache
*.o
*.lo
*.la
config.log
config.guess
config.sub
config.status
.deps
.libs
libtool
ltmain.sh
depcomp
mediastreamer-config.h
mediastreamer-config.h.in
mediastreamer.pc
mediastreamer2.spec
missing
stamp-h1
*.gmo
java/bin/
java/libs/
java/gen/
libs
*.dirstamp
*.kdev4
tools/test_x11window
tools/tones
tester/mediastreamer2_tester
src/gitversion.h
help/doc/
tester/recorded_hello8000-1s.wav
tester/recorded_hello16000-1s.wav
*.vcxproj.*
tools/msaudiocmp
tester/dtmfgen_file.raw
tester/sounds/recorded_hello16000-1s.wav
tools/pcap_playback
git-clang-format.diff
tools/mkvstream
.bc_tester_utils.tmp
**/.gradle
tester/sounds/mixed_file.wav
mediastreamer2-5.2.0+dfsg/.project 0000664 0000000 0000000 00000001376 14346134245 0017025 0 ustar 00root root 0000000 0000000
mediastreamer2
org.eclipse.cdt.managedbuilder.core.genmakebuilder
clean,full,incremental,
org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
full,incremental,
org.eclipse.cdt.core.cnature
org.eclipse.cdt.managedbuilder.core.managedBuildNature
org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
mediastreamer2-5.2.0+dfsg/CHANGELOG.md 0000664 0000000 0000000 00000024623 14346134245 0017167 0 ustar 00root root 0000000 0000000 # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [5.2.0] - 2022-11-14
### Added
- Video conferencing features
* RFC6464 client-to-mixer
* RFC6465 mixer-to-client
- Video conference: added CSRC of contributor to active speaker stream.
- Add support for post-quantum encryption algorithms within ZRTP protocol.
### Changed
- Licence becomes AGPL-3.
- Improvements to Android bluetooth audio support.
- Performance improvements to Android Texture video renderer.
- Optimizations to DTLS handshake to be more robust to packet losses.
- libyuv used for rescaling and pixel conversion (instead of libswscale).
### Fixed
- Crash with buffer overflow in GenericPLC filter.
- Random crashes with video capture on Windows.
- ARM64/linux compilation.
- MSVideoRouter algorithm improved.
- Non working audio playback on iOS 16.
- Blurry video rendering on iOS.
## [5.1.0] - 2022-02-14
### Added
- Experimental Forward Error Correction feature for video streams.
### Changed
- Mkv and Wav file player and recorders file I/O is tunneled through bctbx VFS API.
### Fixed
- See commits for details.
## [5.0.0] - 2021-07-08
### Added
- API to change media encryption in the fly
### Changed
- refactoring and simplifications for the MSOgl filter (video OpenGL rendering)
### Fixed
- video corruption when Android MediaCodec runs out of buffers.
- absence of dummy stun packets when DTLS is used with "encryption_mandatory" preventing
DTLS handshare to take place
## [4.5.0] - 2021-03-29
### Added
- Audio route API to choose which device to use for capture & playback on Android & iOS.
- New camera capture backend based on Windows MediaFoundation
- MSMediaPlayer enhancements.
- VideoConference API and engine prototype (active speaker switching only)
### Changed
- audio flow control algorithm improved, silent portions are dropped first.
- MKVPlayer supports seek in files without cue table.
- 'packetlosspercentage' is now configurable in opus encoder.
### Fixed
- misfunction in DTLS handshake over TURN
- fix arythmetic issue in clock skew computation, causing bad audio when the sound device outputs
audio fragments not multiple of 10ms.
- iOS AudioUnit configured with bad sample rate issue.
- wrong selection of ICE TURN candidates when the TURN server is behind a firewall
- unsent TURN SenderIndication packets on iOS
- fix video freeze in VP8, due to lack of retransmission of SLIs.
All these fix were backported to 4.4 branch.
## [4.4.0] - 2020-06-16
### Added
- TURN over TCP or TLS (previously was only UDP)
- Capture/playback gain control for Mac OS (AudioUnit)
### Changed
- Optimize mirroring for OpenGL based display filters. It was previously done in software.
- Make V4L2 capture filter work with read-only devices (such as with v4lloopback driver)
- iOS AudioUnit filter simplifications
### Fixed
- ICE: set source IP addresses of outgoing packets consistent with the local candidate it is supposed to test or use.
This fixes various ICE failures occuring when the host has multiple IP addresses (which is now common with IPv6)
- New implementation of MSEventQueue, to fix unreproductible crashes with the previous implementation.
- Crashes around mblk_t management of Video4Linux2 catpure filter.
- Random crash in VideoToolbox decoding filter.
- VP8 decoding errors due to an invalid aggregation of packets in rare circumstances
- Crash while reading mkv file with checksums.
## [4.3.0] - 2019-10-14
### Added
- H265 codec based on MediaCodec API (Android only)
- H265 codec based on VideoToolbox API (iOS only)
- Adaptation of video resolution according to network capabilities.
### Changed
- License is now GNU GPLv3.
- For simplicity reasons, version number is aligned between all components of linphone-sdk.
## [2.16.1] - 2017-07-21
### Fixed
- build on windows
## [2.16.0] - 2017-07-20
### Changed
- Ticker is driven by soundcards.
- Soundcard flow control improvements.
## [2.15.1] - 2017-03-02
## Fixed
- issue in CMake scripts.
## [2.15.0] - 2017-02-23
### Added
- support for TURN (RFC5766).
- IPv6 support for ICE
### Removed
- Deprecation of QTKit for video capture management on Apple platforms.
### Fixed
- Multiple issues around H264 hardware encoder/decoder on iOS/MacOSX/Android.
## [2.13.0] - 2016-06-02
### Added
- H264 hardware codec on Apple's platforms
- BroadVoice16 audio codec support.
### Changed
- MSFactory usage : using one MSfactory per LinphoneCore instance, deprecate all "static" methods, now grouped around the MSFactory object.
### Fixed
- Fix option to really disable libv4l2 when asked.
## [2.12.0] - 2015-11-02
### Added
- Basic AVPF handling for H.264 codec.
- Support of video presets (include a high-fps preset).
- Support of RTP session as input/output of a audio/video stream (instead of a sound card or camera/display).
- Video presets (include a high-fps preset)
- Ability to use an RTP session as input/output of a audio/video stream (instead of a sound card or camera/display)
- Handling of jpeg image on Windows 10
- Video capture and display filter for BlackBerry 10
- Add text stream for RTT (Real-Time Text)
- VP8 recording/playing in mkv files
### Changed
- Allow video stream to keep its source (camera).
## [2.11.0] - 2015-03-11
### Added
- AVPF with VP8 codec only.
- Matroska file format (needs libmatroska2).
- Audio/video stream recorder. Only H264 is supported for video stream.
- New API methods to send audio/video streams read from a file (only WAV and MKV file formats are supported).
- New API methods to play multimedia files and display to a specified drawing surface.
- Support of multicast IP addresses.
- Support of SBR for AAC codec (iOS only).
## [2.10.0] - 2014-02-20
### Added
- HD video support.
- new OpenSLES android sound module.
- Opus codec.
### Changed
- update android AEC settings table.
## [2.9.0] - 2013-05-27
### Added
- ICE support (RFC5245).
- Accessors to set DSCP parameters for media streams.
- AudioStream recording feature.
- OpenGL video output for Linux.
- Stereo support for L16 codec.
- AAC-ELD codec integration for iOS
- integration with acoustic echo canceller from WebRTC
- pre-calibrated device latency table to configure echo canceller
### Changed
- Split the libmediastreamer library in two libraries: libmediastreamer_base and
libmediastreamer_voip. For VoIP support, both libraries must be linked to the executable.
- API change to the audio_stream_new, video_stream_new, audio_stream_start_full,
video_stream_start functions to use different addresses for RTP and RTCP.
- Adaptive bitrate control improvements
- Faster call quality indicator feedback
## [2.8.0] - 2011-12-22
### Added
- Audio conferencing.
- Mac OS X video support.
- New adaptive audio & video bitrate control api.
- New call quality indicator api.
## [2.7.0] - 2011-02-07
### Added
- Android video capture filter.
- Android video display filters: one for 2.1 and one for 2.2+.
- Scaler/colorspace conversion abstraction, with native ARM-optimized implementation.
- X11+XvXshm display filter, deprecating SDL display filter.
- Custom tone generation (in MSDtmfGen filter).
- Custom tone detection in new filter MSToneDetector
### Changed
- Enhance build for visual studio.
- Rework the echo canceller to work with much less latency.
- adapt the OSS filter to OSS4 standard.
## [2.6.0] - 2010-07-01
### Added
- Optional "threaded" v4l2 capture.
### Changed
- Android sound capture optimisations.
- Move H264 decoder from msx264 to mediastreamer2.
- Echo canceller reworked: use soundcard stream to synchronise far-end stream.
- H263 RFC2190 support improvements.
- MSVolume improvements and cleanup, with native AGC support.
### Fixed
- Crash when video window is closed on windows.
- Segfault in ALSA support when capturing a stereo stream.
## [2.5.0] - 2010-06-03
### Added
- Event queue for notifications of MSFilters.
- Stereo support to resampler.
- New MSFilter to convert from mono to stereo and vice versa.
- Inter Ticker Communication filter (ITC) so that graphs running on different MSTicker can exchange data.
- Audio mixer filter to mix down audio streams. This is not suitable for conferencing, use MSConf instead.
### Changed
- Uses less memory for speex decoding.
### Fixed
- Regression with speex decoder at 16 and 32khz.
## [2.4.0] - 2010-05-19
### Added
- jpeg over RTP support.
- PulseAudio support.
- New MSDrawDibDisplay video output filter with new layout features.
### Changed
- Use libv4l2 when possible to benefit from hardware pixel conversion.
- Enhance performance of SDL video output
- Improve MacOS sound support
## [2.3.0] - 2009-09-17
### Added
- Parametric equalizer filter (to modify gains per frequency bands), working with natural curves.
- Noise-gate feature added to MSVolume.
- Builds on windows with mingw/msys using ./configure && make (see linphone's README.mingw).
### Changed
- Integrate directshow capture filter for mingw (was a plugin before).
- List of soundcard dynamically updates on windows upon device plugs/unplugs.
- MSVolume echo limiter feature improved.
## [2.2.3] - 2009-01-21
### Added
- New MSWebcam object to provide Webcam management and MSFilter instantiation.
### Changed
- Rfc3984 support improved .
- Webcam support on windows largely improved (vfw mode).
- Support for configuring video size up to svga.
- Video output can automatically resize to the size of received video stream.
### Fixed
- Fix crash when resizing video window.
- Alsa issues.
## [2.2.2] - 2008-10-06
### Added
- winsnd3.c file for support of soundcard under windows (seems to work a bit better).
## [2.2.1] - 2008-01-25
## Added
- Snow codec.
- Enable setting of max rtp payload size for all encoders.
- Video output resizing.
- 4CIF and VGA support.
## [2.2.0] - 2007-11-19
### Added
- "No webcam" screen.
- REQ_VFU command to request a video encoder to send an I-frame (implemented for ffmpeg based encoders).
- Contributed macosx sound support.
- New MSVolume filter to make sound power measurements.
- rate control of ffmpeg video codecs.
### Changed
- Bandwidth settings improvements.
## [2.1.0] - 2007-01-23
### Added
- Support for Video4Linux V2 cameras.
- Support for mpjeg cameras.
- Webcam support on windows operational.
- Video window display ok on windows.
### Changed
- Bandwidth setting improvements.
### Fixed
- Fix bug with quickcam driver on linux.
mediastreamer2-5.2.0+dfsg/CMakeLists.txt 0000664 0000000 0000000 00000070467 14346134245 0020125 0 ustar 00root root 0000000 0000000 ############################################################################
# Copyright (c) 2010-2022 Belledonne Communications SARL.
#
# This file is part of mediastreamer2
# (see https://gitlab.linphone.org/BC/public/mediastreamer2).
#
############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
############################################################################
cmake_minimum_required(VERSION 3.1)
# CMP0077 policy is required by Flexisip build. Remove it once the CMake required
# version is higer or equal to 3.13.
if(NOT CMAKE_VERSION VERSION_LESS 3.13)
cmake_policy(SET CMP0077 NEW)
endif()
project(mediastreamer2 VERSION 5.2.0 LANGUAGES C CXX)
if(WIN32)
if( NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
add_compile_definitions(_WIN32_WINNT=0x0601 _ALLOW_KEYWORD_MACROS) #_WIN32_WINNT_WIN7
endif()
endif()
# See: https://cmake.org/cmake/help/v3.12/policy/CMP0072.html
if(POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
set(MEDIASTREAMER_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set(MEDIASTREAMER_MINOR_VERSION ${PROJECT_VERSION_MINOR})
set(MEDIASTREAMER_MICRO_VERSION ${PROJECT_VERSION_PATCH})
set(MEDIASTREAMER_VERSION ${PROJECT_VERSION})
set(MEDIASTREAMER_SO_VERSION "11") # incremented for mediastreamer2-4.4.0
string(REGEX MATCH "^(arm*|aarch64)" FIXED_POINT_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
if(FIXED_POINT_PROCESSOR)
set(ENABLE_FIXED_POINT_DEFAULT_VALUE YES)
else()
set(ENABLE_FIXED_POINT_DEFAULT_VALUE NO)
endif()
if(IOS)
set(ENABLE_MACSND_DEFAULT_VALUE NO)
set(ENABLE_MACAQSND_DEFAULT_VALUE YES)
else()
set(ENABLE_MACSND_DEFAULT_VALUE YES)
set(ENABLE_MACAQSND_DEFAULT_VALUE NO)
endif()
set(ENABLE_GLX_DEFAULT_VALUE NO)
set(ENABLE_X11_DEFAULT_VALUE NO)
if(UNIX)
if(NOT APPLE)
set(ENABLE_GLX_DEFAULT_VALUE YES)
set(ENABLE_X11_DEFAULT_VALUE YES)
endif()
endif()
if(UNIX AND NOT APPLE AND NOT ANDROID)
set(LINUX_OR_BSD 1)
endif()
include(CMakeDependentOption)
option(ENABLE_SHARED "Build shared library." YES)
option(ENABLE_STATIC "Build static library." YES)
option(ENABLE_DEBUG_LOGS "Enable the display of traces showing the execution of the library." NO)
option(ENABLE_DOC "Enable documentation generation with Doxygen." YES)
option(ENABLE_FIXED_POINT "Turn on fixed point computations." ${ENABLE_FIXED_POINT_DEFAULT_VALUE})
option(ENABLE_NON_FREE_CODECS "Allow inclusion of non-free codecs in the build." NO)
option(ENABLE_PCAP "Enable PCAP support." NO)
option(ENABLE_STRICT "Build with strict compile options." YES)
option(ENABLE_RELATIVE_PREFIX "Find resources relatively to the installation directory." NO)
option(ENABLE_TOOLS "Turn on or off compilation of tools." YES)
option(ENABLE_UNIT_TESTS "Enable compilation of unit tests." YES)
option(ENABLE_PACKAGE_SOURCE "Create 'package_source' target for source archive making (CMake >= 3.11)" OFF)
option(ENABLE_OPENGL_PROFILING "Measure OpenGL render time (for performance profiling)" OFF)
option(ENABLE_SRTP "Build with the SRTP transport support." YES)
cmake_dependent_option(ENABLE_ZRTP "Build with ZRTP support." YES "ENABLE_SRTP" NO)
cmake_dependent_option(ENABLE_GOCLEAR "Build with ZRTP GoClear message support (RFC 6189 - section 5.11)." YES "ENABLE_ZRTP" NO)
option(ENABLE_SOUND "Can be used to turn off all possible sound backends." YES)
cmake_dependent_option(ENABLE_ALSA "Enable ALSA support." YES "ENABLE_SOUND;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_ANDROIDSND "Enable Android sound support." NO "ENABLE_SOUND;ANDROID" NO)
cmake_dependent_option(ENABLE_ARTSC "Enable artsc (KDE<4) sound input/output." NO "ENABLE_SOUND;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_MACSND "Enable MAC OS X Audio Units sound support." ${ENABLE_MACSND_DEFAULT_VALUE} "ENABLE_SOUND;APPLE" NO)
cmake_dependent_option(ENABLE_MACAQSND "Enable native MAC OS X Audio Queue sound support." ${ENABLE_MACAQSND_DEFAULT_VALUE} "ENABLE_SOUND;APPLE" NO)
cmake_dependent_option(ENABLE_QSA "Enable QSA (QNX Sound Architecture) support." NO "ENABLE_SOUND" NO)
# OSS is mostly deprecated in 2016, so it should not be built by default (it won't work anyway). Let user defines it
# itself only if he REALLY needs it.
cmake_dependent_option(ENABLE_OSS "Enable OSS support." NO "ENABLE_SOUND;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_PORTAUDIO "Enable portaudio native support." NO "ENABLE_SOUND" NO)
cmake_dependent_option(ENABLE_PULSEAUDIO "Enable pulseaudio support." YES "ENABLE_SOUND" NO)
option(ENABLE_G726 "Build mediastreamer2 with the G726 codec." NO)
option(ENABLE_GSM "Build mediastreamer2 with the GSM codec." YES)
option(ENABLE_BV16 "Build mediastreamer2 with the BV16 codec." YES)
option(ENABLE_OPUS "Build mediastreamer2 with the OPUS codec." YES)
option(ENABLE_SPEEX_CODEC "Build mediastreamer2 with the SPEEX codec." YES)
option(ENABLE_SPEEX_DSP "Build mediastreamer2 with the SPEEX DSP support." YES)
option(ENABLE_G729 "Build mediastreamer2 with the G729 codec." YES)
option(ENABLE_G729B_CNG "Build mediastreamer2 with G729 annex B cng." NO)
cmake_dependent_option(ENABLE_RESAMPLE "Build mediastreamer2 with the resampling capability." YES "ENABLE_SPEEX_DSP" NO)
option(ENABLE_VIDEO "Build mediastreamer2 with video support." YES)
option(ENABLE_QT_GL "Enable Qt OpenGL rendering support." OFF)
cmake_dependent_option(ENABLE_FFMPEG "Build mediastreamer2 with ffmpeg video support." YES "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_GL "Enable generic OpenGL rendering support." YES "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_GLX "Enable X11+OpenGL rendering support (requires glx and glew)." ${ENABLE_GLX_DEFAULT_VALUE} "ENABLE_VIDEO;UNIX" NO)
cmake_dependent_option(ENABLE_SDL "Enable SDL support." NO "ENABLE_FFMPEG" NO)
cmake_dependent_option(ENABLE_V4L "Enable Video4Linux support." YES "ENABLE_VIDEO;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_X11 "Enable X11 support." ${ENABLE_X11_DEFAULT_VALUE} "ENABLE_VIDEO;UNIX" NO)
cmake_dependent_option(ENABLE_XV "Enable XV support." ${ENABLE_X11_DEFAULT_VALUE} "ENABLE_VIDEO;UNIX" NO)
cmake_dependent_option(ENABLE_THEORA "Enable theora video codec support." YES "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_VPX "Build mediastreamer2 with VPX codec." YES "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_LIBYUV "Build mediastreamer2 with LibYUV support." YES "ENABLE_VIDEO" NO)
option(ENABLE_MKV "Enable support of MKV files reading and writing." YES)
cmake_dependent_option(ENABLE_QNX "Build medistreamer2 with BB10 filters." NO "ENABLE_VIDEO" NO)
option(ENABLE_JPEG "Enable JPEG support" YES)
cmake_dependent_option(ENABLE_QRCODE "Enable QRCode support" YES "ENABLE_VIDEO" NO)
# Hidden non-cache options:
# * DISABLE_BC_PACKAGE_SEARCH: skip find_package() for every BC package (bctoolbox, ortp, etc.)
# * DISABLE_SRTP_SEARCH: skip find_package() for SRTP.
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS NO)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CMakePushCheckState)
include(GNUInstallDirs)
if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
message(STATUS "Setting install rpath to ${CMAKE_INSTALL_RPATH}")
endif()
if(MSVC)
if(MSVC_VERSION LESS 1800)
set(MSVC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include/MSVC")
list(APPEND CMAKE_REQUIRED_INCLUDES "${MSVC_INCLUDE_DIR}")
else()
set(MSVC_INCLUDE_DIR "")
endif()
endif()
check_include_file(sys/shm.h HAVE_SYS_SHM_H)
check_include_file(alloca.h HAVE_ALLOCA_H)
if(ENABLE_OSS)
check_include_file(soundcard.h HAVE_SOUNDCARD_H)
check_include_file(sys/soundcard.h HAVE_SYS_SOUNDCARD_H)
check_include_file(machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H)
check_include_file(sys/audio.h HAVE_SYS_AUDIO_H)
if(NOT (HAVE_SOUNDCARD_H OR HAVE_SYS_SOUNDCARD_H OR HAVE_MACHINE_SOUNDCARD_H OR HAVE_SYS_AUDIO_H))
set(ENABLE_OSS OFF CACHE BOOL "Enable OSS support." FORCE)
endif()
endif()
check_library_exists("dl" "dlopen" "" HAVE_DLOPEN)
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
if(NOT DISABLE_BC_PACKAGE_SEARCH)
find_package(ortp REQUIRED CONFIG)
endif()
if(ENABLE_PCAP)
find_package(PCAP QUIET)
endif()
if(ENABLE_SRTP)
if(NOT DISABLE_SRTP_SEARCH)
find_package(SRTP "2" REQUIRED)
else()
set(SRTP_FOUND YES)
set(SRTP_VERSION 2)
endif()
endif()
if(ENABLE_ZRTP)
if (NOT DISABLE_BC_PACKAGE_SEARCH)
find_package(bzrtp REQUIRED CONFIG)
else()
set (bzrtp_FOUND On)
endif()
endif()
if(ENABLE_G726)
find_package(SpanDSP REQUIRED)
endif()
if(ENABLE_GSM)
find_package(GSM)
if(NOT GSM_FOUND)
message(WARNING "Could not find GSM library, mediastreamer2 will be compiled without the GSM codec.")
set(ENABLE_GSM OFF CACHE BOOL "Build mediastreamer2 with the GSM codec." FORCE)
endif()
endif()
if(ENABLE_BV16)
find_package(BV16)
if(NOT BV16_FOUND)
message(WARNING "Could not find BV16 library, mediastreamer2 will be compiled without the BV16 codec.")
set(ENABLE_BV16 OFF CACHE BOOL "Build mediastreamer2 with the BV16 codec." FORCE)
endif()
endif()
if(ENABLE_OPUS)
find_package(Opus)
if(NOT OPUS_FOUND)
message(WARNING "Could not find opus library, mediastreamer2 will be compiled without the OPUS codec.")
set(ENABLE_OPUS OFF CACHE BOOL "Build mediastreamer2 with the OPUS codec." FORCE)
endif()
endif()
if(ENABLE_SPEEX_CODEC)
find_package(Speex)
if(NOT SPEEX_FOUND)
message(WARNING "Could not find speex library, mediastreamer2 will be compiled without the SPEEX codec.")
set(ENABLE_SPEEX_CODEC OFF CACHE BOOL "Build mediastreamer2 with the SPEEX codec." FORCE)
endif()
endif()
if(ENABLE_SPEEX_DSP)
find_package(SpeexDsp REQUIRED)
endif()
if(ENABLE_ALSA)
find_package(ALSA)
if(NOT ALSA_FOUND)
set(ENABLE_ALSA OFF CACHE BOOL "Enable ALSA support." FORCE)
endif()
endif()
if(ENABLE_ARTSC)
find_package(Arts REQUIRED)
endif()
if(ENABLE_PORTAUDIO)
find_package(PortAudio REQUIRED)
endif()
if(ENABLE_PULSEAUDIO)
find_package(PulseAudio)
if(NOT PULSEAUDIO_FOUND)
set(ENABLE_PULSEAUDIO OFF CACHE BOOL "Enable pulseaudio support." FORCE)
endif()
endif()
if(ENABLE_QSA)
find_package(QSA REQUIRED)
find_package(QnxAudioManager REQUIRED)
endif()
if(ENABLE_VIDEO)
add_definitions(-DVIDEO_ENABLED)
endif()
if(ENABLE_FFMPEG)
find_package(FFMpeg REQUIRED)
else()
add_definitions(-DNO_FFMPEG)
endif()
if(ENABLE_V4L)
find_package(V4L)
if(NOT V4L_FOUND)
message(FATAL_ERROR "Missing V4L. It is highly recommended to build with libv4l2 headers and library. Many camera will won't work or will crash your application if libv4l2 is not installed. If you know what you are doing, you can use -DENABLE_V4L=0 to disable this check.")
endif()
endif()
if(ENABLE_X11)
find_package(X11)
if(NOT X11_FOUND)
set(ENABLE_X11 OFF CACHE BOOL "Enable X11 support." FORCE)
endif()
endif()
if(ENABLE_XV)
find_package(Xv)
if(XV_FOUND)
set(HAVE_XV 1)
else()
set(HAVE_XV 0)
set(ENABLE_XV OFF CACHE BOOL "Enable XV support." FORCE)
endif()
else()
set(HAVE_XV 0)
endif()
if(ENABLE_GL)
if(WIN32)
find_package(QtAngle)
set(HAVE_GL 1)
if(NOT QTANGLE_FOUND)#Not QtAngle found then we use internal files
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/OpenGL")
endif()
else()
find_package(OpenGL)
if(OPENGL_FOUND)
set(HAVE_GL 1)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/OpenGL")
else()
set(ENABLE_GL OFF CACHE BOOL "Enable generic OpenGL rendering support." FORCE)
endif()
endif()
endif()
if(ENABLE_VIDEO AND APPLE)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/OpenGL")
endif()
if(ENABLE_GLX)
find_package(GLX)
if(GLX_FOUND)
set(HAVE_GLX 1)
else()
set(ENABLE_GLX OFF CACHE BOOL "Enable X11+OpenGL rendering support (requires glx and glew)." FORCE)
endif()
endif()
if(NOT APPLE AND NOT ANDROID AND OPENGL_FOUND OR GLX_FOUND)
set(GLEW_VERBOSE 1)
include(FindGLEW)#use cmake find in place of find_package(Glew REQUIRED)
if(NOT GLEW_FOUND)
message(FATAL_ERROR "Glew is missing. Mediastreamer2 need it")
endif()
message(STATUS "GLEW_VERSION = ${GLEW_VERSION}")
message(STATUS "GLEW_MAJOR_VERSION = ${GLEW_VERSION_MAJOR}")
message(STATUS "GLEW_MINOR_VERSION = ${GLEW_VERSION_MINOR}")
message(STATUS "GLEW_LIBRARIES = ${GLEW_LIBRARIES}")
message(STATUS "GLEW_INCLUDE_DIRS = ${GLEW_INCLUDE_DIRS}")
if( GLEW_VERSION_MAJOR LESS_EQUAL 1 AND GLEW_VERSION_MINOR LESS_EQUAL 11)
set(MS2_USE_OLD_OPENGL_PROTOTYPE TRUE)#Before 1.11, Glew have few different headers from OpenGL Specs
endif()
endif()
# TODO: Handle SDL option
if(ENABLE_THEORA)
find_package(Theora)
if(NOT THEORA_FOUND)
message(WARNING "Could not find theora library, mediastreamer2 will be compiled without theora support.")
set(ENABLE_THEORA OFF CACHE BOOL "Enable theora video codec support." FORCE)
endif()
endif()
if(ENABLE_VPX)
find_package(VPX)
if(VPX_FOUND)
set(HAVE_VPX 1)
else()
set(ENABLE_VPX OFF CACHE BOOL "Build mediastreamer2 with VPX codec." FORCE)
endif()
endif()
if(ENABLE_MKV)
find_package(BcMatroska2 QUIET)
if(NOT BCMATROSKA2_FOUND)
message(WARNING "Could not find BcMatroska2 library, mediastreamer2 will be compiled without MKV support.")
set(ENABLE_MKV OFF CACHE BOOL "Enable support of MKV files reading and writing." FORCE)
endif()
endif()
if(ENABLE_QNX)
find_package(Screen)
if(NOT SCREEN_FOUND)
message(FATAL_ERROR "SCREEN NOT FOUND")
endif()
find_package(CamApi)
if(NOT CAMAPI_FOUND)
message(FATAL_ERROR "CAMAPI NOT FOUND")
endif()
endif()
if(ENABLE_SOUND AND NOT(WIN32 OR ENABLE_ALSA OR ENABLE_ARTSC OR ENABLE_MACSND OR ENABLE_MACAQSND OR ENABLE_OSS OR ENABLE_PORTAUDIO OR ENABLE_PULSEAUDIO OR ENABLE_QSA OR ENABLE_ANDROIDSND))
message(FATAL_ERROR "Could not find a support sound driver API. Use -DENABLE_SOUND=NO if you don't care about having sound.")
endif()
if(ENABLE_G729 OR ENABLE_G729B_CNG)
find_package(Bcg729 1.0.1 CONFIG)
if(NOT BCG729_FOUND)
message(WARNING "Could not find bcg729, mediastreamer2 will be compiled without G729 codec and G729 AnnexB in RFC3389.")
set(ENABLE_G729 OFF CACHE BOOL "Build mediastreamer2 with the G729 codec." FORCE)
set(ENABLE_G729_CNG OFF CACHE BOOL "Build mediastreamer2 with G729 Annex B cng." FORCE)
endif()
endif()
if(ENABLE_JPEG)
find_package(TurboJpeg)
if(NOT TURBOJPEG_FOUND)
message(WARNING "Could not find libturbo-jpeg, mediastreamer2 will be compiled without LibJpeg-Turbo.")
set(ENABLE_JPEG OFF CACHE BOOL "Enable JPEG support" FORCE)
endif()
endif()
if(ENABLE_LIBYUV)
find_package(LibYUV)
if( NOT LIBYUV_FOUND)
message(WARNING "Could not find libyuv, mediastreamer2 will be compiled without LibYUV support.")
set(ENABLE_LIBYUV OFF CACHE BOOL "Enable LibYUV support" FORCE)
endif()
endif()
if(ENABLE_QRCODE)
find_package(ZXing)
if(NOT ZXING_FOUND)
message(WARNING "Could not find ZXing, mediastreamer2 will be compiled without ZXing(QRCode)")
set(ENABLE_QRCODE OFF CACHE BOOL "Enable QRCode support" FORCE)
else()
add_definitions(-DQRCODE_ENABLED)
endif()
endif()
if(ANDROID)
find_library(ANDROID_CPU_FEATURES_LIBRARY NAMES cpufeatures)
if (CMAKE_ANDROID_NDK_VERSION VERSION_LESS 19)
find_library(ANDROID_SUPPORT_LIBRARY NAMES support)
endif()
endif()
if(NOT DISABLE_BC_PACKAGE_SEARCH)
find_package(bctoolbox 0.0.3 REQUIRED OPTIONAL_COMPONENTS tester CONFIG)
endif()
include_directories(
include
src/audiofilters
src/utils
src/voip
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/src
)
set(MEDIASTREAMER2_INCLUDE_DIRS )
set(LINK_LIBS bctoolbox ortp)
if(WIN32)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
list(APPEND LINK_LIBS ole32 oleaut32 uuid Winmm Ws2_32)
if(ENABLE_VIDEO)
list(APPEND LINK_LIBS gdi32 strmiids user32 vfw32)
endif()
endif()
list(APPEND LINK_LIBS ws2_32)# symbols for in6addr_any
endif()
if(LIBM)
list(APPEND LINK_LIBS m)
endif()
if(ANDROID_CPU_FEATURES_LIBRARY)
list(APPEND LINK_LIBS ${ANDROID_CPU_FEATURES_LIBRARY})
endif()
if(ANDROID_SUPPORT_LIBRARY)
list(APPEND LINK_LIBS ${ANDROID_SUPPORT_LIBRARY})
endif()
if(ANDROID AND ENABLE_VIDEO)
list(APPEND LINK_LIBS EGL GLESv3 android)
endif()
if(HAVE_DLOPEN)
list(APPEND LINK_LIBS dl)
endif()
if(ALSA_FOUND)
list(APPEND LINK_LIBS asound)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${ALSA_INCLUDE_DIRS})
set(__ALSA_ENABLED__ 1)
endif()
if(ARTS_FOUND)
list(APPEND LINK_LIBS arts)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${ARTS_INCLUDE_DIRS})
set(__ARTS_ENABLED__ 1)
endif()
if(PORTAUDIO_FOUND)
list(APPEND LINK_LIBS portaudio)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIRS})
set(__PORTAUDIO_ENABLED__ 1)
endif()
if(PULSEAUDIO_FOUND)
list(APPEND LINK_LIBS pulse)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${PULSEAUDIO_INCLUDE_DIRS})
set(__PULSEAUDIO_ENABLED__ 1)
endif()
if(QSA_FOUND)
list(APPEND LINK_LIBS ${QSA_LIBRARIES})
list(APPEND LINK_LIBS ${QNXAUDIOMANAGER_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${QSA_INCLUDE_DIRS})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${QNXAUDIOMANAGER_INCLUDE_DIRS})
set(__QSA_ENABLED__ 1)
set(__QNX__ 1)
endif()
if(FFMPEG_FOUND)
list(APPEND LINK_LIBS ${FFMPEG_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIRS})
if(MSVC)
add_definitions(-Dinline=__inline)
endif()
endif()
if(V4L_FOUND)
list(APPEND LINK_LIBS ${V4L_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${V4L_INCLUDE_DIRS})
endif()
if(X11_FOUND)
list(APPEND LINK_LIBS X11)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${X11_INCLUDE_DIRS})
endif()
if(XV_FOUND)
list(APPEND LINK_LIBS Xv)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${XV_INCLUDE_DIRS})
endif()
if(GLX_FOUND)
list(APPEND LINK_LIBS GL)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${GLX_INCLUDE_DIRS})
endif()
if(GLEW_FOUND)
list(APPEND LINK_LIBS GLEW)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${GLEW_INCLUDE_DIRS})
endif()
if(THEORA_FOUND)
list(APPEND LINK_LIBS theora)
endif()
if(VPX_FOUND)
list(APPEND LINK_LIBS ${VPX_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${VPX_INCLUDE_DIRS})
endif()
if (SCREEN_FOUND)
list(APPEND LINK_LIBS screen)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${SCREEN_INCLUDE_DIRS})
endif()
if (CAMAPI_FOUND)
list(APPEND LINK_LIBS camapi)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${CAMAPI_INCLUDE_DIRS})
endif()
if(TURBOJPEG_FOUND)
list(APPEND LINK_LIBS ${TURBOJPEG_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${TURBOJPEG_INCLUDE_DIRS})
set(HAVE_TURBO_JPEG 1)
endif()
if( LIBYUV_FOUND)
list(APPEND LINK_LIBS ${LIBYUV_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${LIBYUV_INCLUDE_DIRS})
endif()
if(ZXING_FOUND)
list(APPEND LINK_LIBS ${ZXING_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${ZXING_INCLUDE_DIRS})
endif()
if(BCG729_FOUND)
if(ENABLE_G729_CNG)
add_definitions("-DHAVE_G729B=1")
endif()
list(APPEND LINK_LIBS ${BCG729_LIBRARIES})
endif()
if(GSM_FOUND)
list(APPEND LINK_LIBS ${GSM_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${GSM_INCLUDE_DIRS})
endif()
if(bzrtp_FOUND)
list(APPEND LINK_LIBS bzrtp)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${BZRTP_INCLUDE_DIRS})
set(HAVE_ZRTP 1)
set(HAVE_GOCLEAR 1)
endif()
if(SRTP_FOUND)
list(APPEND LINK_LIBS "srtp2")
set(HAVE_SRTP 1)
endif()
if(SPANDSP_FOUND)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${SPANDSP_INCLUDE_DIRS})
list(APPEND LINK_LIBS ${SPANDSP_LIBRARIES})
endif()
if(OPUS_FOUND)
list(APPEND LINK_LIBS ${OPUS_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${OPUS_INCLUDE_DIRS})
endif()
if(SPEEX_FOUND)
list(APPEND LINK_LIBS ${SPEEX_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${SPEEX_INCLUDE_DIRS})
endif()
if(SPEEXDSP_FOUND)
list(APPEND LINK_LIBS ${SPEEXDSP_LIBRARIES})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${SPEEXDSP_INCLUDE_DIRS})
set(HAVE_SPEEXDSP 1)
endif()
if(BV16_FOUND)
list(APPEND LINK_LIBS ${BV16_LIBRARIES})
endif()
if(BCMATROSKA2_FOUND)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${BCMATROSKA2_INCLUDE_DIRS})
list(APPEND LINK_LIBS ${BCMATROSKA2_LIBRARIES})
set(HAVE_MATROSKA 1)
endif()
if(PCAP_FOUND)
list(APPEND LINK_LIBS pcap)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${PCAP_INCLUDE_DIRS})
set(HAVE_PCAP 1)
endif()
if(QTANGLE_FOUND)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${QTANGLE_INCLUDE_DIRS})
list(APPEND LINK_LIBS ${QTANGLE_LIBRARIES})
endif()
if(OPENGL_FOUND)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
endif()
if(MSVC_INCLUDE_DIR)
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${MSVC_INCLUDE_DIR})
endif()
if(ENABLE_ANDROIDSND)
include_directories(
src/android
src/android/media
)
endif()
if(ENABLE_DEBUG_LOGS)
add_definitions(-DDEBUG)
endif()
if(ENABLE_FIXED_POINT)
set(MS_FIXED_POINT 1)
endif()
if(ENABLE_NON_FREE_CODECS)
set(HAVE_NON_FREE_CODECS 1)
else()
set(HAVE_NON_FREE_CODECS 0)
endif()
if(ENABLE_MACSND)
set(__MACSND_ENABLED__ 1)
endif()
if(ENABLE_MACAQSND)
set(__MAC_AQ_ENABLED__ 1)
endif()
if(ENABLE_QT_GL)#Only add headers and lib to Qt plugins
set(QT5_PACKAGES Core Gui Quick)
set(QT5_ALL_PACKAGES ${QT5_PACKAGES} QmlModels Qml Network)
# Setting Qt5_DIR is not enough as it needs Qt5_DIR for each packages
if(DEFINED ENV{Qt5_DIR} AND NOT DEFINED ${Qt5_DIR})
set(Qt5_DIR "$ENV{Qt5_DIR}")
endif()
set(Qt5_base "${Qt5_DIR}/../")
foreach (package ${QT5_ALL_PACKAGES})
if( NOT DEFINED ${Qt5${package}_DIR})
set(Qt5${package}_DIR "${Qt5_base}/Qt5${package}")
endif()
endforeach ()
find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
foreach (package ${QT5_PACKAGES})
if(Qt5${package}_FOUND)
get_target_property(Qt${package}_location Qt5::${package} LOCATION)
string(REPLACE "Qt${package}.framework/Qt${package}" "" Qt${package}_ROOT_LOCATION ${Qt${package}_location})
list(APPEND MEDIASTREAMER2_INCLUDE_DIRS "${Qt5${package}_INCLUDE_DIRS}")
list(APPEND QT_LINK_LIBS ${Qt5${package}_LIBRARIES})
endif()
endforeach ()
endif()
set(LINK_FLAGS )
if(APPLE)
list(APPEND LINK_FLAGS "-framework CoreFoundation" "-framework AudioToolbox" "-framework CoreAudio")
if(IOS) # Necessary for Mediastreamer's tools and testers
list(APPEND LINK_FLAGS "-framework Foundation" "-framework QuartzCore" "-framework OpenGLES" "-framework UIKit" "-framework AVFoundation")
if(ENABLE_VIDEO)
list(APPEND LINK_FLAGS "-framework CoreGraphics" "-framework CoreMedia" "-framework CoreVideo" "-framework VideoToolbox")
endif()
else()
list(APPEND LINK_FLAGS "-framework AppKit")
if(ENABLE_MACSND)
list(APPEND LINK_FLAGS "-framework Carbon" "-framework AudioUnit")
endif()
if(ENABLE_VIDEO)
list(APPEND LINK_FLAGS "-framework Cocoa" "-framework OpenGL" "-framework QuartzCore" "-framework AVFoundation" "-framework VideoToolbox" "-framework CoreMedia")
endif()
add_definitions("-DTARGET_OS_MAC=1")
endif()
elseif(WIN32 AND CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")#Fix error on 'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker''
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
list(APPEND LINK_FLAGS "/nodefaultlib:vccorlibd /nodefaultlib:msvcrtd vccorlibd.lib msvcrtd.lib")
else()
list(APPEND LINK_FLAGS "/nodefaultlib:vccorlib /nodefaultlib:msvcrt vccorlib.lib msvcrt.lib")
endif()
endif()
string(REPLACE ";" " " LINK_FLAGS_STR "${LINK_FLAGS}")
set(MEDIASTREAMER2_CPPFLAGS ${ORTP_CPPFLAGS} ${BZRTP_CPPFLAGS} ${BCTOOLBOX_CPPFLAGS} ${BCG729_CPPFLAGS})
if(ENABLE_STATIC)
list(APPEND MEDIASTREAMER2_CPPFLAGS "-DMS2_STATIC")
endif()
if(MEDIASTREAMER2_CPPFLAGS)
list(REMOVE_DUPLICATES MEDIASTREAMER2_CPPFLAGS)
add_definitions(${MEDIASTREAMER2_CPPFLAGS})
endif()
set(STRICT_OPTIONS_CPP )
set(STRICT_OPTIONS_C )
set(STRICT_OPTIONS_OBJC "-Wno-error")
if(MSVC)
list(APPEND STRICT_OPTIONS_CPP "/wd4142") # Disable "benign redefinition of type" warnings.
list(APPEND STRICT_OPTIONS_CPP "/wd4996") # Disable POSIX functions warnings from bctbx.
if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "/WX")
endif()
else()
list(APPEND STRICT_OPTIONS_CPP "-Wall" "-Wuninitialized")
list(APPEND STRICT_OPTIONS_C "-Wstrict-prototypes" "-Wno-error=strict-prototypes")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND STRICT_OPTIONS_CXX "-x c++")
if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "10")
list(APPEND STRICT_OPTIONS_CXX "-Wno-deprecated-copy") # introduced by clang 10
endif()
elseif(ENABLE_QT_GL AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER "9")
list(APPEND STRICT_OPTIONS_CPP "-Wno-error=deprecated-copy") # introduced by gcc 9
endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
list(APPEND STRICT_OPTIONS_CPP "-Qunused-arguments" "-Wno-unused-function" "-Wno-array-bounds")
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
if(${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "7")
list(APPEND STRICT_OPTIONS_CPP "-Wno-format-truncation")
endif()
if(${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "8")
list(APPEND STRICT_OPTIONS_CPP "-Wno-error=stringop-truncation" "-Wno-cast-function-type")
endif()
endif()
if(APPLE)
list(APPEND STRICT_OPTIONS_CPP "-Wno-error=unknown-warning-option" "-Qunused-arguments" "-Wno-tautological-compare" "-Wno-unused-function" "-Wno-array-bounds")
endif()
if(APPLE OR WIN32)
list(APPEND STRICT_OPTIONS_CPP "-Wno-shorten-64-to-32")
endif()
if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-Wno-unused-parameter" "-fno-strict-aliasing" "-Wno-missing-field-initializers" "-Wno-error=deprecated-declarations")
endif()
endif()
if(STRICT_OPTIONS_CPP)
list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP)
endif()
if(STRICT_OPTIONS_C)
list(REMOVE_DUPLICATES STRICT_OPTIONS_C)
endif()
if(STRICT_OPTIONS_OBJC)
list(REMOVE_DUPLICATES STRICT_OPTIONS_OBJC)
endif()
set(EXPORT_TARGETS_NAME "Mediastreamer2")
# Set log domain for the entire project.
add_definitions(
-DBCTBX_LOG_DOMAIN="mediastreamer"
)
#Setup framework structure and variables for ms2 plugins
set(MS2_FRAMEWORK_VERSION "A")
if(APPLE AND NOT IOS)
set(MS2_PLUGINS_LOCATION "Frameworks/mediastreamer2.framework/Versions/${MS2_FRAMEWORK_VERSION}/Libraries")
install(DIRECTORY DESTINATION "${CMAKE_INSTALL_PREFIX}/${MS2_PLUGINS_LOCATION}")
if (NOT EXISTS "${CMAKE_INSTALL_PREFIX}/Frameworks/mediastreamer2.framework/Libraries")
install(CODE "execute_process(COMMAND sh -c \"ln -sf Versions/Current/Libraries ${CMAKE_INSTALL_PREFIX}/Frameworks/mediastreamer2.framework/Libraries\")")
endif()
else()
set(MS2_PLUGINS_LOCATION "${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins")
endif()
if(ENABLE_RELATIVE_PREFIX)
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(PACKAGE_PLUGINS_DIR ".")
set(PACKAGE_DATA_DIR ".")
else()
set(PACKAGE_PLUGINS_DIR "./${MS2_PLUGINS_LOCATION}")
set(PACKAGE_DATA_DIR "./${CMAKE_INSTALL_DATADIR}")
endif()
else()
set(PACKAGE_PLUGINS_DIR "${CMAKE_INSTALL_PREFIX}/${MS2_PLUGINS_LOCATION}")
set(PACKAGE_DATA_DIR "${CMAKE_INSTALL_DATADIR}")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mediastreamer-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/mediastreamer-config.h)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mediastreamer-config.h PROPERTIES GENERATED ON)
add_definitions("-DHAVE_CONFIG_H")
if(ENABLE_DOC)
add_subdirectory(help)
endif()
add_subdirectory(include)
add_subdirectory(src)
if(ENABLE_UNIT_TESTS)
add_subdirectory(tester)
endif()
if(ENABLE_TOOLS AND NOT ANDROID)
add_subdirectory(tools)
endif()
include(CMakePackageConfigHelpers)
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/Mediastreamer2/cmake")
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/Mediastreamer2ConfigVersion.cmake"
VERSION ${MEDIASTREAMER_VERSION}
COMPATIBILITY AnyNewerVersion
)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
export(EXPORT ${EXPORT_TARGETS_NAME}Targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/Mediastreamer2Targets.cmake"
)
endif()
configure_package_config_file(cmake/Mediastreamer2Config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/Mediastreamer2Config.cmake"
INSTALL_DESTINATION ${CONFIG_PACKAGE_LOCATION}
NO_SET_AND_CHECK_MACRO
)
install(EXPORT ${EXPORT_TARGETS_NAME}Targets
FILE Mediastreamer2Targets.cmake
DESTINATION ${CONFIG_PACKAGE_LOCATION}
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/Mediastreamer2Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/Mediastreamer2ConfigVersion.cmake"
DESTINATION ${CONFIG_PACKAGE_LOCATION}
)
if (ENABLE_PACKAGE_SOURCE)
add_subdirectory(build)
endif()
mediastreamer2-5.2.0+dfsg/LICENSE.txt 0000664 0000000 0000000 00000103333 14346134245 0017175 0 ustar 00root root 0000000 0000000 GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
.
mediastreamer2-5.2.0+dfsg/Makefile.am 0000664 0000000 0000000 00000011205 14346134245 0017402 0 ustar 00root root 0000000 0000000
EXTRA_DIST= \
mediastreamer-config.h.in \
pkg.list \
autogen.sh \
mediastreamer.pc.in \
mediastreamer2.spec.in \
mediastreamer2.spec \
CMakeLists.txt \
cmake/FindALSA.cmake \
cmake/FindArts.cmake \
cmake/FindBV16.cmake \
cmake/FindCamApi.cmake \
cmake/FindFFMpeg.cmake \
cmake/FindGLX.cmake \
cmake/FindGSM.cmake \
cmake/FindOpus.cmake \
cmake/FindPCAP.cmake \
cmake/FindPortAudio.cmake \
cmake/FindPulseAudio.cmake \
cmake/FindQnxAudioManager.cmake \
cmake/FindQSA.cmake \
cmake/FindScreen.cmake \
cmake/FindSpeex.cmake \
cmake/FindSRTP.cmake \
cmake/FindV4L.cmake \
cmake/FindVPX.cmake \
cmake/FindX11.cmake \
cmake/FindXv.cmake \
cmake/Mediastreamer2Config.cmake.in \
help/CMakeLists.txt \
include/CMakeLists.txt \
mediastreamer-config.h.cmake \
src/CMakeLists.txt \
src/generate_descs_header.cmake \
src/generate_yuv2rgb_header.cmake \
src/gitversion.cmake \
tester/CMakeLists.txt \
tools/CMakeLists.txt \
README.md
ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)
SUBDIRS=po src m4 include tools tester help
ACLOCAL_FLAGS=-I$(top_srcdir)/m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = mediastreamer.pc
unit-test:
cd tester && $(MAKE) test
## oRTP packaging methods:
# `make rpm'
.phony: rpm
rpm:
$(MAKE) dist
#
TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz
rpm-novideo:
$(MAKE) dist
#
TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec --without video $(PACKAGE)-$(VERSION).tar.gz
# `make package'
if WITH_EPM
.PHONY: package
PKG_NAME = $(PACKAGE)-$(VERSION)-$(RELEASE)
BUILDROOT=`pwd`/epm-install
package: $(srcdir)/pkg.list $(srcdir)/configure
[ -n "$(BUILDROOT)" ] && rm -rf $(BUILDROOT)/*
[ -n "$(PKG_NAME).*" ] && rm -f $(PKG_NAME).*
$(MAKE) install DESTDIR=$(BUILDROOT)
$(MKEPMLIST) -u $(SYS_USER) -g $(SYS_GROUP) --prefix $(prefix) \
$(BUILDROOT)/$(prefix) > files.list
$(EPM) -v -f native -g -n -a $(ARCH) --keep-files --output-dir pkg \
srcdir=$(srcdir) \
top_srcdir=$(top_srcdir) \
top_builddir=$(top_builddir) \
PACKAGE=$(PACKAGE) \
SUMMARY="$(SUMMARY)" \
VERSION=$(ORTP_PKGCONFIG_VERSION) \
RELEASE=$(RELEASE) \
LICENSE="$(LICENSE)" \
VENDOR="$(VENDOR)" \
PACKAGER="$(PACKAGER)" \
$(PACKAGE) $(srcdir)/pkg.list
rm -rf $(BUILDROOT)
mv -f pkg/$(PACKAGE)-$(ORTP_PKGCONFIG_VERSION)-$(RELEASE).$(EPM_PKG_EXT) $(PKG_NAME).$(ARCH).$(EPM_PKG_EXT)
clean-local:
rm -rf pkg $(BUILDROOT)
rm -f files.list
endif WITH_EPM
deb:
$(MAKE) dist
mv $(distdir).tar.gz ../mediastreamer2_$(VERSION).orig.tar.gz
dpkg-buildpackage -us -uc -sa
EXTRA_DIST += README-ANDROID \
build/android/Android.mk \
build/android/basedescs.h \
build/android/libmediastreamer2_AndroidConfig.h \
build/android/voipdescs.h \
build/git-pre-commit-hook \
build/iphone/basedescs.h \
build/iphone/voipdescs.h \
build/wp8 \
java/.classpath \
java/.project \
java/AndroidManifest.xml \
java/proguard.cfg \
java/src/org/linphone/mediastream/Log.java \
java/src/org/linphone/mediastream/Version.java \
java/src/org/linphone/mediastream/video/AndroidVideoWindowImpl.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi5JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi8JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfiguration.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader5.java \
java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader9.java \
java/src/org/linphone/mediastream/video/capture/hwconf/Hacks.java \
java/src/org/linphone/mediastream/video/display/GL2JNIView.java \
java/src/org/linphone/mediastream/video/display/OpenGLESDisplay.java \
src/filter-template.c \
src/ortp-deps/README \
src/ortp-deps/ortp-config-win32.h \
src/ortp-deps/ortp-config.h \
src/ortp-deps/ortp/b64.h \
src/ortp-deps/ortp/logging.h \
src/ortp-deps/ortp/payloadtype.h \
src/ortp-deps/ortp/port.h \
src/ortp-deps/ortp/str_utils.h \
src/ortp-deps/update_ortp.sh \
src/ortp-deps/utils.h \
src/voip/scaler.h \
src/voip/scaler_arm.S \
tools/Android.mk \
tools/filters_graph.py \
tools/ios/en.lproj/InfoPlist.strings \
tools/ios/en.lproj/MainWindow.xib \
tools/ios/en.lproj/mediastreamViewController.xib \
tools/ios/mediastream-Info.plist \
tools/ios/mediastream-Prefix.pch \
tools/ios/mediastreamAppDelegate.h \
tools/ios/mediastreamAppDelegate.m \
tools/ios/mediastreamViewController.h \
tools/ios/mediastreamViewController.m \
tools/ring_jni.c
mediastreamer2-5.2.0+dfsg/README.md 0000664 0000000 0000000 00000016507 14346134245 0016637 0 ustar 00root root 0000000 0000000 [](https://gitlab.linphone.org/BC/public/mediastreamer2/commits/master)
Mediastreamer2
==============
Mediastreamer2 is a powerful and lightweight streaming engine for voice/video telephony applications.
This media processing and streaming toolkit is responsible for receiving and sending all multimedia streams in Linphone, including voice/video capture, encoding and decoding, and rendering.
For additional information, please [visit mediastreamer2's homepage on **linphone.org**](http://www.linphone.org/technical-corner/mediastreamer2)
License
-------
Copyright © Belledonne Communications
Mediastreamer2 is dual licensed, and is available either :
- under a [GNU/AGPLv3 license](https://www.gnu.org/licenses/agpl-3.0.html), for free (open source). Please make sure that you understand and agree with the terms of this license before using it (see LICENSE.txt file for details). AGPLv3 is choosen over GPLv3 because mediastreamer2 can be used to create server-side applications, not just client-side ones. Any product incorporating mediastreamer2 to provide a remote service then has to be licensed under AGPLv3.
For a client-side product, the "remote interaction" clause of AGPLv3 being irrelevant, the usual terms GPLv3 terms do apply (the two licences differ by this only clause).
- under a proprietary license, for a fee, to be used in closed source applications. Contact [Belledonne Communications](https://www.linphone.org/contact) for any question about costs and services.
Documentation
-------------
Please browse supported features and RFCs from [].
Mediastreamer2 has a concept of filters, that can be connected to form a graph. Each
filter is responsible for doing some kind of processing and
delivers data to the next filter. As an example, you could get some
data from network and unpack it in an RTP filter. This RTP filter will
deliver the data to a decoder (speex, G711...) which will deliver it
to a filter that is able to play the PCM data or another to record it into a .wav
file.
A more high level API is available in mediastreamer2/mediastream.h header file, exposing
primitives to create audio and video streams suitable for a VoIP application.
Compilation and installation
----------------------------
### Required dependencies:
- **bctoolbox[1]**: portability layer
- **oRTP[2]**: RTP stack
### Optional dependencies
- **libsrtp** for SRTP encryption
- **bzrtp[3]** for ZRTP encryption
- **libgsm**: GSM codecs support
- **libbv16**: BV16 codec support
- **libopus** for Opus encoding and decoding
- **libspeex**: SPEEX codec support
- **libspeex-dsp: resampler and AEC
- **libalsa**: ALSA support (GNU/Linux only)
- **libpulse**: PulseAudio support (GNU/Linux only)
- **libv4l2**: video capture (GNU/Linux only;disablable)
- **libx11** and libxv: video display with X11 (GNU/Linux only)
- **libglx**: video dispaly with GLX (GNU/Linux only)
- **libvpx** for VP8 encoding and decoding
- **libmastroska-c** for recording/playing of audio/video streams
- **libturbojpeg**: video screenshot feature
- **ffmpeg**, h264 decoder, mpeg4 and mjpeg encoder/decoders, rescaling and pixel conversion.
### Build instructions:
The Autotools way is deprecated. Use [CMake](https://cmake.org) to configure the source code.
cmake . -DCMAKE_INSTALL_PREFIX= -DCMAKE_PREFIX_PATH=
make
make install
Alternatively, mediastreamer2 library is integrated in *linphone-sdk[4]* meta project, which provides a convenient way
to build it for various targets.
#### Supported options:
- `CMAKE_INSTALL_PREFIX=` : install prefix
- `CMAKE_PREFIX_PATH=` : column-separated list of prefixes where to search for dependencies
- `ENABLE_SHARED=NO` : do not build the shared library
- `ENABLE_STATIC=NO` : do not build the static library
- `ENABLE_STRICT=NO` : build without strict compilation flags (-Wall -Werror)
- `ENABLE_UNIT_TESTS=YES` : build tester binaries
- `ENABLE_DOC=NO` : do not generate the documentation
- `ENABLE_DEBUG_LOGS=YES` : turn on debug-level logs
#### Note for packagers:
Our CMake scripts may automatically add some paths into research paths of generated binaries.
To ensure that the installed binaries are striped of any rpath, use `-DCMAKE_SKIP_INSTALL_RPATH=ON`
while you invoke cmake.
Rpm packaging
mediastremer2 rpm can be generated with cmake3 using the following command:
mkdir WORK
cd WORK
cmake3 ../
make package_source
rpmbuild -ta --clean --rmsource --rmspec mediastreamer--.tar.gz
Environment variables used by mediastreamer2
--------------------------------------------
`MS2_RTP_FIXED_DELAY` : default value is 0. When set to 1, RTP packets belonging from one tick execution are actually sent at the beginning of the next tick.
This allows a zero jitter in the RTP timing at sender side. This is to be used for measurements, this mode has no interest for doing a real conversation and does not improve
quality.
`MS_AUDIO_PRIO`, `MS_VIDEO_PRIO` : define the scheduling policy of the audio and video threads (MSTicker objects). Possible values are 'NORMAL', 'HIGH', 'REALTIME'.
The corresponding behavior is as follows:
+-------------------+------------------------+------------------------+-------------------------+
| Priority type | GNU/Linux | MacOS | Windows |
+-------------------+------------------------+------------------------+-------------------------+
| NORMAL | SCHED_OTHER, def. prio | SCHED_OTHER, def. prio | Default priority. |
| HIGH | SCHED_RR, max prio | SCHED_RR, max prio | THREAD_PRIORITY_HIGHEST |
| REALTIME | SCHED_FIFO, max prio | SCHED_FIFO, max prio | THREAD_PRIORITY_HIGHEST |
+-------------------+------------------------+------------------------+-------------------------+
Note that `SCHED_FIFO` leaves entire control of the cpu to the mediastreamer2 thread. In case of CPU overload
due to heavy encoder processing for example, a mono-core machine will stop responding.
- `MS_TICKER_SCHEDPRIO` : UNIX only. It is an integer defining the thread priority to be used by MSTicker. Values
are OS specific and depend on the scheduling policy `SCHED_FIFO`, `SCHED_RR` or `SCHED_OTHER`.
- `MS2_OPUS_COMPLEXITY` : opus codec complexity parameter. A value of -1 stands for mediastreamer2's own default value.
Otherwise it must be between 0 and 10.
- `MEDIASTREAMER_DEBUG` : when set to 1, verbose logging is activated by default.
- `DISPLAY` : used by video display filters relying on X11 (GNU/Linux only).
Contact information
-------------------
Use the *linphone* mailing list for question about mediastreamer2.
.
Subscribe here:
--------------------------------------
- [1] git://git.linphone.org/bctoolbox.git *or*
- [2] git://git.linphone.org/ortp.git *or*
- [3] git://git.linphone.org/bzrtp.git *or*
- [4] linphone-sdk: https://gitlab.linphone.org/BC/public/linphone-sdk.git
mediastreamer2-5.2.0+dfsg/acinclude.m4 0000664 0000000 0000000 00000025371 14346134245 0017550 0 ustar 00root root 0000000 0000000 dnl -*- autoconf -*-
AC_DEFUN([MS_CHECK_DEP],[
dnl $1=dependency description
dnl $2=dependency short name, will be suffixed with _CFLAGS and _LIBS
dnl $3=headers's place
dnl $4=lib's place
dnl $5=header to check
dnl $6=lib to check
dnl $7=function to check in library
dep_name=$2
dep_headersdir=$3
dep_libsdir=$4
dep_header=$5
dep_lib=$6
dep_funclib=$7
other_libs=$8
CPPFLAGS_save=$CPPFLAGS
LDFLAGS_save=$LDFLAGS
LIBS_save=$LIBS
case "$target_os" in
*mingw*)
ms_check_dep_mingw_found=yes
;;
esac
if test "$ms_check_dep_mingw_found" != "yes" ; then
CPPFLAGS=`echo "-I$dep_headersdir"|sed -e "s:-I/usr/include[\ ]*$::"`
LDFLAGS=`echo "-L$dep_libsdir"|sed -e "s:-L/usr/lib\(64\)*[\ ]*::"`
else
CPPFLAGS="-I$dep_headersdir"
LDFLAGS="-L$dep_libsdir"
fi
LIBS="-l$dep_lib"
$2_CFLAGS="$CPPFLAGS"
$2_LIBS="$LDFLAGS $LIBS"
AC_CHECK_HEADERS([$dep_header],[AC_CHECK_LIB([$dep_lib],[$dep_funclib],found=yes,found=no, [$other_libs])
],found=no)
if test "$found" = "yes" ; then
eval $2_found=yes
else
eval $2_found=no
eval $2_CFLAGS=
eval $2_LIBS=
fi
AC_SUBST($2_CFLAGS)
AC_SUBST($2_LIBS)
CPPFLAGS=$CPPFLAGS_save
LDFLAGS=$LDFLAGS_save
LIBS=$LIBS_save
])
AC_DEFUN([MS_CHECK_VIDEO],[
dnl conditionnal build of video support
AC_ARG_ENABLE(video,
[AS_HELP_STRING([--enable-video], [Turn on video support compiling (default=yes])],
[case "${enableval}" in
yes) video=true ;;
no) video=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-video) ;;
esac],[video=true])
AC_ARG_ENABLE(ffmpeg,
[AS_HELP_STRING([--disable-ffmpeg], [Disable ffmpeg support])],
[case "${enableval}" in
yes) ffmpeg=true ;;
no) ffmpeg=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-ffmpeg) ;;
esac],[ffmpeg=true])
if test "$video" = "true"; then
if test "$macosx_found" = "yes" ; then
dnl we use quartz+opengl directly on mac os for video display.
enable_sdl_default=false
enable_x11_default=false
enable_glx_default=false
LIBS="$LIBS -framework QTKit -framework CoreVideo "
dnl the following check is necessary but due to automake bug it forces every platform to have an objC compiler !
dnl AC_LANG_PUSH([Objective C])
dnl AC_CHECK_HEADERS([QTKit/QTKit.h],[],[AC_MSG_ERROR([QTKit framework not found, required for video support])])
dnl AC_LANG_POP([Objective C])
elif test "$ios_found" = "yes" ; then
enable_sdl_default=false
enable_x11_default=false
enable_glx_default=false
LIBS="$LIBS -lstdc++"
elif test "$ms_check_dep_mingw_found" = "yes" ; then
enable_sdl_default=false
enable_x11_default=false
enable_glx_default=false
else
enable_sdl_default=false
enable_x11_default=true
enable_glx_default=true
fi
if test "$ffmpeg" = "true"; then
dnl test for ffmpeg presence
PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 51.0.0 ],avcodec_found=yes , avcodec_found=no)
if test x$avcodec_found = xno ; then
AC_MSG_WARN([Could not find libavcodec (from ffmpeg) headers and library.])
else
FFMPEG_LIBS="$FFMPEG_LIBS -lavutil"
fi
PKG_CHECK_MODULES(SWSCALE, [libswscale >= 0.7.0 ],swscale_found=yes , swscale_found=no)
if test x$swscale_found = xno ; then
AC_MSG_ERROR([Could not find libswscale (from ffmpeg) headers and library. This is mandatory for video support])
fi
dnl check for new/old ffmpeg header file layout
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$FFMPEG_CFLAGS $CPPFLAGS -Wno-error"
AC_CHECK_HEADERS(libavcodec/avcodec.h)
AC_CHECK_HEADER(libavcodec/old_codec_ids.h,[ old_codec_ids_found=yes
AC_DEFINE(HAVE_AVCODEC_OLD_CODEC_IDS,1,[for compatibility purpose with old ffmpeg])]
,[old_codec_ids_found=no],[#include "libavcodec/avcodec.h"])
AC_MSG_CHECKING([AV_CODEC_ID_SNOW])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]],
[[enum AVCodecID toto=AV_CODEC_ID_SNOW;if(toto){}]])]
,[if test x$old_codec_ids_found = xno ; then
AC_DEFINE(CODEC_ID_SNOW,AV_CODEC_ID_SNOW,[for compatibility purpose with old ffmpeg])
fi
AC_DEFINE(HAVE_AVCODEC_SNOW,1,[for compatibility purpose with old ffmpeg])
AC_MSG_RESULT([found])]
,[AC_MSG_RESULT([not found])])
AC_MSG_CHECKING([CODEC_ID_SNOW])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]],
[[enum CodecID toto=CODEC_ID_SNOW;if (toto){}]])]
,[AC_DEFINE(HAVE_AVCODEC_SNOW,1,[for compatibility purpose with old ffmpeg])
AC_MSG_RESULT([found])]
,[AC_MSG_RESULT([not found])])
CPPFLAGS=$CPPFLAGS_save
LIBS_save=$LIBS
dnl to workaround a bug on debian and ubuntu, check if libavcodec needs -lvorbisenc to compile
AC_CHECK_LIB(avcodec,avcodec_register_all, novorbis=yes , [
LIBS="$LIBS -lvorbisenc"
], $FFMPEG_LIBS )
LIBS=$LIBS_save
dnl when swscale feature is not provided by
dnl libswscale, its features are swallowed by
dnl libavcodec, but without swscale.h and without any
dnl declaration into avcodec.h (this is to be
dnl considered as an ffmpeg bug).
dnl
dnl #if defined(HAVE_LIBAVCODEC_AVCODEC_H) && !defined(HAVE_LIBSWSCALE_SWSCALE_H)
dnl # include "swscale.h" // private linhone swscale.h
dnl #endif
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$SWSCALE_CFLAGS $CPPFLAGS -Wno-error"
AC_CHECK_HEADERS(libswscale/swscale.h)
CPPFLAGS=$CPPFLAGS_save
LIBS_save=$LIBS
dnl check if we need to emulate newer functions
AC_CHECK_LIB(avcodec,avcodec_get_context_defaults3, [AC_DEFINE([HAVE_FUN_avcodec_get_context_defaults3], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
AC_CHECK_LIB(avcodec,avcodec_open2, [AC_DEFINE([HAVE_FUN_avcodec_open2], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
AC_CHECK_LIB(avcodec,avcodec_encode_video2, [AC_DEFINE([HAVE_FUN_avcodec_encode_video2], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
AC_CHECK_LIB(avutil,av_frame_alloc, [AC_DEFINE([HAVE_FUN_av_frame_alloc], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
AC_CHECK_LIB(avutil,av_frame_free, [AC_DEFINE([HAVE_FUN_av_frame_free], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
AC_CHECK_LIB(avutil,av_frame_unref, [AC_DEFINE([HAVE_FUN_av_frame_unref], [], [Have ffmpeg function])] , , $FFMPEG_LIBS )
LIBS=$LIBS_save
AC_ARG_ENABLE(sdl,
[AS_HELP_STRING([--disable-sdl], [Disable SDL support (default: disabled except on macos)])],
[case "${enableval}" in
yes) enable_sdl=true ;;
no) enable_sdl=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-sdl) ;;
esac],[enable_sdl=$enable_sdl_default])
sdl_found="false"
if test "$enable_sdl" = "true"; then
PKG_CHECK_MODULES(SDL, [sdl >= 1.2.0 ],sdl_found=true,[AC_MSG_ERROR([No SDL library found])])
fi
AC_ARG_ENABLE(x11,
[AS_HELP_STRING([--disable-x11], [Disable X11 support])],
[case "${enableval}" in
yes) enable_x11=true ;;
no) enable_x11=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-x11) ;;
esac],[enable_x11=$enable_x11_default])
if test "$enable_x11" = "true"; then
AC_CHECK_HEADERS(X11/Xlib.h)
else
enable_xv=no
enable_glx=no
fi
AC_ARG_ENABLE(xv,
[AS_HELP_STRING([--enable-xv], [Enable xv support])],
[case "${enableval}" in
yes) enable_xv=true ;;
no) enable_xv=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-xv) ;;
esac],[enable_xv=$enable_x11_default])
if test "$enable_xv" = "true"; then
AC_CHECK_HEADERS(X11/extensions/Xv.h,[] ,[enable_xv=false])
AC_CHECK_HEADERS(X11/extensions/Xvlib.h,[] ,[enable_xv=false],[
#include
])
AC_CHECK_LIB(Xv,XvCreateImage,[LIBS="$LIBS -lXv"],[enable_xv=false])
if test "$enable_xv" = "false" ; then
AC_MSG_ERROR([No X video output API found. Please install X11+Xv headers.])
fi
fi
fi
AC_ARG_ENABLE(glx,
[AS_HELP_STRING([--enable-glx], [Enable X11+OpenGL rendering support (requires glx and glew)])],
[case "${enableval}" in
yes) enable_glx=true ;;
no) enable_glx=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-glx) ;;
esac],[enable_glx=$enable_glx_default])
if test "$enable_glx" = "true"; then
AC_CHECK_HEADERS(GL/gl.h,[] ,[enable_glx=false])
AC_CHECK_HEADERS(GL/glx.h,[] ,[enable_glx=false],[
#include
])
if test "$enable_glx" = "false" ; then
AC_MSG_ERROR([No GL/GLX API found. Please install GL and GLX headers.])
fi
PKG_CHECK_MODULES(GLEW,[glew >= 1.5])
AC_CHECK_HEADERS(X11/Xlib.h)
AC_DEFINE(HAVE_GLX, 1, [defined if GLX is available])
fi
AC_ARG_ENABLE(theora,
[AS_HELP_STRING([--disable-theora], [Disable theora support])],
[case "${enableval}" in
yes) theora=true ;;
no) theora=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-theora) ;;
esac],[theora=true])
if test x$theora = xtrue; then
PKG_CHECK_MODULES(THEORA, [theora >= 1.0alpha7 ], [have_theora=yes],
[have_theora=no])
fi
AC_ARG_ENABLE(vp8,
[AS_HELP_STRING([--disable-vp8], [Disable vp8 support])],
[case "${enableval}" in
yes) vp8=true ;;
no) vp8=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-vp8) ;;
esac],[vp8=true])
vp8dir=/usr
if test x$vp8 = xtrue; then
PKG_CHECK_MODULES(VP8, [vpx >= 0.9.6 ], [have_vp8=yes],
[have_vp8=no])
if test "$have_vp8" = "no" ; then
MS_CHECK_DEP([VP8 codec],[VP8],[${vp8dir}/include],
[${vp8dir}/lib],[vpx/vpx_encoder.h],[vpx],[vpx_codec_encode])
if test "$VP8_found" = "yes" ; then
have_vp8=yes
fi
fi
fi
if test "$ffmpeg" = "false"; then
FFMPEG_CFLAGS=" $FFMPEG_CFLAGS -DNO_FFMPEG"
fi
VIDEO_CFLAGS=" $FFMPEG_CFLAGS -DVIDEO_ENABLED"
VIDEO_LIBS=" $FFMPEG_LIBS $SWSCALE_LIBS"
if test "$sdl_found" = "true" ; then
VIDEO_CFLAGS="$VIDEO_CFLAGS $SDL_CFLAGS -DHAVE_SDL"
VIDEO_LIBS="$VIDEO_LIBS $SDL_LIBS"
fi
if test "${ac_cv_header_X11_Xlib_h}" = "yes" ; then
VIDEO_LIBS="$VIDEO_LIBS -lX11"
fi
if test "$mingw_found" = "yes" ; then
VIDEO_LIBS="$VIDEO_LIBS -lvfw32 -lgdi32"
fi
if test "$ios_found" = "yes" ; then
LIBS="$LIBS -framework AVFoundation -framework CoreVideo -framework CoreMedia"
fi
if test "$enable_glx" = "true"; then
VIDEO_LIBS="$VIDEO_LIBS -lGL -lGLEW"
VIDEO_CFLAGS="$VIDEO_CFLAGS -DHAVE_GL"
fi
if test "$enable_xv" = "true"; then
VIDEO_CFLAGS="$VIDEO_CFLAGS -DHAVE_XV"
fi
fi
AC_SUBST(VIDEO_CFLAGS)
AC_SUBST(VIDEO_LIBS)
])
mediastreamer2-5.2.0+dfsg/autogen.sh 0000775 0000000 0000000 00000004273 14346134245 0017356 0 ustar 00root root 0000000 0000000 #!/bin/sh
##
## Copyright (c) 2010-2022 Belledonne Communications SARL.
##
## This file is part of mediastreamer2
## (see https://gitlab.linphone.org/BC/public/mediastreamer2).
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program. If not, see .
##
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
#AM_VERSION="1.10"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
# automake-1.10 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL=aclocal
else
ACLOCAL=aclocal-${AM_VERSION}
AUTOMAKE=automake-${AM_VERSION}
fi
INTLTOOLIZE=$(which intltoolize)
#workaround for mingw bug in intltoolize script.
if test "$INTLTOOLIZE" = "/bin/intltoolize" ; then
INTLTOOLIZE=/usr/bin/intltoolize
fi
libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
if test -x /usr/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /usr/local/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /opt/local/bin/$lt ; then
libtoolize=$lt ; break
fi
done
if test -d /usr/local/share/aclocal ; then
ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal"
fi
if test -d /share/aclocal ; then
ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
fi
echo "Generating build scripts in mediastreamer..."
set -x
$libtoolize --copy --force
$INTLTOOLIZE --copy --force --automake
$ACLOCAL -I m4 $ACLOCAL_ARGS
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf
#install git pre-commit hooks if possible
if [ -d .git/hooks ] && [ ! -f .git/hooks/pre-commit ]; then
cp .git-pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
fi
cd $THEDIR
mediastreamer2-5.2.0+dfsg/build/ 0000775 0000000 0000000 00000000000 14346134245 0016446 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/.gitignore 0000664 0000000 0000000 00000000025 14346134245 0020433 0 ustar 00root root 0000000 0000000 Makefile.in
Makefile
mediastreamer2-5.2.0+dfsg/build/CMakeLists.txt 0000664 0000000 0000000 00000002521 14346134245 0021206 0 ustar 00root root 0000000 0000000 ############################################################################
# Copyright (c) 2010-2022 Belledonne Communications SARL.
#
# This file is part of mediastreamer2
# (see https://gitlab.linphone.org/BC/public/mediastreamer2).
#
############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
############################################################################
cmake_minimum_required(VERSION 3.11) # we need CMake 3.11 for defining 'package_source' target as custom target
if(NOT CPACK_PACKAGE_NAME)
set(CPACK_PACKAGE_NAME "mediastreamer")
endif()
set(CPACK_SOURCE_IGNORE_FILES
"${CMAKE_BINARY_DIR}"
"^${PROJECT_SOURCE_DIR}/.git*"
)
bc_make_package_source_target()
mediastreamer2-5.2.0+dfsg/build/android/ 0000775 0000000 0000000 00000000000 14346134245 0020066 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/android/Android.mk 0000664 0000000 0000000 00000022324 14346134245 0022002 0 ustar 00root root 0000000 0000000 ##
## Android.mk -Android build script-
##
##
## Copyright (C) 2010 Belledonne Communications, Grenoble, France
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Library General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
LOCAL_PATH:= $(call my-dir)/../../src
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
MEDIASTREAMER2_INCLUDES := \
$(LOCAL_PATH)/../build/android \
$(LOCAL_PATH)/base \
$(LOCAL_PATH)/utils \
$(LOCAL_PATH)/voip \
$(LOCAL_PATH)/audiofilters \
$(LOCAL_PATH)/android \
$(LOCAL_PATH)/otherfilters \
$(LOCAL_PATH)/videofilters \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../../oRTP \
$(LOCAL_PATH)/../../oRTP/include \
$(LOCAL_PATH)/../../../bctoolbox/include \
$(LOCAL_PATH)/../../../externals/speex/include \
$(LOCAL_PATH)/../../../externals/build/speex \
$(LOCAL_PATH)/../../../externals/gsm/inc \
$(LOCAL_PATH)/../../../externals/ffmpeg \
$(LOCAL_PATH)/../../../externals/ \
$(LOCAL_PATH)/../../../externals/build/ffmpeg/$(TARGET_ARCH) \
$(LOCAL_PATH)/../../../externals/libvpx/
LOCAL_MODULE := libmediastreamer2
LOCAL_SRC_FILES = \
android/androidsound.cpp \
android/androidsound_depr.cpp \
android/androidsound_opensles.cpp \
android/AudioRecord.cpp \
android/AudioSystem.cpp \
android/AudioTrack.cpp \
android/hardware_echo_canceller.cpp \
android/loader.cpp \
android/String8.cpp \
audiofilters/aac-eld-android.cpp \
audiofilters/alaw.c \
audiofilters/audiomixer.c \
audiofilters/devices.c \
audiofilters/dtmfgen.c \
audiofilters/equalizer.c \
audiofilters/flowcontrol.c \
audiofilters/g711.c \
audiofilters/genericplc.c \
audiofilters/msgenericplc.c \
audiofilters/l16.c \
audiofilters/msfileplayer.c \
audiofilters/msfilerec.c \
audiofilters/msg722.c \
audiofilters/msresample.c \
audiofilters/msvaddtx.c \
audiofilters/msvolume.c \
audiofilters/tonedetector.c \
audiofilters/ulaw.c \
base/eventqueue.c \
base/mscommon.c \
base/msfactory.c \
base/msfilter.c \
base/msqueue.c \
base/mssndcard.c \
base/msticker.c \
base/msvideopresets.c \
base/mswebcam.c \
base/mtu.c \
crypto/dtls_srtp.c \
crypto/ms_srtp.c \
crypto/zrtp.c \
otherfilters/itc.c \
otherfilters/join.c \
otherfilters/msrtp.c \
otherfilters/tee.c \
otherfilters/void.c \
utils/audiodiff.c \
utils/dsptools.c \
utils/g722_decode.c \
utils/g722_encode.c \
utils/kiss_fft.c \
utils/kiss_fftr.c \
utils/msjava.c \
utils/stream_regulator.c \
voip/audioconference.c \
voip/audiostream.c \
voip/bitratecontrol.c \
voip/bitratedriver.c \
voip/ice.c \
voip/mediastream.c \
voip/msmediaplayer.c \
voip/msvoip.c \
voip/qosanalyzer.c \
voip/qualityindicator.c \
voip/ringstream.c \
voip/stun.c \
voip/stun_udp.c \
otherfilters/rfc4103_source.c \
otherfilters/rfc4103_sink.c \
voip/rfc4103_textstream.c
LOCAL_STATIC_LIBRARIES := libbctoolbox
LOCAL_CFLAGS += -D_XOPEN_SOURCE=600
##if BUILD_ALSA
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_SRC_FILES += audiofilters/alsa.c
LOCAL_CFLAGS += -D__ALSA_ENABLED__
endif
ifeq ($(BUILD_SRTP), 1)
LOCAL_C_INCLUDES += $(SRTP_C_INCLUDE)
LOCAL_CFLAGS += -DHAVE_SRTP
else
endif
LOCAL_STATIC_LIBRARIES += polarssl
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../externals/polarssl/include
LOCAL_CFLAGS += -DHAVE_POLARSSL_SSL_H=1 -DHAVE_DTLS=1
ifeq ($(_BUILD_VIDEO),1)
LOCAL_SRC_FILES += \
voip/video_preset_high_fps.c \
voip/videostarter.c \
voip/videostream.c \
voip/rfc3984.c \
voip/vp8rtpfmt.c \
voip/layouts.c \
utils/shaders.c \
utils/opengles_display.c \
utils/ffmpeg-priv.c \
videofilters/videoenc.c \
videofilters/videodec.c \
videofilters/pixconv.c \
videofilters/sizeconv.c \
videofilters/nowebcam.c \
videofilters/h264dec.c \
videofilters/mire.c \
videofilters/vp8.c \
videofilters/jpegwriter.c \
videofilters/msv4l2.c \
android/mediacodech264dec.c \
android/mediacodech264enc.c \
android/android_mediacodec.cpp \
android/android-display.c \
android/android-display-bad.cpp \
android/androidvideo.cpp \
android/android-opengl-display.c
#uncomment this if you want to try loading v4l2 cameras on android (not really supported by google).
#LOCAL_CFLAGS += -DHAVE_LINUX_VIDEODEV2_H=1
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DVIDEO_ENABLED
LOCAL_SRC_FILES+= \
voip/scaler.c.neon \
voip/scaler_arm.S.neon \
voip/msvideo.c \
voip/msvideo_neon.c.neon
else
ifeq ($(TARGET_ARCH), x86)
LOCAL_CFLAGS += -DVIDEO_ENABLED
endif
LOCAL_SRC_FILES+= \
voip/scaler.c \
voip/msvideo.c
endif
ifeq ($(BUILD_MATROSKA), 1)
LOCAL_CFLAGS += \
-DHAVE_MATROSKA \
-DCONFIG_EBML_WRITING \
-DCONFIG_EBML_UNICODE \
-DCONFIG_STDIO \
-DCONFIG_FILEPOS_64 \
-DNDEBUG
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../../../externals/libmatroska-c \
$(LOCAL_PATH)/../../../externals/libmatroska-c/corec \
$(LOCAL_PATH)/../../../externals/libmatroska-c/libebml2 \
$(LOCAL_PATH)/../../../externals/libmatroska-c/libmatroska2
LOCAL_SRC_FILES += \
utils/mkv_reader.c \
videofilters/mkv.c
LOCAL_STATIC_LIBRARIES += \
libmatroska2
endif #BUILD_MATROSKA
endif #_BUILD_VIDEO
ifeq ($(BUILD_NON_FREE_CODECS),1)
LOCAL_CFLAGS += -DHAVE_NON_FREE_CODECS=1
else
LOCAL_CFLAGS += -DHAVE_NON_FREE_CODECS=0
endif
ifeq ($(BUILD_OPUS),1)
LOCAL_CFLAGS += -DHAVE_OPUS
LOCAL_SRC_FILES += \
audiofilters/msopus.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../../../externals/opus/include
endif
ifeq ($(BUILD_UPNP),1)
LOCAL_CFLAGS += -DBUILD_UPNP -DPTHREAD_MUTEX_RECURSIVE=PTHREAD_MUTEX_RECURSIVE
LOCAL_SRC_FILES += \
upnp/upnp_igd.c \
upnp/upnp_igd_cmd.c \
upnp/upnp_igd_utils.c \
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../../../externals/build/libupnp/inc \
$(LOCAL_PATH)/../../../externals/libupnp/upnp/inc \
$(LOCAL_PATH)/../../../externals/libupnp/threadutil/inc \
$(LOCAL_PATH)/../../../externals/libupnp/ixml/inc \
LOCAL_STATIC_LIBRARIES += libupnp
endif
#LOCAL_SRC_FILES += voip/videostream.c
#
##if BUILD_THEORA
#LOCAL_SRC_FILES += videofilters/theora.c
#if BUILD_SPEEX
LOCAL_SRC_FILES += \
audiofilters/msspeex.c \
audiofilters/speexec.c
##if BUILD_GSM
LOCAL_SRC_FILES += audiofilters/gsm.c
LOCAL_CFLAGS += \
-UHAVE_CONFIG_H \
-include $(LOCAL_PATH)/../build/android/libmediastreamer2_AndroidConfig.h \
-DMS2_INTERNAL \
-DMS2_FILTERS \
-D_POSIX_SOURCE \
-Wall -Werror -Wno-error=strict-aliasing -Wuninitialized
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DUSE_HARDWARE_RATE=1
endif
#LOCAL_CFLAGS += -DDEBUG
LOCAL_C_INCLUDES += \
$(MEDIASTREAMER2_INCLUDES)
LOCAL_STATIC_LIBRARIES += \
libortp \
libspeex \
libspeexdsp
ifeq ($(BUILD_ZRTP), 1)
LOCAL_STATIC_LIBRARIES += libbzrtp
LOCAL_CFLAGS += -DHAVE_ZRTP
LOCAL_C_INCLUDES += $(ZRTP_C_INCLUDE)
endif #ZRTP
ifneq ($(BUILD_WEBRTC_AECM)$(BUILD_WEBRTC_ISAC), 00)
LOCAL_CFLAGS += -DHAVE_WEBRTC
LOCAL_STATIC_LIBRARIES += libmswebrtc
endif
ifneq ($(BUILD_WEBRTC_AECM), 0)
LOCAL_STATIC_LIBRARIES += \
libwebrtc_aecm \
libwebrtc_apm_utility \
libwebrtc_spl \
libwebrtc_system_wrappers
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_STATIC_LIBRARIES += \
libwebrtc_aecm_neon \
libwebrtc_spl_neon
endif
endif
ifneq ($(BUILD_WEBRTC_ISAC), 0)
LOCAL_STATIC_LIBRARIES += libwebrtc_spl libwebrtc_isacfix
endif
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_SHARED_LIBRARIES += libasound
endif
LOCAL_STATIC_LIBRARIES += cpufeatures
ifeq ($(BUILD_MEDIASTREAMER2_SDK), 1)
LOCAL_SRC_FILES += \
../tools/common.c \
../tools/mediastream.c
ifneq ($(_BUILD_AMR), 0)
LOCAL_CFLAGS += -DHAVE_AMR
LOCAL_STATIC_LIBRARIES += libmsamr libopencoreamr
endif
ifneq ($(BUILD_AMRWB), 0)
LOCAL_STATIC_LIBRARIES += libvoamrwbenc
endif
ifeq ($(BUILD_SILK),1)
LOCAL_CFLAGS += -DHAVE_SILK
LOCAL_STATIC_LIBRARIES += libmssilk
endif
LOCAL_STATIC_LIBRARIES += libgsm
ifeq ($(BUILD_OPUS),1)
LOCAL_STATIC_LIBRARIES += libopus
endif
ifeq ($(BUILD_G729),1)
LOCAL_CFLAGS += -DHAVE_G729
LOCAL_STATIC_LIBRARIES += libbcg729 libmsbcg729
endif
ifeq ($(BUILD_CODEC2),1)
LOCAL_CFLAGS += -DHAVE_CODEC2
LOCAL_STATIC_LIBRARIES += libcodec2 libmscodec2
endif
ifeq ($(_BUILD_VIDEO),1)
LOCAL_STATIC_LIBRARIES += libvpx
ifeq ($(BUILD_X264),1)
LOCAL_STATIC_LIBRARIES += libmsx264 libx264
endif
ifeq ($(BUILD_OPENH264),1)
LOCAL_STATIC_LIBRARIES += libmsopenh264 libopenh264
endif
LOCAL_SHARED_LIBRARIES += \
libffmpeg-linphone
LOCAL_LDLIBS += -lGLESv2
endif
ifeq ($(BUILD_SRTP),1)
LOCAL_SHARED_LIBRARIES += libsrtp
endif
ifeq ($(BUILD_GPLV3_ZRTP),1)
LOCAL_SHARED_LIBRARIES += libssl-linphone libcrypto-linphone
LOCAL_SHARED_LIBRARIES += libzrtpcpp
endif
LOCAL_LDLIBS += -llog -ldl
LOCAL_MODULE_FILENAME := libmediastreamer2-$(TARGET_ARCH_ABI)
include $(BUILD_SHARED_LIBRARY)
else
include $(BUILD_STATIC_LIBRARY)
endif
LOCAL_CPPFLAGS = $(LOCAL_CLFAGS)
LOCAL_CFLAGS += -Wdeclaration-after-statement
$(call import-module,android/cpufeatures)
mediastreamer2-5.2.0+dfsg/build/android/basedescs.h 0000664 0000000 0000000 00000002175 14346134245 0022200 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#include "mediastreamer2/msfilter.h"
extern MSFilterDesc ms_tee_desc;
extern MSFilterDesc ms_join_desc;
extern MSFilterDesc ms_void_source_desc;
extern MSFilterDesc ms_void_sink_desc;
MSFilterDesc * ms_base_filter_descs[]={
&ms_tee_desc,
&ms_join_desc,
&ms_void_source_desc,
&ms_void_sink_desc,
NULL
};
mediastreamer2-5.2.0+dfsg/build/android/libmediastreamer2_AndroidConfig.h 0000775 0000000 0000000 00000014470 14346134245 0026431 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
/* mediastreamer-config.h. Generated from mediastreamer-config.h.in by configure. */
/* mediastreamer-config.h.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
#define C_ALLOCA 1
/* Define to 1 if you have `alloca', as a function or macro. */
/* #undef HAVE_ALLOCA */
/* Define to 1 if you have and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_ALSA_ASOUNDLIB_H */
/* Define to 1 if you have the header file. */
#define HAVE_DLFCN_H 1
/* Defined if dlopen() is availlable */
/*#define HAVE_DLOPEN 1*/
/* Define to 1 if you have the header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_KDE_ARTSC_ARTSC_H */
/* Define to 1 if you have the header file. */
#define HAVE_LIBAVCODEC_AVCODEC_H 1
/* Define to 1 if you have the header file. */
#define HAVE_LIBSWSCALE_SWSCALE_H 1
/* Define to 1 if you have the header file. */
/*#define HAVE_LINUX_VIDEODEV2_H 1 */
/* Define to 1 if you have the header file. */
/*#define HAVE_LINUX_VIDEODEV_H 1 */
/* Define to 1 if you have the header file. */
/* #undef HAVE_MACHINE_SOUNDCARD_H */
/* Define to 1 if you have the header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_PORTAUDIO_H */
/* Define to 1 if you have the header file. */
#define HAVE_SOUNDCARD_H 1
/* tells whether the noise arg of speex_echo_cancel can be used */
#define HAVE_SPEEX_NOISE 1
/* Define to 1 if you have the header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_AUDIO_H */
/* Define to 1 if you have the header file. */
/* #undef HAVE_SYS_SOUNDCARD_H */
/* Define to 1 if you have the header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the header file. */
#define HAVE_UNISTD_H 1
/* Have ffmpeg function */
#define HAVE_FUN_avcodec_encode_video2 /**/
/* Have ffmpeg function */
#define HAVE_FUN_avcodec_get_context_defaults3 /**/
/* Have ffmpeg function */
#define HAVE_FUN_avcodec_open2 /**/
/* Define to 1 if you have the header file. */
/* #undef HAVE_X11_XLIB_H */
/* major version */
#define MEDIASTREAMER_MAJOR_VERSION 2
/* micro version */
#define MEDIASTREAMER_MICRO_VERSION 2
/* minor version */
#define MEDIASTREAMER_MINOR_VERSION 2
/* MEDIASTREAMER version number */
#define MEDIASTREAMER_VERSION "2.2.2"
/* Name of package */
#define PACKAGE "mediastreamer"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* path of data */
#define PACKAGE_DATA_DIR "/system/share"
/* Define to the full name of this package. */
#define PACKAGE_NAME "mediastreamer"
/* Path of plugins */
#define PACKAGE_PLUGINS_DIR "/system/lib"
/* Plugins prefix */
#define PACKAGE_PLUGINS_PREFIX "libms"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "mediastreamer 2.2.2"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "mediastreamer"
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.2.2"
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#define STACK_DIRECTION 0
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if you can safely include both and . */
#define TIME_WITH_SYS_TIME 1
/* Version number of package */
#define VERSION "2.2.2"
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */
/* defined if alsa support is available */
/* #undef __ALSA_ENABLED__ */
/* defined if arts support is available */
/* #undef __ARTS_ENABLED__ */
/* Jack support */
/* #undef __JACK_ENABLED__ */
/* defined if native macosx sound support is available */
/* #undef __MACSND_ENABLED__ */
/* defined if native macosx AQ sound support is available */
/* #undef __MAC_AQ_ENABLED__ */
/* defined if portaudio support is available */
/* #undef __PORTAUDIO_ENABLED__ */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
/* Define to 1 if you have the header file. */
#define HAVE_POLARSSL_SSL_H 1
#ifndef __cplusplus
/* #undef inline */
#endif
mediastreamer2-5.2.0+dfsg/build/android/voipdescs.h 0000664 0000000 0000000 00000010001 14346134245 0022226 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#include "mediastreamer2/msfilter.h"
extern MSFilterDesc ms_alaw_dec_desc;
extern MSFilterDesc ms_alaw_enc_desc;
extern MSFilterDesc ms_ulaw_dec_desc;
extern MSFilterDesc ms_ulaw_enc_desc;
extern MSFilterDesc ms_rtp_send_desc;
extern MSFilterDesc ms_rtp_recv_desc;
extern MSFilterDesc ms_dtmf_gen_desc;
extern MSFilterDesc ms_volume_desc;
extern MSFilterDesc ms_equalizer_desc;
extern MSFilterDesc ms_speex_dec_desc;
extern MSFilterDesc ms_speex_enc_desc;
extern MSFilterDesc ms_speex_ec_desc;
extern MSFilterDesc ms_file_player_desc;
extern MSFilterDesc ms_file_rec_desc;
extern MSFilterDesc ms_resample_desc;
extern MSFilterDesc aq_read_desc;
extern MSFilterDesc aq_write_desc;
extern MSFilterDesc ms_equalizer_desc;
extern MSFilterDesc ms_gsm_dec_desc;
extern MSFilterDesc ms_gsm_enc_desc;
extern MSFilterDesc ms_mpeg4_enc_desc;
extern MSFilterDesc ms_mpeg4_dec_desc;
extern MSFilterDesc ms_vp8_enc_desc;
extern MSFilterDesc ms_vp8_dec_desc;
extern MSFilterDesc ms_h263_enc_desc;
extern MSFilterDesc ms_h263_dec_desc;
extern MSFilterDesc ms_h263_old_dec_desc;
extern MSFilterDesc ms_h264_dec_desc;
extern MSFilterDesc ms_mediacodec_h265_dec_desc;
extern MSFilterDesc ms_mediacodec_h264_enc_desc;
extern MSFilterDesc ms_pix_conv_desc;
extern MSFilterDesc ms_size_conv_desc;
extern MSFilterDesc ms_tone_detector_desc;
extern MSFilterDesc ms_audio_mixer_desc;
extern MSFilterDesc ms_g722_dec_desc;
extern MSFilterDesc ms_g722_enc_desc;
extern MSFilterDesc ms_l16_enc_desc;
extern MSFilterDesc ms_l16_dec_desc;
extern MSFilterDesc ms_aac_eld_dec_desc;
extern MSFilterDesc ms_aac_eld_enc_desc;
extern MSFilterDesc ms_jpeg_writer_desc;
#if defined(BUILD_WEBRTC_AECM)
extern MSFilterDesc ms_webrtc_aec_desc;
#endif
extern MSFilterDesc ms_opus_dec_desc;
extern MSFilterDesc ms_opus_enc_desc;
extern MSFilterDesc ms_mkv_recorder_desc;
extern MSFilterDesc ms_mkv_player_desc;
extern MSFilterDesc ms_itc_source_desc;
extern MSFilterDesc ms_itc_sink_desc;
extern MSFilterDesc ms_vad_dtx_desc;
extern MSFilterDesc ms_genericplc_desc;
extern MSFilterDesc ms_rtt_4103_sink_desc;
extern MSFilterDesc ms_rtt_4103_source_desc;
MSFilterDesc * ms_voip_filter_descs[]={
&ms_alaw_dec_desc,
&ms_alaw_enc_desc,
&ms_ulaw_dec_desc,
&ms_ulaw_enc_desc,
&ms_rtp_send_desc,
&ms_rtp_recv_desc,
&ms_dtmf_gen_desc,
&ms_volume_desc,
&ms_speex_dec_desc,
&ms_speex_enc_desc,
&ms_speex_ec_desc,
&ms_file_player_desc,
&ms_file_rec_desc,
&ms_resample_desc,
&ms_equalizer_desc,
&ms_gsm_enc_desc,
&ms_gsm_dec_desc,
&ms_tone_detector_desc,
&ms_audio_mixer_desc,
&ms_g722_dec_desc,
&ms_g722_enc_desc,
&ms_l16_enc_desc,
&ms_l16_dec_desc,
&ms_aac_eld_enc_desc,
&ms_aac_eld_dec_desc,
#ifdef VIDEO_ENABLED
&ms_mpeg4_dec_desc,
&ms_h263_dec_desc,
&ms_h263_old_dec_desc,
&ms_h264_dec_desc,
&ms_mediacodec_h265_dec_desc,
&ms_mediacodec_h264_enc_desc,
&ms_pix_conv_desc,
&ms_size_conv_desc,
&ms_vp8_enc_desc,
&ms_vp8_dec_desc,
&ms_jpeg_writer_desc,
#ifdef HAVE_MATROSKA
&ms_mkv_recorder_desc,
&ms_mkv_player_desc,
#endif
#endif //VIDEO_ENABLED
#if defined(BUILD_WEBRTC_AECM)
&ms_webrtc_aec_desc,
#endif
#ifdef HAVE_OPUS
&ms_opus_dec_desc,
&ms_opus_enc_desc,
#endif
&ms_itc_source_desc,
&ms_itc_sink_desc,
&ms_vad_dtx_desc,
&ms_genericplc_desc,
&ms_rtt_4103_sink_desc,
&ms_rtt_4103_source_desc,
NULL
};
mediastreamer2-5.2.0+dfsg/build/git-pre-commit-hook 0000775 0000000 0000000 00000000201 14346134245 0022160 0 ustar 00root root 0000000 0000000 GITVERSION_FILE=src/gitversion.h
echo -n "#define GIT_VERSION " > $GITVERSION_FILE
echo \"`git describe`\" >> $GITVERSION_FILE
mediastreamer2-5.2.0+dfsg/build/iphone/ 0000775 0000000 0000000 00000000000 14346134245 0017730 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/iphone/basedescs.h 0000664 0000000 0000000 00000002361 14346134245 0022037 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#include "mediastreamer2/msfilter.h"
extern MSFilterDesc ms_tee_desc;
extern MSFilterDesc ms_join_desc;
extern MSFilterDesc ms_void_source_desc;
extern MSFilterDesc ms_void_sink_desc;
extern MSFilterDesc ms_itc_source_desc;
extern MSFilterDesc ms_itc_sink_desc;
MSFilterDesc * ms_base_filter_descs[]={
&ms_tee_desc,
&ms_join_desc,
&ms_void_source_desc,
&ms_void_sink_desc,
&ms_itc_source_desc,
&ms_itc_sink_desc,
NULL
};
mediastreamer2-5.2.0+dfsg/build/iphone/voipdescs.h 0000775 0000000 0000000 00000007332 14346134245 0022110 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#include "mediastreamer2/msfilter.h"
extern MSFilterDesc ms_alaw_dec_desc;
extern MSFilterDesc ms_alaw_enc_desc;
extern MSFilterDesc ms_ulaw_dec_desc;
extern MSFilterDesc ms_ulaw_enc_desc;
extern MSFilterDesc ms_rtp_send_desc;
extern MSFilterDesc ms_rtp_recv_desc;
extern MSFilterDesc ms_dtmf_gen_desc;
extern MSFilterDesc ms_volume_desc;
extern MSFilterDesc ms_equalizer_desc;
extern MSFilterDesc ms_channel_adapter_desc;
extern MSFilterDesc ms_audio_mixer_desc;
extern MSFilterDesc ms_tone_detector_desc;
extern MSFilterDesc ms_speex_dec_desc;
extern MSFilterDesc ms_speex_enc_desc;
extern MSFilterDesc ms_speex_ec_desc;
extern MSFilterDesc ms_gsm_dec_desc;
extern MSFilterDesc ms_gsm_enc_desc;
extern MSFilterDesc ms_file_player_desc;
extern MSFilterDesc ms_file_rec_desc;
extern MSFilterDesc ms_resample_desc;
extern MSFilterDesc au_read_desc;
extern MSFilterDesc au_write_desc;
extern MSFilterDesc ms_mpeg4_dec_desc;
extern MSFilterDesc ms_h263_dec_desc;
extern MSFilterDesc ms_h263_old_dec_desc;
extern MSFilterDesc ms_snow_dec_desc;
extern MSFilterDesc ms_jpeg_dec_desc;
extern MSFilterDesc ms_mjpeg_dec_desc;
extern MSFilterDesc ms_pix_conv_desc;
extern MSFilterDesc ms_size_conv_desc;
extern MSFilterDesc ms_static_image_desc;
//extern MSFilterDesc ms_h264_dec_desc;
extern MSFilterDesc ms_jpeg_writer_desc;
extern MSFilterDesc ms_mire_desc;
extern MSFilterDesc ms_ext_display_desc;
extern MSFilterDesc ms_iosdisplay_desc;
extern MSFilterDesc ms_ioscapture_desc;
extern MSFilterDesc ms_g722_enc_desc;
extern MSFilterDesc ms_g722_dec_desc;
extern MSFilterDesc ms_vp8_enc_desc;
extern MSFilterDesc ms_vp8_dec_desc;
extern MSFilterDesc ms_l16_enc_desc;
extern MSFilterDesc ms_l16_dec_desc;
extern MSFilterDesc ms_aac_eld_enc_desc;
extern MSFilterDesc ms_aac_eld_dec_desc;
extern MSFilterDesc ms_opus_dec_desc;
extern MSFilterDesc ms_opus_enc_desc;
//extern MSFilterDesc ms_vt_h264_enc;
//extern MSFilterDesc ms_vt_h264_dec;
MSFilterDesc * ms_voip_filter_descs[]={
&ms_alaw_dec_desc,
&ms_alaw_enc_desc,
&ms_ulaw_dec_desc,
&ms_ulaw_enc_desc,
&ms_rtp_send_desc,
&ms_rtp_recv_desc,
&ms_dtmf_gen_desc,
&ms_volume_desc,
&ms_equalizer_desc,
&ms_channel_adapter_desc,
&ms_audio_mixer_desc,
&ms_tone_detector_desc,
&ms_speex_dec_desc,
&ms_speex_enc_desc,
&ms_speex_ec_desc,
&ms_gsm_dec_desc,
&ms_gsm_enc_desc,
&ms_file_player_desc,
&ms_file_rec_desc,
&ms_resample_desc,
&au_read_desc,
&au_write_desc,
&ms_mpeg4_dec_desc,
&ms_h263_dec_desc,
&ms_h263_old_dec_desc,
&ms_snow_dec_desc,
&ms_jpeg_dec_desc,
&ms_mjpeg_dec_desc,
&ms_pix_conv_desc,
&ms_size_conv_desc,
&ms_static_image_desc,
//&ms_vt_h264_enc,
//&ms_vt_h264_dec,
//&ms_h264_dec_desc,
&ms_jpeg_writer_desc,
&ms_mire_desc,
&ms_ext_display_desc,
&ms_iosdisplay_desc,
&ms_ioscapture_desc,
&ms_g722_enc_desc,
&ms_g722_dec_desc,
&ms_vp8_enc_desc,
&ms_vp8_dec_desc,
&ms_g722_dec_desc,
&ms_l16_enc_desc,
&ms_l16_dec_desc,
&ms_aac_eld_enc_desc,
&ms_aac_eld_dec_desc,
&ms_opus_dec_desc,
&ms_opus_enc_desc,
NULL
};
mediastreamer2-5.2.0+dfsg/build/osx/ 0000775 0000000 0000000 00000000000 14346134245 0017257 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/osx/Info.plist.in 0000664 0000000 0000000 00000002736 14346134245 0021644 0 ustar 00root root 0000000 0000000
CFBundleDevelopmentRegion
English
CFBundleExecutable
mediastreamer2
CFBundleGetInfoString
${MACOSX_BUNDLE_INFO_STRING}
CFBundleIconFile
${MACOSX_BUNDLE_ICON_FILE}
CFBundleIdentifier
${MACOSX_FRAMEWORK_IDENTIFIER}
LSMinimumSystemVersion
${MIN_OS}
MinimumOSVersion
${MIN_OS}
CFBundleInfoDictionaryVersion
6.0
CFBundleLongVersionString
${MACOSX_BUNDLE_LONG_VERSION_STRING}
CFBundleName
${MACOSX_BUNDLE_BUNDLE_NAME}
CFBundlePackageType
FMWK
CFBundleShortVersionString
${MEDIASTREAMER_VERSION}
CFBundleSignature
????
CFBundleVersion
${MEDIASTREAMER_VERSION}
CSResourcesFileMapped
NSHumanReadableCopyright
${MACOSX_BUNDLE_COPYRIGHT}
NSPrincipalClass
NSApplication
NSHighResolutionCapable
True
NSCameraUsageDescription
Allow camera for video sessions
mediastreamer2-5.2.0+dfsg/build/osx/msqogl.Info.plist.in 0000664 0000000 0000000 00000002543 14346134245 0023141 0 ustar 00root root 0000000 0000000
CFBundleDevelopmentRegion
English
CFBundleExecutable
msqogl
CFBundleGetInfoString
${MACOSX_BUNDLE_INFO_STRING}
CFBundleIconFile
${MACOSX_BUNDLE_ICON_FILE}
CFBundleIdentifier
${MACOSX_FRAMEWORK_IDENTIFIER}
LSMinimumSystemVersion
${MIN_OS}
MinimumOSVersion
${MIN_OS}
CFBundleInfoDictionaryVersion
6.0
CFBundleLongVersionString
${MACOSX_BUNDLE_LONG_VERSION_STRING}
CFBundleName
${MACOSX_BUNDLE_BUNDLE_NAME}
CFBundlePackageType
FMWK
CFBundleShortVersionString
${VERSION}
CFBundleSignature
????
CFBundleVersion
${VERSION}
CSResourcesFileMapped
NSHumanReadableCopyright
${MACOSX_BUNDLE_COPYRIGHT}
NSPrincipalClass
NSApplication
NSHighResolutionCapable
True
mediastreamer2-5.2.0+dfsg/build/rpm/ 0000775 0000000 0000000 00000000000 14346134245 0017244 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/rpm/mediastreamer2.spec.cmake 0000775 0000000 0000000 00000006062 14346134245 0024112 0 ustar 00root root 0000000 0000000 # -*- rpm-spec -*-
%define _prefix @CMAKE_INSTALL_PREFIX@
%define pkg_prefix @BC_PACKAGE_NAME_PREFIX@
%define package_name @CPACK_PACKAGE_NAME@-${FULL_VERSION}
# re-define some directories for older RPMBuild versions which don't. This messes up the doc/ dir
# taken from https://fedoraproject.org/wiki/Packaging:RPMMacros?rd=Packaging/RPMMacros
%define _datarootdir %{_prefix}/share
%define _datadir %{_datarootdir}
%define _docdir %{_datadir}/doc
Name: @CPACK_PACKAGE_NAME@
Version: ${RPM_VERSION}
Release: ${RPM_RELEASE}%{?dist}
Summary: Audio/Video real-time streaming
Group: Applications/Communications
License: GPL
URL: http://www.mediastreamer.org
Source0: %{package_name}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: %{pkg_prefix}bctoolbox
Requires: %{pkg_prefix}ortp
%description
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.
BuildRequires:
%package devel
Summary: Development libraries for mediastreamer
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains header files and development libraries needed to
develop programs using the mediastreamer2 library.
%if 0%{?rhel} && 0%{?rhel} <= 7
%global cmake_name cmake3
%define ctest_name ctest3
%else
%global cmake_name cmake
%define ctest_name ctest
%endif
# This is for debian builds where debug_package has to be manually specified, whereas in centos it does not
%define custom_debug_package %{!?_enable_debug_packages:%debug_package}%{?_enable_debug_package:%{nil}}
%custom_debug_package
%prep
%setup -n %{package_name}
%build
%{expand:%%%cmake_name} . -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@ -DCMAKE_PREFIX_PATH:PATH=%{_prefix} @RPM_ALL_CMAKE_OPTIONS@
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
# Dirty workaround to give exec rights for all shared libraries. Debian packaging needs this
# TODO : set CMAKE_INSTALL_SO_NO_EXE for a cleaner workaround
chmod +x `find %{buildroot} *.so.*`
%check
#%{ctest_name} -V %{?_smp_mflags}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%if @ENABLE_TOOLS@ || @ENABLE_UNIT_TESTS@
%{_bindir}/*
%endif
%{_libdir}/*.so.*
%if @ENABLE_VIDEO@
%{_datadir}/images/nowebcamCIF.jpg
%endif
%files devel
%defattr(-,root,root,-)
%if @ENABLE_STATIC@
%{_libdir}/*.a
%endif
%if @ENABLE_SHARED@
%{_libdir}/*.so
%endif
#%{_libdir}/pkgconfig/*.pc
%{_includedir}
%{_datadir}/Mediastreamer2/cmake/Mediastreamer2Config*.cmake
%{_datadir}/Mediastreamer2/cmake/Mediastreamer2Targets*.cmake
%if @ENABLE_DOC@
%doc %{_docdir}/*
%endif
%changelog
* Tue Nov 27 2018 ronan.abhamon
- Do not set CMAKE_INSTALL_LIBDIR.
* Thu Jul 13 2017 jehan.monnier
- cmake port
* Mon Aug 19 2013 jehan.monnier
- Initial RPM release.
mediastreamer2-5.2.0+dfsg/build/wp8/ 0000775 0000000 0000000 00000000000 14346134245 0017164 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/wp8/mediastreamer2-tester-native/ 0000775 0000000 0000000 00000000000 14346134245 0024660 5 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/wp8/mediastreamer2-tester-native/mediastreamer2-tester-native.cpp 0000664 0000000 0000000 00000011727 14346134245 0033070 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#include
#include "mediastreamer2-tester-native.h"
#include "ortp/logging.h"
#include "bcunit/Util.h"
using namespace Windows::Phone::Media::Devices;
using namespace Windows::Phone::Networking::Voip;
using namespace mediastreamer2_tester_native;
using namespace Platform;
#define MAX_TRACE_SIZE 512
#define MAX_SUITE_NAME_SIZE 128
static OutputTraceListener^ sTraceListener;
static void nativeOutputTraceHandler(OutputTraceLevel lev, const char *fmt, va_list args)
{
if (sTraceListener) {
wchar_t wstr[MAX_TRACE_SIZE];
std::string str;
str.resize(MAX_TRACE_SIZE);
vsnprintf((char *)str.c_str(), MAX_TRACE_SIZE, fmt, args);
mbstowcs(wstr, str.c_str(), sizeof(wstr));
String^ msg = ref new String(wstr);
sTraceListener->outputTrace(lev, msg);
}
}
static void BCUnitNativeOutputTraceHandler(int lev, const char *fmt, va_list args)
{
nativeOutputTraceHandler(Raw, fmt, args);
}
static void Mediastreamer2NativeOutputTraceHandler(OrtpLogLevel lev, const char *fmt, va_list args)
{
OutputTraceLevel level = Message;
char fmt2[MAX_TRACE_SIZE];
snprintf(fmt2, MAX_TRACE_SIZE, "%s\n", fmt);
if (lev == ORTP_DEBUG) level = Debug;
else if (lev == ORTP_MESSAGE) level = Message;
else if (lev == ORTP_TRACE) level = Message;
else if (lev == ORTP_WARNING) level = Warning;
else if (lev == ORTP_ERROR) level = Error;
else if (lev == ORTP_FATAL) level = Error;
nativeOutputTraceHandler(level, fmt2, args);
}
Mediastreamer2TesterNative::Mediastreamer2TesterNative()
{
mediastreamer2_tester_init();
}
Mediastreamer2TesterNative::~Mediastreamer2TesterNative()
{
mediastreamer2_tester_uninit();
}
void Mediastreamer2TesterNative::setOutputTraceListener(OutputTraceListener^ traceListener)
{
sTraceListener = traceListener;
}
void Mediastreamer2TesterNative::run(Platform::String^ suiteName, Platform::String^ caseName, Platform::Boolean verbose)
{
std::wstring all(L"ALL");
std::wstring wssuitename = suiteName->Data();
std::wstring wscasename = caseName->Data();
char csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
char ccasename[MAX_SUITE_NAME_SIZE] = { 0 };
wcstombs(csuitename, wssuitename.c_str(), sizeof(csuitename));
wcstombs(ccasename, wscasename.c_str(), sizeof(ccasename));
if (verbose) {
ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
} else {
ortp_set_log_level_mask(ORTP_ERROR|ORTP_FATAL);
}
ortp_set_log_handler(Mediastreamer2NativeOutputTraceHandler);
CU_set_trace_handler(BCUnitNativeOutputTraceHandler);
// Need to create a dummy VoipPhoneCall to be able to capture audio!
Platform::String^ str = "Mediastreamer2";
VoipCallCoordinator^ callCoordinator = VoipCallCoordinator::GetDefault();
VoipPhoneCall^ phoneCall = nullptr;
callCoordinator->RequestNewOutgoingCall(str, str, str, VoipCallMedia::Audio, &phoneCall);
phoneCall->NotifyCallActive();
AudioRoutingManager::GetDefault()->SetAudioEndpoint(AudioRoutingEndpoint::Speakerphone);
mediastreamer2_tester_run_tests(wssuitename == all ? 0 : csuitename, wscasename == all ? 0 : ccasename);
AudioRoutingManager::GetDefault()->SetAudioEndpoint(AudioRoutingEndpoint::Default);
phoneCall->NotifyCallEnded();
}
unsigned int Mediastreamer2TesterNative::nbTestSuites()
{
return mediastreamer2_tester_nb_test_suites();
}
unsigned int Mediastreamer2TesterNative::nbTests(Platform::String^ suiteName)
{
std::wstring suitename = suiteName->Data();
char cname[MAX_SUITE_NAME_SIZE] = { 0 };
wcstombs(cname, suitename.c_str(), sizeof(cname));
return mediastreamer2_tester_nb_tests(cname);
}
Platform::String^ Mediastreamer2TesterNative::testSuiteName(int index)
{
const char *cname = mediastreamer2_tester_test_suite_name(index);
wchar_t wcname[MAX_SUITE_NAME_SIZE];
mbstowcs(wcname, cname, sizeof(wcname));
return ref new String(wcname);
}
Platform::String^ Mediastreamer2TesterNative::testName(Platform::String^ suiteName, int testIndex)
{
std::wstring suitename = suiteName->Data();
char csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
wcstombs(csuitename, suitename.c_str(), sizeof(csuitename));
const char *cname = mediastreamer2_tester_test_name(csuitename, testIndex);
wchar_t wcname[MAX_SUITE_NAME_SIZE];
mbstowcs(wcname, cname, sizeof(wcname));
return ref new String(wcname);
}
mediastreamer2-5.2.0+dfsg/build/wp8/mediastreamer2-tester-native/mediastreamer2-tester-native.h 0000664 0000000 0000000 00000003166 14346134245 0032533 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of mediastreamer2
* (see https://gitlab.linphone.org/BC/public/mediastreamer2).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
#pragma once
#include "mediastreamer2_tester.h"
namespace mediastreamer2_tester_native
{
enum OutputTraceLevel {
Debug,
Message,
Warning,
Error,
Raw
};
public interface class OutputTraceListener
{
public:
void outputTrace(int level, Platform::String^ msg);
};
public ref class Mediastreamer2TesterNative sealed
{
public:
Mediastreamer2TesterNative();
virtual ~Mediastreamer2TesterNative();
void setOutputTraceListener(OutputTraceListener^ traceListener);
unsigned int nbTestSuites();
unsigned int nbTests(Platform::String^ suiteName);
Platform::String^ testSuiteName(int index);
Platform::String^ testName(Platform::String^ suiteName, int testIndex);
void run(Platform::String^ suiteName, Platform::String^ caseName, Platform::Boolean verbose);
};
}
mediastreamer2-tester-native.vcxproj 0000664 0000000 0000000 00000017033 14346134245 0033716 0 ustar 00root root 0000000 0000000 mediastreamer2-5.2.0+dfsg/build/wp8/mediastreamer2-tester-native 
Debug
Win32
Debug
ARM
Release
Win32
Release
ARM
{4bd08ccd-d09f-4489-934e-2d762d6ad243}
mediastreamer2_tester_native
en-US
11.0
true
DynamicLibrary
true
v110_wp80
DynamicLibrary
false
true
v110_wp80
false
Level4
$(ProjectDir);$(GeneratedFilesDir);$(IntDir);$(ProjectDir)..\..\..\include;$(ProjectDir)..\..\..\src;$(ProjectDir)..\..\..\src\voip;$(ProjectDir)..\..\..\tester;$(ProjectDir)..\..\..\..\ortp\include;$(ProjectDir)..\..\..\..\..\bcunit\build\wp8\bcunit\$(Platform)\$(Configuration);%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;_WINRT_DLL;_CRT_SECURE_NO_WARNINGS;HAVE_CU_GET_SUITE;VIDEO_ENABLED;%(PreprocessorDefinitions)
Default
NotUsing
$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)
false
Console
false
ole32.lib;%(IgnoreSpecificDefaultLibraries)
true
WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib;ws2_32.lib;ortp.lib;mediastreamer2.lib;%(AdditionalDependencies)
$(SolutionDir)$(Platform)\$(Configuration)
_DEBUG;%(PreprocessorDefinitions)
true
NDEBUG;%(PreprocessorDefinitions)
MaxSpeed
true
true
true
false
true
false
true
true
{1db09afe-fc9b-472e-a746-0e33f8ef8883}
{902daf1d-ebf1-4d03-b598-143500a50ab4}
{9924ac72-f96c-4e56-94d9-2b025da43c6b}
{072fad20-7007-4da2-b2e7-16ce2b219f67}
{36b528f9-fb79-4078-a16b-0a7442581bb7}
{d22bd217-d0f8-4274-9b3a-f3f35f46482c}
{b16b81a9-bef2-44c9-b603-1065183ae844}
{0565952a-ea62-46a2-8261-f5b4b490da42}
{027bad0e-9179-48c1-9733-7aa7e2c2ec70}