webrtc/sdk/android
Sami Kalliomäki 95a5f00484 Update HWVideoEncoder to reuse codec buffer instead of copying the data.
In practice, this is safe since WebRTC doesn't access the buffer after the
callback returns. This avoids unnecessary memory allocations causing out of
memory errors.

Bug: b/72675429
Change-Id: I2ed0224f40b7e1fa67c7aba625b99211f9c1e0a3
Reviewed-on: https://webrtc-review.googlesource.com/49162
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21932}
2018-02-07 13:52:58 +00:00
..
api/org/webrtc Only allow MediaTek H264 HW Codec for O_MR1 or later 2018-02-06 09:21:50 +00:00
instrumentationtests Update HWVideoEncoder to reuse codec buffer instead of copying the data. 2018-02-07 13:52:58 +00:00
native_api Reorganize code in java_types to logical groups. 2018-02-01 13:09:01 +00:00
src Update HWVideoEncoder to reuse codec buffer instead of copying the data. 2018-02-07 13:52:58 +00:00
tests/src/org/webrtc Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
AndroidManifest.xml Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
BUILD.gn Reland "Break up rtc_event_log_api to solve circular dependencies." 2018-02-01 22:47:52 +00:00
OWNERS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
PRESUBMIT.py Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
README Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00

This directory holds a Java implementation of the webrtc::PeerConnection API, as
well as the JNI glue C++ code that lets the Java implementation reuse the C++
implementation of the same API.

To build the Java API and related tests, generate GN projects with:
--args='target_os="android"'

To use the Java API, start by looking at the public interface of
org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest.

To understand the implementation of the API, see the native code in jni/.