aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2013-08-23 11:36:08 -0400
committerS. Davilla <davilla@4pi.com>2013-08-23 13:13:10 -0400
commit1835938f5c84f063df0e825453911598ccea2abd (patch)
tree3f66b66437837c280ce7caa81250f676a45c72fb
parent157e32a438d738aad5ada56d0ddda8f29fd21e3b (diff)
jni: MediaCodec, remove non-standard functions
-rw-r--r--xbmc/android/jni/MediaCodec.cpp36
-rw-r--r--xbmc/android/jni/MediaCodec.h4
2 files changed, 0 insertions, 40 deletions
diff --git a/xbmc/android/jni/MediaCodec.cpp b/xbmc/android/jni/MediaCodec.cpp
index eda067eb3a..0615862fea 100644
--- a/xbmc/android/jni/MediaCodec.cpp
+++ b/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,
diff --git a/xbmc/android/jni/MediaCodec.h b/xbmc/android/jni/MediaCodec.h
index 4f18a6db80..a0b63b1f3e 100644
--- a/xbmc/android/jni/MediaCodec.h
+++ b/xbmc/android/jni/MediaCodec.h
@@ -48,10 +48,6 @@ public:
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();