
This is in preparation to introduce new java buildtargets that will use the `libaom_av1_encoder` buildtarget instead. bug: webrtc:13573 Change-Id: I23e80653943ede576657acc17bcc5602cb0a4d5d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/254540 Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36171}
28 lines
772 B
Java
28 lines
772 B
Java
/*
|
|
* Copyright (c) 2021 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
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
package org.webrtc;
|
|
|
|
public class LibaomAv1EncoderIfSupported extends WrappedNativeVideoEncoder {
|
|
@Override
|
|
public long createNativeVideoEncoder() {
|
|
return nativeCreateEncoder();
|
|
}
|
|
|
|
static native long nativeCreateEncoder();
|
|
|
|
@Override
|
|
public boolean isHardwareEncoder() {
|
|
return false;
|
|
}
|
|
|
|
static native boolean nativeIsSupported();
|
|
}
|