Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55b58148
authored
Jan 30, 2019
by
andrewlewis
Committed by
Oliver Woodman
Jan 30, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unused vpxInit methods
PiperOrigin-RevId: 231578828
parent
dc7bc478
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
13 deletions
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/VpxDecoder.java
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/VpxOutputBuffer.java
extensions/vp9/src/main/jni/vpx_jni.cc
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/VpxDecoder.java
View file @
55b58148
...
...
@@ -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
);
...
...
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/VpxOutputBuffer.java
View file @
55b58148
...
...
@@ -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.
*
...
...
extensions/vp9/src/main/jni/vpx_jni.cc
View file @
55b58148
...
...
@@ -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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment