public interface IRender
render input to output texture, input can only be one of 2D texture or YUV or RGBA buffer
| Modifier and Type | Method and Description |
|---|---|
void |
clip(int inWidth,
int inHeight,
int outWidth,
int outHeight)
adjust texture coordinates
|
void |
flipHorizontal()
flip texture horizontally
|
void |
flipHorizontalWater()
flip water mark horizontally
|
void |
flipReset()
reset flip param
|
void |
flipResetWater()
reset water marker flip
|
void |
flipVertical()
flip texture vertically
|
void |
flipVerticalWater()
flip water mark vertically
|
boolean |
prepareInputImageData(YMFImageBuffer buffer)
prepare the input image data, used for image as input
|
boolean |
prepareInputTexture(YMFTexture texture)
prepare the input texture, bind input texture.
|
boolean |
prepareInputTextureTransformMatrix(float[] matrix)
prepare input texture transform matrix
|
boolean |
prepareOutputTexture(YMFTexture texture)
prepare the output texture, bind framebuffer and so on.
|
void |
prepareWaterTexture(YMFTexture texture)
prepare water marker texture
|
void |
release()
release resource of this render
|
void |
render()
start render input texture to target output texture
|
void |
rotate(int angle)
rotate
|
boolean prepareInputTexture(YMFTexture texture)
texture - input texture as source of the renderboolean prepareInputTextureTransformMatrix(float[] matrix)
boolean prepareInputImageData(YMFImageBuffer buffer)
buffer - input image buffervoid prepareWaterTexture(YMFTexture texture)
texture - water mark textureboolean prepareOutputTexture(YMFTexture texture)
texture - output texturevoid flipReset()
void flipHorizontal()
void flipVertical()
void flipResetWater()
void flipHorizontalWater()
void flipVerticalWater()
void rotate(int angle)
angle - rotate angle (0, 90, 180, 270)void clip(int inWidth,
int inHeight,
int outWidth,
int outHeight)
void render()
void release()