Search in sources :

Example 1 with MagicCameraDisplay

use of com.seu.magicfilter.display.MagicCameraDisplay in project MagicCamera by wuhaoyu1990.

the class CameraActivity method initMagicPreview.

private void initMagicPreview() {
    GLSurfaceView glSurfaceView = (GLSurfaceView) findViewById(R.id.glsurfaceview_camera);
    FrameLayout.LayoutParams params = new LayoutParams(Constants.mScreenWidth, Constants.mScreenHeight);
    glSurfaceView.setLayoutParams(params);
    mMagicCameraDisplay = new MagicCameraDisplay(this, glSurfaceView);
}
Also used : LayoutParams(android.widget.FrameLayout.LayoutParams) LayoutParams(android.widget.FrameLayout.LayoutParams) FrameLayout(android.widget.FrameLayout) GLSurfaceView(android.opengl.GLSurfaceView) MagicCameraDisplay(com.seu.magicfilter.display.MagicCameraDisplay)

Aggregations

GLSurfaceView (android.opengl.GLSurfaceView)1 FrameLayout (android.widget.FrameLayout)1 LayoutParams (android.widget.FrameLayout.LayoutParams)1 MagicCameraDisplay (com.seu.magicfilter.display.MagicCameraDisplay)1