public class SkinBeautifyFilter extends BaseImageFilter
COORDS_PER_VERTEX, mHeight, mIndicesOrder, mShapeCoordinate, mTextureCoordinate, mWidth, TEXTURE_COORDS_PER_VERTEX
Constructor and Description |
---|
SkinBeautifyFilter(float skinSmoothnessLevel,
float brightnessLevel) |
Modifier and Type | Method and Description |
---|---|
float |
getBrightnessLevel()
Gets the brightness level.
|
float |
getSkinSmoothnessLevel()
Gets the skin smoothness level.
|
void |
onDestroy()
Called when this filter destroys.
|
void |
onDraw(int textureName,
int frameBufferName)
Override this method by OpenGLES
to define how the drawing occurs.
|
void |
onInit(int width,
int height)
Called when initializing.
|
void |
setBrightnessLevel(float brightnessLevel)
Sets the brightness level.
|
void |
setSkinSmoothnessLevel(float skinSmoothnessLevel)
Sets the skin smoothness level.
|
public SkinBeautifyFilter(float skinSmoothnessLevel, float brightnessLevel) throws StreamException.InternalException
skinSmoothnessLevel
- The skin smooth level. Suggested value is between 0.0f to 2.0f.brightnessLevel
- The brightness level. Suggested value is between 0.0f to 1.0f.StreamException.InternalException
- Unexpected error, please contact us.public void onInit(int width, int height)
BaseImageFilter
onInit
in class BaseImageFilter
width
- output video widthheight
- output video heightpublic void onDraw(int textureName, int frameBufferName)
BaseImageFilter
onDraw
in class BaseImageFilter
textureName
- origin texture name. see OpenGLES glGenTexturesframeBufferName
- target frame buffer object name. see OpenGLES glGenFramebufferspublic void onDestroy()
BaseImageFilter
onDestroy
in class BaseImageFilter
public void setSkinSmoothnessLevel(float skinSmoothnessLevel)
skinSmoothnessLevel
- The skin smoothness level. Suggested value is between 0.0f to 2.0f.getSkinSmoothnessLevel()
public void setBrightnessLevel(float brightnessLevel)
brightnessLevel
- The brightness level. Suggested value is between 0.0f to 1.0f.getBrightnessLevel()
public float getSkinSmoothnessLevel()
setSkinSmoothnessLevel(float)
public float getBrightnessLevel()
setBrightnessLevel(float)