Commit Graph

3302 Commits

Author SHA1 Message Date
Sauw Ming c808952e7c Re #1202: Fixed compilation preprocessor for os_info so that it's more robust across various device and simulator SDKs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3436 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 10:53:24 +00:00
Nanang Izzuddin 678b2f82e0 Re #1182:
- Added remote frame-rate detection in to video stream.
 - Fixed bitrate settings in ffmpeg codec.
 - Fixed SDL dev to update internal SDL info when format changed.
 - Minor fixes/updates, e.g:
   - added cleanup steps, fixed logs, etc, in sample app simpleua.c and vid_streamutil.c
   - fixed/added docs of the new APIs in the jitter buffer.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3435 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 08:37:31 +00:00
Sauw Ming 056b4fdc35 Re #1202: Fixed compilation error in os_info_iphone.m on iPhoneSimulator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3434 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 06:40:55 +00:00
Sauw Ming 0b7864e408 Re #1202: Fixed detection for iPhone simulator.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3433 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 02:44:57 +00:00
Nanang Izzuddin 9861070228 Re #1182:
- Fixed ffmpeg codec: decoding buffer size check (should not use assertion), reset output bit_info before decoding, removed unused code of auto resize when decoder output size changed.
 - Fixed bug in sdl_factory_default_param() of sdl_dev.c in device direction check.
 - Fixed compile errors sample app vid_streamutil.c of bad local variable definiton.
 - Updated sample app vid_streamutil.c default renderer size to 640 x 480.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3432 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 17:40:17 +00:00
Sauw Ming 4a20bc808a Re #1182:
* support for format modification after creating video port (currently for renderer with active role only).
 * support for format modification after opening SDL renderer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3431 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 15:55:34 +00:00
Sauw Ming fe42f0c7c3 Re #3428: Fixed aconfigure for iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3430 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 10:42:11 +00:00
Sauw Ming c451f04917 Fix #1203: iPhone OS background mode detection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3429 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 07:47:37 +00:00
Sauw Ming 6a970a3e5a Implementation of re #1202 (PJLIB System Information API) on iPhone OS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3428 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 05:25:27 +00:00
Benny Prijono 155791d5e5 Misc (re #1175): fixed link error in OpenBSD 4.6 caused by lack of sched_get_priority_min() and sched_get_priority_max()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3427 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 23:58:14 +00:00
Benny Prijono 4df37e9070 Re #1202 (pjlib sysinfo): testing on OpenSolaris and added pjlib-test entry
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3426 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 22:19:23 +00:00
Nanang Izzuddin 235e1b4fa6 Re #1182:
- Renamed vstreamutil.c to vid_steamutil.c just for filename format consistency reason.
 - Updated sample app simpleua.c and vid_streamutil.c to sync with updated API, e.g: strip session usage, two media ports exported video streams for each dir.
 - Added vid_streamutil.c capability to be able to stream video file (involving transcoding when video codec used in the file different to the video stream codec), also updated AVI player and ffmpeg codecs to be able to read and decode XVID/MPEG4 codec.
 - Fixed bug wrong media type check in stream.c and vid_stream.c in creating stream info from SDP.
 - Minor update: docs, logs, app samples makefiles.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3425 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 18:59:47 +00:00
Benny Prijono de5c5edce9 Implementation of re #1202 (PJLIB System Information API) on Win32 and Windows mobile targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3424 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 08:28:48 +00:00
Benny Prijono e3e6580803 Initial implementation for re #1202 (PJILB System Information API) for Linux/Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:44:19 +00:00
Benny Prijono 29531ae6bb Re #1174 (coreaudio_dev work): minor changes to replace "Error" message with "Warning" for non-fatal errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3422 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:18:33 +00:00
Benny Prijono 96d4dc6f53 Re #1175 (Misc fixes): fixed realclean and distclean target for Python makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3421 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:16:08 +00:00
Nanang Izzuddin a9c1cf45be Re #1182:
- Added video stream interface in vid_stream.h, the video stream will be able to handle different video formats in encoding and decoding direction.
 - Renamed video device stream class identifiers from 'pjmedia_vid_stream*' to 'pjmedia_vid_dev_stream*' as 'pjmedia_vid_stream' is used by video stream interface.
 - Added ffmpeg video capability to be able to parse SDP format param for H263 and also decide video format for encoding direction based on remote preference and local format-capability setting.
 - Added some new APIs in jitter buffer for handling video stream: pjmedia_jbuf_put_frame3(), pjmedia_jbuf_get_frame3(), pjmedia_jbuf_peek_frame(), and pjmedia_jbuf_remove_frame().
 - Moved pjmedia_stream_info_from_sdp() from session to stream




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3420 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:47:55 +00:00
Nanang Izzuddin c85a00d1ca Re #1186:
- Added API pjmedia_sdp_conn_cmp() to compare SDP connection.
 - Added internal API pjmedia_stream_info_parse_fmtp() to parse SDP format parameter of specified payload as a helper function for generating stream info from SDP.
 - Modified pjmedia_endpt_create_sdp() to be able to generate SDP media line for video.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3419 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:16:31 +00:00
Nanang Izzuddin ecaaec06e0 Re #1182: Reverted back video part in stream.h/c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3418 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 05:14:34 +00:00
Nanang Izzuddin b3756b38a2 Re #1200: updated IPP codecs to support IPP v7.0 on MSVC, only include "ippsr.lib" in auto link when IPP major version is 6 or below.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3417 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-22 07:31:01 +00:00
Nanang Izzuddin d8cc3e7572 Fix #1199:
- Modified G722 frame time to 10ms (was 20ms) and frame per packet to 2 (was 1).
 - Updated the detection mechanism of remote G722 frame-length in the stream to be flexible to any G722 frame length setting (was assumed to be always 20ms).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3416 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-18 09:34:28 +00:00
Nanang Izzuddin 6cf25ceac8 Misc (re #1175): fix sample app pcaputil.c bug, it always fails in reading the first/reference packet when the codec is not PCMU (default payload type was hardcoded to zero/PCMU).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3415 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 15:59:52 +00:00
Nanang Izzuddin 462fb1dd12 Misc (re #1175): fixed possible division-by-zero bug when receiving problematic G722 payloads (e.g: sized less than 160 bytes) and remote clock-rate/timestamp-span detection is active (PJMEDIA_HANDLE_G722_MPEG_BUG is set). Thanks Erik Waling for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3414 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 09:08:11 +00:00
Sauw Ming aa6fd41de9 Re #1174: fixed crash when pjsua is restarted, causing inClientData to be invalid since AudioSessionInitialize can only be called once.
Re #1175: cleaning up interruption and audio route handling in coreaudio for iOS. In the case of interruption, there is no need to reinstantiate the audio unit (a simple restart will do), while for audio route change, nothing needs to be done.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3413 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-15 05:33:23 +00:00
Sauw Ming 5c2f6da4ec Re #1161: Support for adding custom presence subscription headers.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3412 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-11 07:39:14 +00:00
Sauw Ming 5b0f2308ee Re #1175: Modified default core audio unit used on iOS from VPIO to RemoteIO. To use VPIO, application needs to specify a nonzero value for the PJMEDIA_AUD_DEV_CAP_EC capability.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3411 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-10 06:41:39 +00:00
Sauw Ming f3cfb88bf0 Re #1192: Fixes stereo support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3410 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-31 11:27:48 +00:00
Benny Prijono a5edbd9d28 Re #1197: also increase MAX_IMMEDIATE_PACKET from 10 to 50 to make it more resilient against errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3409 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:35:24 +00:00
Benny Prijono a61c43d571 Fixed #1197: WSAECONNRESET errors on Windows 2000 or 2003 may cause UDP transport to stop working
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3408 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:15:22 +00:00
Sauw Ming 9ef51380cf Re #597: Modify buffer padding code for EOF event (thanks to Thomas Johnson).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3407 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 01:30:37 +00:00
Sauw Ming 3e7630a839 Re #3398: Fixes assertion in the resample procedure and callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3406 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-20 03:32:14 +00:00
Sauw Ming 0f35826415 Fixes #597: Error reading WAV files when there are extra chunks after DATA chunk.
Wav player will now just play data chunks in wav files and ignore others.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3405 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-19 10:23:58 +00:00
Sauw Ming 4fc590fd4e Fix #1195: assertion during thread registration in coreaudio and portaudio's input/output callbacks on Mac OS X and #1196: using system's default audio input/output device instead of first available device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3404 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-13 16:42:21 +00:00
Sauw Ming 1e376aa799 As compared to iOS SDK 3.x, in iOS SDK 4.x, __IPHONE_OS_VERSION_MIN_REQUIRED is defined only when -miphoneos-version-min is used (see the SDK's AvailabilityInternal.h). This causes coreaudio_dev to be compiled using RemoteIO (instead of VPIO) and without Bluetooth support. This revision fixes #1194.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3403 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-04 03:41:43 +00:00
Sauw Ming 8e799128a1 Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3402 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-30 16:31:16 +00:00
Sauw Ming b1b17d221e Fixed #1184:
* Move the AVI playback from pjmedia-test to new aviplay.c sample application
 * Take the input file from cmdline
 * Synchronize audio and video
 * Remove all codecs related hardcodes from the file 

Re #1193: (no. 6: duplicate fps and frame_rate in pjmedia_format and pjmedia_vid_param)
 * Remove the frame_rate in pjmedia_vid_param
 * Use pjmedia_format's fps in videoport, sdl_dev, and colorbar_dev
 * Prevent overflow in ptime calculation from frame_rate



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3401 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-20 11:02:48 +00:00
Sauw Ming c7ec991f65 Re #1174:
Fixed AudioSession services error handling in factory initialization.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3400 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-19 05:14:22 +00:00
Sauw Ming ab494302d8 Re #1183:
* Add PJMEDA_VID_DEV_CAP_OUTPUT_WINDOW capability to ios_dev to allow application to provide their own window for the renderer to display the video.
 * Perform image setting function in the main thread.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3399 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-17 13:17:23 +00:00
Sauw Ming 4a59e2a02b Fixed #1174, #1191, #1192
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3398 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-17 07:10:13 +00:00
Benny Prijono b5609b2292 Fixed #1190: Remote dialog info is not updated if 100 (Trying) response contains To tag parameter (thanks Marcus Froeschl for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3397 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-15 08:11:28 +00:00
Nanang Izzuddin 1fe6d6c0ab Fix #1188:
- Fixed jitter buffer progressive discard by returning 'missing' frame after discarded frame(s) so the PLC will be invoked to align the audio signal.
 - Modified conditions in jitter buffer test data for this fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3396 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-14 20:39:47 +00:00
Sauw Ming 6e6c215f70 Fixed #1183
* QT capture device for Mac
 * iOS device for iOS (capture device only works for iOS 4.0 or above)
 * Add NSAutoReleasePool for sdl_dev (Mac)
 * Add NSAutoReleasePool for vid_dev_test (Mac)
 * build system for compilation of Obj-C files (.m)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3395 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-14 13:03:10 +00:00
Nanang Izzuddin e43ee729d4 Re #1176: fixed build config for MSVC2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3394 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 20:55:13 +00:00
Benny Prijono 69b1f82cae Re #1176: fixed link error in GNU build system
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3393 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:33:01 +00:00
Benny Prijono c45d951901 Migration of current video works from private repository to this repository. This closed #1176
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3392 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:04:30 +00:00
Benny Prijono 7f5aa6f127 Created 2.0-dev branch for 2.0 development.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3391 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 10:52:53 +00:00
Benny Prijono 4034240ebd Changed version to 1.8.10-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3390 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 08:50:57 +00:00
Benny Prijono 3913b7e471 Changed version to 1.8.10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3388 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 06:26:30 +00:00
Benny Prijono ae6f32d32e Fixed #1160: Option to bypass RTP payload type verification in the stream (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3387 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-06 04:25:44 +00:00
Sauw Ming 5321ca7759 Misc (re #1151): Fixed crash in coreaudio_dev when there is no call during an interruption.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3386 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-05 14:03:31 +00:00