blob: 90182a1d178029132385cbfc7aa4683e8151af43 [file] [log] [blame]
Anders Carlssondc1b9f12017-11-10 13:15:04 +01001/*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include <jni.h>
12
13#include "modules/video_coding/codecs/vp8/include/vp8.h"
14#include "sdk/android/src/jni/jni_helpers.h"
15
16namespace webrtc {
17namespace jni {
18
19JNI_FUNCTION_DECLARATION(jlong,
20 VP8Encoder_createNativeEncoder,
21 JNIEnv* jni,
22 jclass) {
23 return jlongFromPointer(VP8Encoder::Create());
24}
25
26JNI_FUNCTION_DECLARATION(jlong,
27 VP8Decoder_createNativeDecoder,
28 JNIEnv* jni,
29 jclass) {
30 return jlongFromPointer(VP8Decoder::Create());
31}
32
33} // namespace jni
34} // namespace webrtc