Package 

Class HueFilter

  • All Implemented Interfaces:
    com.otaliastudios.cameraview.filter.Filter , com.otaliastudios.cameraview.filter.OneParameterFilter

    
    public class HueFilter
    extends BaseFilter implements OneParameterFilter
                        

    Applies a hue effect on the input frames.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private float hue
    • Constructor Summary

      Constructors 
      Constructor Description
      HueFilter()
    • Method Summary

      Modifier and Type Method Description
      float getHue() Returns the current hue value.
      void setHue(float hue) Sets the hue value in degrees.
      void setParameter1(float value) Sets the parameter.The value should always be between 0 and 1.
      float getParameter1() Returns the parameter.The returned value should always be between 0 and 1.
      String getFragmentShader() Returns a String containing the fragment shader.
      void onCreate(int programHandle) The filter program was just created.
      void onDestroy() The filter program is about to be destroyed.
      • Methods inherited from class com.otaliastudios.cameraview.filter.BaseFilter

        copy, draw, getVertexShader, setSize
      • Methods inherited from class com.otaliastudios.cameraview.filter.Filter

        copy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HueFilter

        HueFilter()
    • Method Detail

      • getHue

         float getHue()

        Returns the current hue value.

      • setHue

         void setHue(float hue)

        Sets the hue value in degrees. See the values chart:https://cloud.githubusercontent.com/assets/2201511/21810115/b99ac22a-d74a-11e6-9f6c-ef74d15c88c7.jpg

        Parameters:
        hue - hue degrees
      • setParameter1

         void setParameter1(float value)

        Sets the parameter.The value should always be between 0 and 1.

        Parameters:
        value - parameter
      • getParameter1

         float getParameter1()

        Returns the parameter.The returned value should always be between 0 and 1.

      • onCreate

         void onCreate(int programHandle)

        The filter program was just created. We pass in a handle to the OpenGLprogram that was created, so you can fetch pointers.

        Parameters:
        programHandle - handle
      • onDestroy

         void onDestroy()

        The filter program is about to be destroyed.