Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 11 | package org.webrtc; |
| 12 | |
Jonathan Yu | 50f60cb | 2018-11-06 14:10:51 -0800 | [diff] [blame] | 13 | public class LibvpxVp9Encoder extends WrappedNativeVideoEncoder { |
Magnus Jedvert | 84d8ae5 | 2017-12-20 15:12:10 +0100 | [diff] [blame] | 14 | @Override |
Rasmus Brandt | 42a2fc9 | 2018-07-09 13:38:01 +0200 | [diff] [blame] | 15 | public long createNativeVideoEncoder() { |
Magnus Jedvert | 84d8ae5 | 2017-12-20 15:12:10 +0100 | [diff] [blame] | 16 | return nativeCreateEncoder(); |
| 17 | } |
| 18 | |
| 19 | static native long nativeCreateEncoder(); |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 20 | |
Sami Kalliomäki | 6196feb | 2017-11-24 11:00:04 +0100 | [diff] [blame] | 21 | @Override |
Rasmus Brandt | 42a2fc9 | 2018-07-09 13:38:01 +0200 | [diff] [blame] | 22 | public boolean isHardwareEncoder() { |
| 23 | return false; |
Sami Kalliomäki | 6196feb | 2017-11-24 11:00:04 +0100 | [diff] [blame] | 24 | } |
| 25 | |
Magnus Jedvert | 84d8ae5 | 2017-12-20 15:12:10 +0100 | [diff] [blame] | 26 | static native boolean nativeIsSupported(); |
Anders Carlsson | dc1b9f1 | 2017-11-10 13:15:04 +0100 | [diff] [blame] | 27 | } |