public class MediaSource extends java.lang.Object implements ISource
| Modifier and Type | Field and Description |
|---|---|
protected int |
mHeight |
protected TextureOffscreen |
mOutputScreen |
protected TextureOffscreen |
mSourceScreen |
protected int[] |
mSrcTexIds |
protected int |
mWidth |
protected boolean |
needSwap |
| Constructor and Description |
|---|
MediaSource()
コンストラクタ
GLコンテキスト内で生成すること
|
MediaSource(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
ISource |
apply(IEffect effect)
IEffectを適用する。
|
MediaSource |
bind() |
int |
getHeight() |
int |
getOutputTexId() |
TextureOffscreen |
getOutputTexture() |
int[] |
getSourceTexId() |
float[] |
getTexMatrix() |
int |
getWidth() |
void |
release() |
ISource |
reset() |
ISource |
resize(int width,
int height) |
MediaSource |
setSource(GLDrawer2D drawer,
int tex_id,
float[] tex_matrix)
入力用オフスクリーンに映像をセット
|
MediaSource |
unbind() |
protected TextureOffscreen mSourceScreen
protected TextureOffscreen mOutputScreen
protected int mWidth
protected int mHeight
protected int[] mSrcTexIds
protected boolean needSwap
public MediaSource()
public MediaSource(int width,
int height)
public ISource apply(IEffect effect)
ISourcepublic int[] getSourceTexId()
getSourceTexId in interface ISourcepublic int getOutputTexId()
getOutputTexId in interface ISourcepublic float[] getTexMatrix()
getTexMatrix in interface ISourcepublic TextureOffscreen getOutputTexture()
getOutputTexture in interface ISourcepublic MediaSource bind()
public MediaSource unbind()
public MediaSource setSource(GLDrawer2D drawer, int tex_id, float[] tex_matrix)
drawer - オフスクリーン描画用GLDrawer2Dtex_id - tex_matrix -