Android: Add helper functions for comparing H264 codecs
These helper functions will be useful when making the legacy video codecs injectable. Bug: webrtc:7925 Change-Id: Id5a480666f07eccc3116d2c2e61803cc4daf7c9f Reviewed-on: https://webrtc-review.googlesource.com/88365 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23954}
This commit is contained in:
committed by
Commit Bot
parent
3f84f498e4
commit
1045af2989
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
||||
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
@ -8,23 +8,21 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <jni.h>
|
||||
#include "sdk/android/src/jni/videocodecinfo.h"
|
||||
|
||||
#include "media/base/h264_profile_level_id.h"
|
||||
#include "sdk/android/generated_video_jni/jni/HardwareVideoEncoderFactory_jni.h"
|
||||
#include "sdk/android/native_api/jni/java_types.h"
|
||||
#include "sdk/android/src/jni/jni_helpers.h"
|
||||
#include "common_video/h264/profile_level_id.h"
|
||||
#include "sdk/android/generated_video_jni/jni/H264Utils_jni.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace jni {
|
||||
|
||||
static jboolean JNI_HardwareVideoEncoderFactory_IsSameH264Profile(
|
||||
JNIEnv* jni,
|
||||
static jboolean JNI_H264Utils_IsSameH264Profile(
|
||||
JNIEnv* env,
|
||||
const JavaParamRef<jclass>&,
|
||||
const JavaParamRef<jobject>& params1,
|
||||
const JavaParamRef<jobject>& params2) {
|
||||
return H264::IsSameH264Profile(JavaToNativeStringMap(jni, params1),
|
||||
JavaToNativeStringMap(jni, params2));
|
||||
return H264::IsSameH264Profile(JavaToNativeStringMap(env, params1),
|
||||
JavaToNativeStringMap(env, params2));
|
||||
}
|
||||
|
||||
} // namespace jni
|
||||
Reference in New Issue
Block a user