public class GPUImageFilter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NO_FILTER_FRAGMENT_SHADER |
static java.lang.String |
NO_FILTER_VERTEX_SHADER |
| Constructor and Description |
|---|
GPUImageFilter() |
GPUImageFilter(java.lang.String vertexShader,
java.lang.String fragmentShader) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convertStreamToString(java.io.InputStream is) |
void |
destroy() |
int |
getAttribPosition() |
int |
getAttribTextureCoordinate() |
int |
getOutputHeight() |
int |
getOutputWidth() |
int |
getProgram() |
int |
getUniformTexture() |
void |
ifNeedInit() |
boolean |
isInitialized() |
static java.lang.String |
loadShader(java.lang.String file,
android.content.Context context) |
void |
onDestroy() |
void |
onDraw(int textureId,
java.nio.FloatBuffer cubeBuffer,
java.nio.FloatBuffer textureBuffer) |
protected void |
onDrawArraysPre() |
void |
onInit() |
void |
onInitialized() |
void |
onOutputSizeChanged(int width,
int height) |
protected void |
runOnDraw(java.lang.Runnable runnable) |
protected void |
runPendingOnDrawTasks() |
protected void |
setFloat(int location,
float floatValue) |
protected void |
setFloatArray(int location,
float[] arrayValue) |
protected void |
setFloatVec2(int location,
float[] arrayValue) |
protected void |
setFloatVec3(int location,
float[] arrayValue) |
protected void |
setFloatVec4(int location,
float[] arrayValue) |
protected void |
setInteger(int location,
int intValue) |
protected void |
setPoint(int location,
android.graphics.PointF point) |
protected void |
setUniformMatrix3f(int location,
float[] matrix) |
protected void |
setUniformMatrix4f(int location,
float[] matrix) |
public static final java.lang.String NO_FILTER_VERTEX_SHADER
public static final java.lang.String NO_FILTER_FRAGMENT_SHADER
public GPUImageFilter()
public GPUImageFilter(java.lang.String vertexShader,
java.lang.String fragmentShader)
public void onInit()
public void onInitialized()
public void ifNeedInit()
public final void destroy()
public void onDestroy()
public void onOutputSizeChanged(int width,
int height)
public void onDraw(int textureId,
java.nio.FloatBuffer cubeBuffer,
java.nio.FloatBuffer textureBuffer)
protected void onDrawArraysPre()
protected void runPendingOnDrawTasks()
public boolean isInitialized()
public int getOutputWidth()
public int getOutputHeight()
public int getProgram()
public int getAttribPosition()
public int getAttribTextureCoordinate()
public int getUniformTexture()
protected void setInteger(int location,
int intValue)
protected void setFloat(int location,
float floatValue)
protected void setFloatVec2(int location,
float[] arrayValue)
protected void setFloatVec3(int location,
float[] arrayValue)
protected void setFloatVec4(int location,
float[] arrayValue)
protected void setFloatArray(int location,
float[] arrayValue)
protected void setPoint(int location,
android.graphics.PointF point)
protected void setUniformMatrix3f(int location,
float[] matrix)
protected void setUniformMatrix4f(int location,
float[] matrix)
protected void runOnDraw(java.lang.Runnable runnable)
public static java.lang.String loadShader(java.lang.String file,
android.content.Context context)
public static java.lang.String convertStreamToString(java.io.InputStream is)