Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.android);
GraphEnvironment graphEnvironment = new GraphEnvironment();
graphEnvironment.createGLEnvironment();
graphEnvironment.addReferences("cameraView", mCameraView);
graphEnvironment.addReferences("cameraId", mCameraId);
graphEnvironment.addReferences("outputFileName", mOutFileName);
int graphId = graphEnvironment.loadGraph(this, R.raw.cameraeffectsrecordingsample);
mRunner = graphEnvironment.getRunner(graphId, GraphEnvironment.MODE_ASYNCHRONOUS);