public class MediaEffectKernel3x3Drawer extends MediaEffectColorAdjustDrawer
| Modifier and Type | Field and Description |
|---|---|
static float[] |
KERNEL_BRIGHTEN |
static float[] |
KERNEL_EDGE_DETECT |
static float[] |
KERNEL_EMBOSS |
static float[] |
KERNEL_GAUSSIAN |
static float[] |
KERNEL_LAPLACIAN |
static float[] |
KERNEL_NULL |
static float[] |
KERNEL_SHARPNESS |
static int |
KERNEL_SIZE |
static float[] |
KERNEL_SMOOTH |
static float[] |
KERNEL_SOBEL_H |
static float[] |
KERNEL_SOBEL_V |
static float[] |
KERNEL_SOBEL2_H |
static float[] |
KERNEL_SOBEL2_V |
FRAGMENT_SHADER_2D, FRAGMENT_SHADER_EXT, mEnabled, mOutputOffscreen, mSync| Constructor and Description |
|---|
MediaEffectKernel3x3Drawer(boolean isOES,
java.lang.String fss) |
MediaEffectKernel3x3Drawer(boolean isOES,
java.lang.String vss,
java.lang.String fss) |
MediaEffectKernel3x3Drawer(java.lang.String fss) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
preDraw(int tex_id,
float[] tex_matrix,
int offset)
描画の前処理
テクスチャ変換行列/モデルビュー変換行列を代入, テクスチャをbindする
mSyncはロックされて呼び出される
|
void |
setKernel(float[] values,
float colorAdj) |
void |
setTexSize(int width,
int height)
Sets the size of the texture.
|
setColorAdjustapply, draw, getMvpMatrix, getMvpMatrix, getProgram, postDraw, release, setMvpMatrixpublic static final int KERNEL_SIZE
public static final float[] KERNEL_NULL
public static final float[] KERNEL_SOBEL_H
public static final float[] KERNEL_SOBEL_V
public static final float[] KERNEL_SOBEL2_H
public static final float[] KERNEL_SOBEL2_V
public static final float[] KERNEL_SHARPNESS
public static final float[] KERNEL_EDGE_DETECT
public static final float[] KERNEL_EMBOSS
public static final float[] KERNEL_SMOOTH
public static final float[] KERNEL_GAUSSIAN
public static final float[] KERNEL_BRIGHTEN
public static final float[] KERNEL_LAPLACIAN
public MediaEffectKernel3x3Drawer(java.lang.String fss)
public MediaEffectKernel3x3Drawer(boolean isOES,
java.lang.String fss)
public MediaEffectKernel3x3Drawer(boolean isOES,
java.lang.String vss,
java.lang.String fss)
protected void preDraw(int tex_id,
float[] tex_matrix,
int offset)
MediaEffectDrawerpreDraw in class MediaEffectColorAdjustDrawertex_id - texture IDtex_matrix - テクスチャ変換行列、nullならば以前に適用したものが再利用される.領域チェックしていないのでoffsetから16個以上確保しておくことoffset - テクスチャ変換行列のオフセットpublic void setKernel(float[] values,
float colorAdj)
public void setTexSize(int width,
int height)
setTexSize in class MediaEffectDrawer