webrtc/sdk/android/native_unittests
Jiwon Jung 5a79d28eba Require 16x16 alignment when using HardwareVideoEncoder for encoding.
It seems the Android CTS tests only verify that 16x16 aligned resolutions
are supported.

This change checks the validity of input frame's size when initialing
or encoding processes are about to start using H/W MediaCodec.

This change has additional APIs to retrieve
|requested_resolution_alignment| and |apply_alignment_to_all_simulcast_layers|
from JAVA VideoEncoder class and its inherited classes. HardwareVideoEncoder
using MediaCodec has values of 16 and true for above variables.

Bug: webrtc:13089
Change-Id: I0c4ebf94eb36da29c2e384a3edf85b82e779b7f9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/229460
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35169}
2021-10-08 13:15:12 +00:00
..
audio_device Use backticks not vertical bars to denote variables in comments for /sdk 2021-07-27 14:39:06 +00:00
codecs Rename ..BitrateThresholds to ..BitrateLimits. 2019-07-03 14:50:46 +00:00
org/webrtc Require 16x16 alignment when using HardwareVideoEncoder for encoding. 2021-10-08 13:15:12 +00:00
peerconnection Add rtc:SocketFactory as member of jni OwnedFactoryAndThreads 2021-09-21 11:15:30 +00:00
stacktrace Reland "Refactor the PlatformThread API." 2021-05-07 14:14:43 +00:00
video Mass refactoring: Change JNI #includes to use full paths (webrtc/). 2019-06-26 08:23:14 +00:00
android_network_monitor_unittest.cc Enable WebRTC-BindUsingInterfaceName by default 2021-05-07 06:33:44 +00:00
application_context_provider.cc Mass refactoring: Change JNI #includes to use full paths (webrtc/). 2019-06-26 08:23:14 +00:00
application_context_provider.h Use JavaAudioDeviceModule as default 2019-03-04 13:44:33 +00:00
DEPS Add unit tests for Android audio device module 2018-04-12 09:27:45 +00:00
java_types_unittest.cc Mass refactoring: Change JNI #includes to use full paths (webrtc/). 2019-06-26 08:23:14 +00:00
test_jni_onload.cc Implements JavaToNativeStringMap and adds tests for native API. 2018-02-09 10:34:44 +00:00