Giter Site home page Giter Site logo

camera-glsurfaceview's People

Contributors

gumaola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

deeptijakhotra

camera-glsurfaceview's Issues

CameraX is not handled in this Project

In CameraActivity there is an integer value from intent extra to handle camera api type (camera v1, camera v2 or camerax). But only value 1 for camera v1 and value 2 for camera v2, for camerax will return (not handled)

`
@OverRide
protected void onCreate(@nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_camera);
preview = findViewById(R.id.preview);

    Intent i = getIntent();
    int apiV = i.getIntExtra(api_version, 1);

    //创建camera api
    if (apiV == 1) {
        camera = new CameraV1Interface(this, Camera.CameraInfo.CAMERA_FACING_BACK);
    } else if (apiV == 2) {
        camera = new CameraV2Interface(this, CameraCharacteristics.LENS_FACING_BACK);
    }

    if (camera == null) {
        return;
    }

    //创建engine
    engine = new EmptyEngine(this, camera, preview);
    preview.setRenderer(engine);
}

`

How can I apply blur shader, like you apply gray shader?

I'm new in shaders, and I don't understand how can I apply any shader to GLSurfaceView. Your project is only one I found, that realy works great, and I want blur shader in my camera app like you have gray, and I don't know how to apply it. Do you know how to do this? Is that possible? As I understand it, I need to change the files fragment_shader.glsl and vertex_shader.glsl. But how exactly? Thank you in advance. Your project is very informative

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.