Searched refs:effect (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioEffectTest.java149 //Test case 1.0: test constructor from effect type and get effect ID
166 AudioEffect effect = new AudioEffect(desc[0].type,
170 assertNotNull(msg + ": could not create AudioEffect", effect);
172 assertTrue(msg +": invalid effect ID", (effect.getId() != 0));
177 effect.release();
192 //Test case 1.1: test constructor from effect uuid
208 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_NULL,
212 assertNotNull(msg + ": could not create AudioEffect", effect);
[all...]
/frameworks/base/media/libeffects/preprocessing/
H A DPreProcessing.cpp87 preproc_session_t *session; // session the effect is on
88 const preproc_ops_t *ops; // effect ops table
102 uint32_t samplingRate; // sampling rate at effect process interface
134 // UUIDs for effect types have been generated from http://www.itu.int/ITU-T/asn1/uuid.html
227 int AgcInit (preproc_effect_t *effect) argument
230 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
238 int AgcCreate(preproc_effect_t *effect) argument
240 webrtc::GainControl *agc = effect->session->apm->gain_control();
246 effect->engine = static_cast<preproc_fx_handle_t>(agc);
247 AgcInit(effect);
251 AgcGetParameter(preproc_effect_t *effect, void *pParam, size_t *pValueSize, void *pValue) argument
315 AgcSetParameter(preproc_effect_t *effect, void *pParam, void *pValue) argument
357 AgcEnable(preproc_effect_t *effect) argument
364 AgcDisable(preproc_effect_t *effect) argument
392 AecInit(preproc_effect_t *effect) argument
401 AecCreate(preproc_effect_t *effect) argument
414 AecGetParameter(preproc_effect_t *effect, void *pParam, size_t *pValueSize, void *pValue) argument
439 AecSetParameter(preproc_effect_t *effect, void *pParam, void *pValue) argument
459 AecEnable(preproc_effect_t *effect) argument
466 AecDisable(preproc_effect_t *effect) argument
473 AecSetDevice(preproc_effect_t *effect, uint32_t device) argument
512 NsInit(preproc_effect_t *effect) argument
520 NsCreate(preproc_effect_t *effect) argument
533 NsGetParameter(preproc_effect_t *effect, void *pParam, size_t *pValueSize, void *pValue) argument
542 NsSetParameter(preproc_effect_t *effect, void *pParam, void *pValue) argument
548 NsEnable(preproc_effect_t *effect) argument
555 NsDisable(preproc_effect_t *effect) argument
593 Effect_SetState(preproc_effect_t *effect, uint32_t state) argument
668 Effect_Init(preproc_effect_t *effect, uint32_t procId) argument
681 Effect_Create(preproc_effect_t *effect, preproc_session_t *session, effect_handle_t *interface) argument
690 Effect_Release(preproc_effect_t *effect) argument
1073 preproc_effect_t * effect = (preproc_effect_t *)self; local
1232 preproc_effect_t * effect = (preproc_effect_t *) self; local
1382 preproc_effect_t * effect = (preproc_effect_t *) self; local
1397 preproc_effect_t * effect = (preproc_effect_t *)self; local
[all...]
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaItem.java276 * Add the specified effect to this media item.
283 * effect overlaps with the beginning and/or the end transition.
285 * @param effect The effect to apply
287 * @throws IllegalArgumentException if the effect start and/or duration are
288 * invalid or if the effect cannot be applied to this type of media
289 * item or if the effect id is not unique across all the Effects
292 public void addEffect(Effect effect) { argument
294 if (effect == null) {
295 throw new IllegalArgumentException("NULL effect canno
[all...]
H A DMediaImageItem.java300 * This invalidation is necessary for the case in which an effect or
306 * because an effect or an overlay overlaps with the beginning
320 * This invalidation is necessary for the case in which an effect or
324 * effect.
355 * an effect.
357 for (Effect effect : effects) {
359 * Check if the effect overlaps with the begin transition
361 if (effect.getStartTime() < transitionDurationMs) {
395 * an effect.
398 for (Effect effect
[all...]
H A DVideoEditorImpl.java76 private static final String TAG_EFFECT = "effect";
1041 final Effect effect = parseEffect(parser, currentMediaItem);
1042 currentMediaItem.addEffect(effect);
1044 if (effect instanceof EffectKenBurns) {
1070 Log.w(TAG, "Cannot load effect", ex);
1286 * Parse the effect
1291 * @return The effect
1299 final Effect effect;
1310 effect = new EffectColor(mediaItem, effectId, startTimeMs,
1323 effect
[all...]
H A DTransition.java279 * Checks if the effect and overlay applied on a media item
285 * associated with current transition)for which the effect
308 for (Effect effect : effects) {
309 if (effect instanceof EffectColor) {
310 tmpEffectSettings = mNativeHelper.getEffectSettings((EffectColor)effect);
361 * generate effect clip first if there is any overlap
392 * generate effect clip first if there is any overlap
414 * generate effect clip first if there is any overlap
H A DMediaVideoItem.java272 public void addEffect(Effect effect) { argument
273 if (effect instanceof EffectKenBurns) {
276 super.addEffect(effect);
H A DMediaArtistNativeHelper.java391 /** Invalid effect kind. */
394 /** Invalid video effect. */
397 /** Invalid audio effect. */
409 /** External effect is called but this function is not set. */
934 /** Invert the default rotation direction of the AlphaMagic effect. */
1183 /** Defines settings for an effect. */
1185 /** No audio effect. */
1188 /** Fade-in effect. */
1191 /** Fade-out effect. */
1195 /** Defines the effect setting
3487 getEffectColorType(EffectColor effect) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPathEffect.cpp14 static void destructor(JNIEnv* env, jobject, SkPathEffect* effect) { argument
15 SkSafeUnref(effect);
/frameworks/base/media/java/android/media/audiofx/
H A DPresetReverb.java50 * <p>The PresetReverb is an output mix auxiliary effect and should be created on
51 * Audio session 0. In order for a MediaPlayer or AudioTrack to be fed into this effect,
52 * they must be explicitely attached to it and a send level must be specified. Use the effect ID
53 * returned by getId() method to designate this particular effect when attaching it to the
122 * parameter indicates how much the requesting application needs control of effect parameters.
127 * As the PresetReverb is an auxiliary effect it is recommended to instantiate it on
178 * @param effect the PresetReverb on which the interface is registered.
183 void onParameterChange(PresetReverb effect, int status, int param, short value); argument
194 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
H A DAudioEffect.java43 * <p>To apply the audio effect to a specific AudioTrack or MediaPlayer instance,
48 * <p>Creating an AudioEffect object will create the corresponding effect engine in the audio
49 * framework if no instance of the same effect type exists in the specified audio session.
52 * control of the effect engine or not depending on the priority parameter. If priority is higher
53 * than the priority used by the current effect engine owner, the control will be transfered to the
55 * application will be notified of changes in effect engine state or control ownership by the
67 // effect type UUIDs are taken from hardware/libhardware/include/hardware/audio_effect.h
70 * The following UUIDs define effect types corresponding to standard audio
77 * UUID for environmental reverb effect
83 * UUID for preset reverb effect
925 onEnableStatusChange(AudioEffect effect, boolean enabled) argument
940 onControlStatusChange(AudioEffect effect, boolean controlGranted) argument
956 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DBassBoost.java33 * Bass boost is an audio effect to boost or amplify low frequencies of the sound. It is comparable
59 * Bass boost effect strength. Parameter ID for
88 * how much the requesting application needs control of effect parameters. The normal priority
122 * Sets the strength of the bass boost effect. If the implementation does not support per mille
126 * @param strength strength of the effect. The valid range for strength strength is [0, 1000],
127 * where 0 per mille designates the mildest effect and 1000 per mille designates the strongest.
138 * Gets the current strength of the effect.
139 * @return the strength of the effect. The valid range for strength is [0, 1000], where 0 per
140 * mille designates the mildest effect and 1000 per mille the strongest
161 * @param effect th
166 onParameterChange(BassBoost effect, int status, int param, short value) argument
177 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DVirtualizer.java33 * An audio virtualizer is a general name for an effect to spatialize audio channels. The exact
34 * behavior of this effect is dependent on the number of audio input channels and the types and
36 * stereo headphone output, a stereo widening effect is used when this effect is turned on.
61 * Virtualizer effect strength. Parameter ID for
90 * how much the requesting application needs control of effect parameters. The normal priority
124 * Sets the strength of the virtualizer effect. If the implementation does not support per mille
128 * @param strength strength of the effect. The valid range for strength strength is [0, 1000],
129 * where 0 per mille designates the mildest effect and 1000 per mille designates the strongest.
140 * Gets the current strength of the effect
168 onParameterChange(Virtualizer effect, int status, int param, short value) argument
179 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DEnvironmentalReverb.java49 * <p>The EnvironmentalReverb is an output mix auxiliary effect and should be created on
50 * Audio session 0. In order for a MediaPlayer or AudioTrack to be fed into this effect,
51 * they must be explicitely attached to it and a send level must be specified. Use the effect ID
52 * returned by getId() method to designate this particular effect when attaching it to the
132 * parameter indicates how much the requesting application needs control of effect parameters.
137 * As the EnvironmentalReverb is an auxiliary effect it is recommended to instantiate it on
150 * Sets the master volume level of the environmental reverb effect.
163 * Gets the master volume level of the environmental reverb effect.
178 * overall reverb effect.
412 * produce a more colored effect
452 onParameterChange(EnvironmentalReverb effect, int status, int param, int value) argument
463 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DEqualizer.java133 * how much the requesting application needs control of effect parameters. The normal priority
298 * Gets the band that has the most effect on the given frequency.
300 * @return the frequency band that has most effect on the given frequency.
386 * @param effect the Equalizer on which the interface is registered.
392 void onParameterChange(Equalizer effect, int status, int param1, int param2, int value); argument
403 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
/frameworks/base/services/audioflinger/
H A DAudioFlinger.cpp433 // check if an effect with same session ID is waiting for a track to be created
452 // move effect chain to this output thread if an effect on same session was waiting
1313 LOGV("updateSuspendedSessions_l() suspend adding effect %08x", key);
1322 LOGV("updateSuspendedSessions_l() restore removing effect %08x", key);
1336 void AudioFlinger::ThreadBase::checkSuspendOnEffectEnabled(const sp<EffectModule>& effect, argument
1341 checkSuspendOnEffectEnabled_l(effect, enabled, sessionId);
1344 void AudioFlinger::ThreadBase::checkSuspendOnEffectEnabled_l(const sp<EffectModule>& effect, argument
1349 // suspend all effects in AUDIO_SESSION_OUTPUT_MIX when enabling any effect on
1350 // another session. This gives the priority to well behaved effect contro
5268 sp<EffectModule> effect = ec->mEffects[0]; local
5618 sp<EffectModule> effect = chain->getEffectFromId_l(0); local
5664 sp<EffectModule> effect; local
5771 sp<EffectModule> effect; local
5782 addEffect_l(const sp<EffectModule>& effect) argument
5818 removeEffect_l(const sp<EffectModule>& effect) argument
5883 disconnectEffect(const sp<EffectModule>& effect, const wp<EffectHandle>& handle, bool unpiniflast) argument
6010 sp<EffectModule> effect = getEffect_l(AUDIO_SESSION_OUTPUT_MIX, EffectId); local
6794 EffectHandle(const sp<EffectModule>& effect, const sp<AudioFlinger::Client>& client, const sp<IEffectClient>& effectClient, int32_t priority) argument
7084 sp<EffectModule> effect; local
7099 sp<EffectModule> effect; local
7116 sp<EffectModule> effect; local
7173 addEffect_l(const sp<EffectModule>& effect) argument
7287 removeEffect_l(const sp<EffectModule>& effect) argument
7421 sp<EffectModule> effect = mEffects[i]; local
7452 sp<EffectModule> effect = getEffectIfEnabled(type); local
7471 sp<EffectModule> effect = desc->mEffect.promote(); local
7567 sp<EffectModule> effect; local
7575 checkSuspendOnEffectEnabled(const sp<EffectModule>& effect, bool enabled) argument
[all...]
H A DAudioPolicyService.cpp338 EffectDesc *effect = effects[i]; local
339 sp<AudioEffect> fx = new AudioEffect(NULL, &effect->mUuid, -1, 0, 0, audioSession, input);
342 LOGW("Failed to create Fx %s on input %d", effect->mName, input);
346 for (size_t j = 0; j < effect->mParams.size(); j++) {
347 fx->setParameter(effect->mParams[j]);
1235 LOGV("loadInputSource() found effect %s in list", node->name);
1240 LOGV("loadInputSource() effect %s not in list", node->name);
1244 EffectDesc *effect = new EffectDesc(*effects[i]); local
1245 loadEffectParameters(node, effect->mParams);
1246 LOGV("loadInputSource() adding effect
1295 EffectDesc *effect = new EffectDesc(); local
1311 EffectDesc *effect = loadEffect(node); local
[all...]
H A DAudioFlinger.h443 void disconnectEffect(const sp< EffectModule>& effect,
450 // effect
455 // get effect chain corresponding to session Id.
459 // add an effect chain to the chain list (mEffectChains)
461 // remove an effect chain from the chain list (mEffectChains)
463 // lock mall effect chains Mutexes. Must be called before releasing the
467 // unlock effect chains after process
469 // set audio mode to all effect chains
471 // get effect module with corresponding ID on specified audio session
473 // add and effect modul
1211 sp<EffectModule> effect() { return mEffect; } function in class:android::AudioFlinger::EffectHandle
[all...]
/frameworks/media/libvideoeditor/lvpp/
H A DPreviewPlayer.cpp1012 // First check if effect starttime matches the clip being previewed
1017 // This effect doesn't belong to this clip, check next one
1020 // Check if effect applies to this particular frame timestamp
1035 //Provide the overlay Update indication when there is an overlay effect
1039 // Find the effect in effectSettings array
1405 uint32_t effect = VIDEO_EFFECT_NONE; local
1410 effect = VIDEO_EFFECT_FADEFROMBLACK;
1414 effect = VIDEO_EFFECT_FADETOBLACK;
1418 effect = VIDEO_EFFECT_BLACKANDWHITE;
1422 effect
[all...]
H A DVideoEditorPreviewController.cpp848 // Postprocessing (apply video effect)
852 // First check if effect starttime matches the clip being previewed
855 // This effect doesn't belong to this clip, check next one
868 //Provide the overlay Update indication when there is an overlay effect
873 // Find the effect in effectSettings array
1298 M4OSA_UInt32 effect = VIDEO_EFFECT_NONE; local
1303 effect = VIDEO_EFFECT_FADEFROMBLACK;
1307 effect = VIDEO_EFFECT_FADETOBLACK;
1311 effect = VIDEO_EFFECT_BLACKANDWHITE;
1315 effect
[all...]
/frameworks/base/include/media/
H A DAudioEffect.h65 * NO_INIT effect library failed to initialize
74 * Returns an effect descriptor during effect
78 * index: index of the queried effect.
79 * descriptor: address where the effect descriptor should be returned.
84 * NO_INIT effect library failed to initialize
86 * INVALID_OPERATION effect list has changed since last execution of queryNumberEffects()
89 * *descriptor: updated with effect descriptor
95 * Returns the descriptor for the specified effect uuid.
98 * uuid: pointer to effect uui
411 EffectClient(AudioEffect *effect) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAudioService.java152 /* Sound effect file names */
162 /* Sound effect file name mapping sound effect id (AudioManager.FX_xxx) to
163 * file index in SOUND_EFFECT_FILES[] (first column) and indicating if effect
1059 * sample can be reused for another effect using the same file.
1066 * Effects whose value in SOUND_EFFECT_FILES_MAP[effect][1] is -1 must be loaded.
1067 * If load succeeds, value in SOUND_EFFECT_FILES_MAP[effect][1] is > 0:
1068 * this indicates we have a valid sample loaded for this effect.
1072 for (int effect = 0; effect < AudioManage
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java893 * @param effect May be null. The patheffect to be installed in the paint
894 * @return effect
896 public PathEffect setPathEffect(PathEffect effect) { argument
898 if (effect != null) {
899 effectNative = effect.native_instance;
902 mPathEffect = effect;
903 return effect;
1781 * other characters in the cluster. In effect, such clusters are
1829 * other characters in the cluster. In effect, such clusters are
2133 int effect);
2132 native_setPathEffect(int native_object, int effect) argument
[all...]
/frameworks/base/media/libmedia/
H A DIAudioFlinger.cpp616 sp<IEffect> effect; local
619 return effect;
646 effect = interface_cast<IEffect>(reply.readStrongBinder());
653 return effect;
997 sp<IEffect> effect = createEffect(pid, &desc, client, priority, output, sessionId, &status, &id, &enabled); local
1001 reply->writeStrongBinder(effect->asBinder());
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java821 /*package*/ static int native_setPathEffect(int native_object, int effect) { argument
825 return effect;
828 delegate.mPathEffect = PathEffect_Delegate.getDelegate(effect);
830 return effect;

Completed in 693 milliseconds

12