shadercam | Simple OpenGL Shaders with the camera2 apis in Android | Camera library

 by   googlecreativelab Java Version: v2.0.0 License: Non-SPDX

kandi X-RAY | shadercam Summary

kandi X-RAY | shadercam Summary

shadercam is a Java library typically used in Video, Camera applications. shadercam has no vulnerabilities, it has build file available and it has low support. However shadercam has 12 bugs and it has a Non-SPDX License. You can download it from GitHub.

Simple OpenGL Shaders with the [camera2] apis in Android 7.0+.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shadercam has a low active ecosystem.
              It has 235 star(s) with 65 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 6 have been closed. On average issues are closed in 60 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of shadercam is v2.0.0

            kandi-Quality Quality

              OutlinedDot
              shadercam has 12 bugs (2 blocker, 0 critical, 10 major, 0 minor) and 119 code smells.

            kandi-Security Security

              shadercam has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              shadercam code analysis shows 0 unresolved vulnerabilities.
              There are 4 security hotspots that need review.

            kandi-License License

              shadercam has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              shadercam releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              shadercam saves you 1365 person hours of effort in developing the same functionality from scratch.
              It has 3057 lines of code, 260 functions and 31 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shadercam and discovered the below as its top functions. This is intended to give you an instant insight into shadercam implemented functionality, and help decide if they suit your requirements.
            • Called when the buffer is available
            • Draws camera
            • Stops this recorder
            • Copy the file to a local temp file
            • Starts the camera preview
            • Returns the optimal size for a given array of sizes
            • Draws the surface
            • Set the extra texture ids
            • Creates a new program
            • Compiles the specified shader source
            • The main loop
            • Sets the coordinates and attributes of the camera
            • Initializes the View
            • This method checks if the AppCompatActivity has been granted
            • Updates the camera preview
            • Allocates a direct float buffer
            • Creates a texture from raw data
            • Log the current EGL context
            • Starts the resume view
            • Saves the frame to a file
            • Returns a suitable EGLConfig
            • Initializes this thread
            • Called when the window is resume
            • Set the uniforms and attributes
            • Updates an active texture
            • Writes GL version information to the log
            Get all kandi verified functions for this library.

            shadercam Key Features

            No Key Features are available at this moment for shadercam.

            shadercam Examples and Code Snippets

            No Code Snippets are available at this moment for shadercam.

            Community Discussions

            QUESTION

            Calculate mean of a row in the fragment shader (OpenGL ES 2.0)
            Asked 2017-Jun-12 at 12:34

            I am currently programming an application for image processing. To achieve the needed performance, I have to use the GPU to compute the camera input, more specifically use OpenGL ES 2.0. With the help of this project (https://github.com/yulu/ShaderCam) I achieved to pass the image to the pipeline and do simple operations with the fragment shader (like inverting colors etc).

            My knowledge of GLSL, fragment shaders and vertex shaders is fairly limited but I am aware of pipeline constraints and what the two shaders do in the pipeline. So - formulating the problem - I would like to calculate the average color of a row in my received image and return it (per row) to my application. I read here https://stackoverflow.com/a/13866636/8038866 that this is generally possible, however I can't seem to find out the following things:

            1 (edit: SOLVED by simply passing the w and h of my texture to the vertex and fragment shader): Knowing where the row ends (and having that information in the fragment shader). For this I assume that I would have to pass the width of the picture to the vertex shader and from there to the fragment shader, right?

            2.: How to calculate the average the color values of each row in the fragment shader and then pass them to the application. If I understand it correctly - the fragment shader only excutes the code per pixel, so I am not sure how to achieve this.

            Here are the two very basic shaders vertex shader:

            ...

            ANSWER

            Answered 2017-Jun-11 at 13:34

            I found a way that does the trick for me. The idea is to calculate the mean for only one row of pixels and then later in the application to get this line with

            glReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * data);

            Here is my fragment shader (notice that the width of the surface is required as well):

            Source https://stackoverflow.com/questions/44472729

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shadercam

            You can download it from GitHub.
            You can use shadercam like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the shadercam component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/googlecreativelab/shadercam.git

          • CLI

            gh repo clone googlecreativelab/shadercam

          • sshUrl

            git@github.com:googlecreativelab/shadercam.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Camera Libraries

            react-native-camera

            by react-native-camera

            react-native-camera

            by react-native-community

            librealsense

            by IntelRealSense

            camerakit-android

            by CameraKit

            MagicCamera

            by wuhaoyu1990

            Try Top Libraries by googlecreativelab

            anypixel

            by googlecreativelabC

            teachable-machine-v1

            by googlecreativelabJavaScript

            coder

            by googlecreativelabJavaScript

            open-nsynth-super

            by googlecreativelabC++

            chrome-music-lab

            by googlecreativelabJavaScript