Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jni: MediaCodec, remove non-standard functions

  • Loading branch information...
commit 1835938f5c84f063df0e825453911598ccea2abd 1 parent 157e32a
@davilla davilla authored
Showing with 0 additions and 40 deletions.
  1. +0 −36 xbmc/android/jni/MediaCodec.cpp
  2. +0 −4 xbmc/android/jni/MediaCodec.h
View
36 xbmc/android/jni/MediaCodec.cpp
@@ -174,42 +174,6 @@ std::vector<CJNIByteBuffer> CJNIMediaCodec::getOutputBuffers()
"getOutputBuffers", "()[Ljava/nio/ByteBuffer;"));
}
-int CJNIMediaCodec::getInputBufferSize()
-{
- jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
- "getInputBuffers", "()[Ljava/nio/ByteBuffer;");
-
- JNIEnv *env = xbmc_jnienv();
- return env->GetArrayLength(oByteBuffers.get());
-}
-
-int CJNIMediaCodec::getOutputBufferSize()
-{
- jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
- "getOutputBuffers", "()[Ljava/nio/ByteBuffer;");
-
- JNIEnv *env = xbmc_jnienv();
- return env->GetArrayLength(oByteBuffers.get());
-}
-
-const CJNIByteBuffer CJNIMediaCodec::getInputBuffer(int index)
-{
- jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
- "getInputBuffers", "()[Ljava/nio/ByteBuffer;");
-
- JNIEnv *env = xbmc_jnienv();
- return CJNIByteBuffer(jhobject(env->GetObjectArrayElement(oByteBuffers.get(), index)));
-}
-
-const CJNIByteBuffer CJNIMediaCodec::getOutputBuffer(int index)
-{
- jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
- "getOutputBuffers", "()[Ljava/nio/ByteBuffer;");
-
- JNIEnv *env = xbmc_jnienv();
- return CJNIByteBuffer(jhobject(env->GetObjectArrayElement(oByteBuffers.get(), index)));
-}
-
void CJNIMediaCodec::setVideoScalingMode(int mode)
{
call_method<void>(m_object,
View
4 xbmc/android/jni/MediaCodec.h
@@ -48,10 +48,6 @@ class CJNIMediaCodec : public CJNIBase
const CJNIMediaFormat getOutputFormat();
std::vector<CJNIByteBuffer> getInputBuffers();
std::vector<CJNIByteBuffer> getOutputBuffers();
- int getInputBufferSize();
- int getOutputBufferSize();
- const CJNIByteBuffer getInputBuffer(int index);
- const CJNIByteBuffer getOutputBuffer(int index);
void setVideoScalingMode(int mode);
static void PopulateStaticFields();
Please sign in to comment.
Something went wrong with that request. Please try again.