Remove unused vpxInit methods

PiperOrigin-RevId: 231578828
This commit is contained in:
andrewlewis 2019-01-30 13:48:30 +00:00 committed by Oliver Woodman
parent dc7bc4785e
commit 55b5814842
3 changed files with 3 additions and 13 deletions

View file

@ -68,7 +68,7 @@ import java.nio.ByteBuffer;
if (exoMediaCrypto != null && !VpxLibrary.vpxIsSecureDecodeSupported()) {
throw new VpxDecoderException("Vpx decoder does not support secure decode.");
}
vpxDecContext = vpxInit(disableLoopFilter, true);
vpxDecContext = vpxInit(disableLoopFilter);
if (vpxDecContext == 0) {
throw new VpxDecoderException("Failed to initialize decoder");
}
@ -165,7 +165,7 @@ import java.nio.ByteBuffer;
}
}
private native long vpxInit(boolean disableLoopFilter, boolean enableSurfaceYuvOutputMode);
private native long vpxInit(boolean disableLoopFilter);
private native long vpxClose(long context);
private native long vpxDecode(long context, ByteBuffer encoded, int length);

View file

@ -67,7 +67,6 @@ public final class VpxOutputBuffer extends OutputBuffer {
this.timeUs = timeUs;
this.mode = mode;
}
/**
* Resizes the buffer based on the given stride. Called via JNI after decoding completes.
*

View file

@ -433,7 +433,7 @@ int vpx_release_frame_buffer(void* priv, vpx_codec_frame_buffer_t* fb) {
return buffer_manager->release(*(int*)fb->priv);
}
jlong vpxInit(JNIEnv* env, jboolean disableLoopFilter) {
DECODER_FUNC(jlong, vpxInit, jboolean disableLoopFilter) {
JniCtx* context = new JniCtx();
context->decoder = new vpx_codec_ctx_t();
vpx_codec_dec_cfg_t cfg = {0, 0, 0};
@ -482,15 +482,6 @@ jlong vpxInit(JNIEnv* env, jboolean disableLoopFilter) {
return reinterpret_cast<intptr_t>(context);
}
DECODER_FUNC(jlong, vpxInit, jboolean disableLoopFilter,
jboolean enableBufferManager) {
return vpxInit(env, disableLoopFilter);
}
DECODER_FUNC(jlong, vpxInitilization, jboolean disableLoopFilter) {
return vpxInit(env, disableLoopFilter);
}
DECODER_FUNC(jlong, vpxDecode, jlong jContext, jobject encoded, jint len) {
JniCtx* const context = reinterpret_cast<JniCtx*>(jContext);
const uint8_t* const buffer =