Skip to content
This repository
Browse code

jni: MediaCodec, remove non-standard functions

  • Loading branch information...
commit 1835938f5c84f063df0e825453911598ccea2abd 1 parent 157e32a
authored August 23, 2013
36  xbmc/android/jni/MediaCodec.cpp
@@ -174,42 +174,6 @@ std::vector<CJNIByteBuffer> CJNIMediaCodec::getOutputBuffers()
174 174
     "getOutputBuffers", "()[Ljava/nio/ByteBuffer;"));
175 175
 }
176 176
 
177  
-int CJNIMediaCodec::getInputBufferSize()
178  
-{
179  
-  jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
180  
-    "getInputBuffers", "()[Ljava/nio/ByteBuffer;");
181  
-
182  
-  JNIEnv *env = xbmc_jnienv();
183  
-  return env->GetArrayLength(oByteBuffers.get());
184  
-}
185  
-
186  
-int CJNIMediaCodec::getOutputBufferSize()
187  
-{
188  
-  jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
189  
-    "getOutputBuffers", "()[Ljava/nio/ByteBuffer;");
190  
-
191  
-  JNIEnv *env = xbmc_jnienv();
192  
-  return env->GetArrayLength(oByteBuffers.get());
193  
-}
194  
-
195  
-const CJNIByteBuffer CJNIMediaCodec::getInputBuffer(int index)
196  
-{
197  
-  jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
198  
-    "getInputBuffers", "()[Ljava/nio/ByteBuffer;");
199  
-
200  
-  JNIEnv *env = xbmc_jnienv();
201  
-  return CJNIByteBuffer(jhobject(env->GetObjectArrayElement(oByteBuffers.get(), index)));
202  
-}
203  
-
204  
-const CJNIByteBuffer CJNIMediaCodec::getOutputBuffer(int index)
205  
-{
206  
-  jhobjectArray oByteBuffers = call_method<jhobjectArray>(m_object,
207  
-    "getOutputBuffers", "()[Ljava/nio/ByteBuffer;");
208  
-
209  
-  JNIEnv *env = xbmc_jnienv();
210  
-  return CJNIByteBuffer(jhobject(env->GetObjectArrayElement(oByteBuffers.get(), index)));
211  
-}
212  
-
213 177
 void CJNIMediaCodec::setVideoScalingMode(int mode)
214 178
 {
215 179
   call_method<void>(m_object,
4  xbmc/android/jni/MediaCodec.h
@@ -48,10 +48,6 @@ class CJNIMediaCodec : public CJNIBase
48 48
   const CJNIMediaFormat getOutputFormat();
49 49
   std::vector<CJNIByteBuffer> getInputBuffers();
50 50
   std::vector<CJNIByteBuffer> getOutputBuffers();
51  
-  int   getInputBufferSize();
52  
-  int   getOutputBufferSize();
53  
-  const CJNIByteBuffer getInputBuffer(int index);
54  
-  const CJNIByteBuffer getOutputBuffer(int index);
55 51
   void  setVideoScalingMode(int mode);
56 52
 
57 53
   static void  PopulateStaticFields();

0 notes on commit 1835938

Please sign in to comment.
Something went wrong with that request. Please try again.