public class GPUImageChromaKeyBlendFilter extends GPUImageTwoInputFilter
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CHROMA_KEY_BLEND_FRAGMENT_SHADER |
NO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor | Description |
|---|---|
GPUImageChromaKeyBlendFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onInit() |
|
void |
onInitialized() |
|
void |
setColorToReplace(float redComponent,
float greenComponent,
float blueComponent) |
The color to be replaced is specified using individual red, green, and blue components (normalized to 1.0).
|
void |
setSmoothing(float smoothing) |
The degree of smoothing controls how gradually similar colors are replaced in the image
The default value is 0.1
|
void |
setThresholdSensitivity(float thresholdSensitivity) |
The threshold sensitivity controls how similar pixels need to be colored to be replaced
The default value is 0.3
|
convertStreamToString, destroy, getAttribPosition, getAttribTextureCoordinate, getOutputHeight, getOutputWidth, getProgram, getUniformTexture, ifNeedInit, isInitialized, loadShader, onDraw, onOutputSizeChanged, runOnDraw, runPendingOnDrawTasks, setFloat, setFloatArray, setFloatVec2, setFloatVec3, setFloatVec4, setInteger, setPoint, setUniformMatrix3f, setUniformMatrix4fgetBitmap, onDestroy, onDrawArraysPre, recycleBitmap, setBitmap, setRotationpublic static final java.lang.String CHROMA_KEY_BLEND_FRAGMENT_SHADER
public void onInit()
onInit in class GPUImageTwoInputFilterpublic void onInitialized()
onInitialized in class GPUImageTwoInputFilterpublic void setSmoothing(float smoothing)
public void setThresholdSensitivity(float thresholdSensitivity)
public void setColorToReplace(float redComponent,
float greenComponent,
float blueComponent)
redComponent - Red component of color to be replacedgreenComponent - Green component of color to be replacedblueComponent - Blue component of color to be replaced