Lines Matching refs:mEffect
48 private Effect mEffect; field in MediaEffectsFragment
150 if (mEffect != null) { in initEffect()
151 mEffect.release(); in initEffect()
160 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_AUTOFIX); in initEffect()
161 mEffect.setParameter("scale", 0.5f); in initEffect()
165 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_BLACKWHITE); in initEffect()
166 mEffect.setParameter("black", .1f); in initEffect()
167 mEffect.setParameter("white", .7f); in initEffect()
171 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_BRIGHTNESS); in initEffect()
172 mEffect.setParameter("brightness", 2.0f); in initEffect()
176 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_CONTRAST); in initEffect()
177 mEffect.setParameter("contrast", 1.4f); in initEffect()
181 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_CROSSPROCESS); in initEffect()
185 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_DOCUMENTARY); in initEffect()
189 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_DUOTONE); in initEffect()
190 mEffect.setParameter("first_color", Color.YELLOW); in initEffect()
191 mEffect.setParameter("second_color", Color.DKGRAY); in initEffect()
195 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_FILLLIGHT); in initEffect()
196 mEffect.setParameter("strength", .8f); in initEffect()
200 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_FISHEYE); in initEffect()
201 mEffect.setParameter("scale", .5f); in initEffect()
205 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_FLIP); in initEffect()
206 mEffect.setParameter("vertical", true); in initEffect()
210 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_FLIP); in initEffect()
211 mEffect.setParameter("horizontal", true); in initEffect()
215 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_GRAIN); in initEffect()
216 mEffect.setParameter("strength", 1.0f); in initEffect()
220 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_GRAYSCALE); in initEffect()
224 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_LOMOISH); in initEffect()
228 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_NEGATIVE); in initEffect()
232 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_POSTERIZE); in initEffect()
236 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_ROTATE); in initEffect()
237 mEffect.setParameter("angle", 180); in initEffect()
241 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_SATURATE); in initEffect()
242 mEffect.setParameter("scale", .5f); in initEffect()
246 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_SEPIA); in initEffect()
250 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_SHARPEN); in initEffect()
254 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_TEMPERATURE); in initEffect()
255 mEffect.setParameter("scale", .9f); in initEffect()
259 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_TINT); in initEffect()
260 mEffect.setParameter("tint", Color.MAGENTA); in initEffect()
264 mEffect = effectFactory.createEffect(EffectFactory.EFFECT_VIGNETTE); in initEffect()
265 mEffect.setParameter("scale", .5f); in initEffect()
274 mEffect.apply(mTextures[0], mImageWidth, mImageHeight, mTextures[1]); in applyEffect()