// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.


// This file is autogenerated by
//     base/android/jni_generator/jni_generator.py
// For
//     org/webrtc/VideoDecoderFallback

#ifndef org_webrtc_VideoDecoderFallback_JNI
#define org_webrtc_VideoDecoderFallback_JNI

#include <jni.h>

#include "webrtc/sdk/android/src/jni/jni_generator_helper.h"


// Step 1: Forward declarations.

JNI_REGISTRATION_EXPORT extern const char kClassPath_org_webrtc_VideoDecoderFallback[];
const char kClassPath_org_webrtc_VideoDecoderFallback[] = "org/webrtc/VideoDecoderFallback";
// Leaking this jclass as we cannot use LazyInstance from some threads.
JNI_REGISTRATION_EXPORT std::atomic<jclass> g_org_webrtc_VideoDecoderFallback_clazz(nullptr);
#ifndef org_webrtc_VideoDecoderFallback_clazz_defined
#define org_webrtc_VideoDecoderFallback_clazz_defined
inline jclass org_webrtc_VideoDecoderFallback_clazz(JNIEnv* env) {
  return base::android::LazyGetClass(env, kClassPath_org_webrtc_VideoDecoderFallback,
      &g_org_webrtc_VideoDecoderFallback_clazz);
}
#endif


// Step 2: Constants (optional).


// Step 3: Method stubs.
namespace  webrtc {
namespace jni {

static jlong JNI_VideoDecoderFallback_CreateDecoder(JNIEnv* env, const
    base::android::JavaParamRef<jobject>& fallback,
    const base::android::JavaParamRef<jobject>& primary);

JNI_GENERATOR_EXPORT jlong Java_org_webrtc_VideoDecoderFallback_nativeCreateDecoder(
    JNIEnv* env,
    jclass jcaller,
    jobject fallback,
    jobject primary) {
  return JNI_VideoDecoderFallback_CreateDecoder(env, base::android::JavaParamRef<jobject>(env,
      fallback), base::android::JavaParamRef<jobject>(env, primary));
}


}  // namespace jni
}  // namespace  webrtc

#endif  // org_webrtc_VideoDecoderFallback_JNI
