Code example for GLSurfaceView

Methods: requestRender

1
		 Camera.Parameters parameters = mCamera.getParameters();
		 Camera.Size s = parameters.getPreviewSize();
 
		 //if( nv21Decoder != null ) nv21Decoder.processBuffer( data ); 
		 mRenderer.drawFrame(s.width, s.height, data);
		 mGLSurfaceView.requestRender();
		  
/*		  
		 System.arraycopy(data, 0, mData , 0, s.width * s.height * 3 / 2); 
		 
		  
		 Bitmap bmp = getBitmapFromNV21(mData, s.width, s.height ); 
		 mRenderer.loadTexture(s.width, s.height, bmp); 
		 mGLSurfaceView.requestRender(); 
*/		  
		 mCamera.addCallbackBuffer(mData);
 
	 } 
 
     public Bitmap getBitmapFromNV21(byte[] data, int width, int height) {