blob: 1211ae93fb8ac5a179d3f77dabf7e3c9f2685f30 [file] [log] [blame]
Anders Carlssondc1b9f12017-11-10 13:15:04 +01001/*
2 * Copyright (c) 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
11package org.webrtc;
12
Jonathan Yu50f60cb2018-11-06 14:10:51 -080013public class LibvpxVp9Encoder extends WrappedNativeVideoEncoder {
Magnus Jedvert84d8ae52017-12-20 15:12:10 +010014 @Override
Rasmus Brandt42a2fc92018-07-09 13:38:01 +020015 public long createNativeVideoEncoder() {
Magnus Jedvert84d8ae52017-12-20 15:12:10 +010016 return nativeCreateEncoder();
17 }
18
19 static native long nativeCreateEncoder();
Anders Carlssondc1b9f12017-11-10 13:15:04 +010020
Sami Kalliomäki6196feb2017-11-24 11:00:04 +010021 @Override
Rasmus Brandt42a2fc92018-07-09 13:38:01 +020022 public boolean isHardwareEncoder() {
23 return false;
Sami Kalliomäki6196feb2017-11-24 11:00:04 +010024 }
25
Magnus Jedvert84d8ae52017-12-20 15:12:10 +010026 static native boolean nativeIsSupported();
Anders Carlssondc1b9f12017-11-10 13:15:04 +010027}