Java Code Examples for android.media.effect.EffectFactory#createEffect()

The following examples show how to use android.media.effect.EffectFactory#createEffect() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaEffect.java    From libcommon with Apache License 2.0 5 votes vote down vote up
/**
 * コンストラクタ
 * GLコンテキスト内で生成すること
 * @param effect_context
 */
public MediaEffect(final EffectContext effect_context, final String effectName) {
	mEffectContext = effect_context;
	final EffectFactory factory = effect_context.getFactory();
	if (TextUtils.isEmpty(effectName)) {
		mEffect = null;
	} else {
		mEffect = factory.createEffect(effectName);
	}
}