/frameworks/av/media/libeffects/lvm/benchmarks/ |
D | reverb_benchmark.cpp | 56 int reverbSetConfigParam(uint32_t paramType, uint32_t paramValue, effect_handle_t effectHandle) { in reverbSetConfigParam() argument 64 int status = (*effectHandle) in reverbSetConfigParam() 65 ->command(effectHandle, EFFECT_CMD_SET_PARAM, in reverbSetConfigParam() 115 effect_handle_t effectHandle = nullptr; in BM_REVERB() local 116 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.create_effect(&uuid, 1, 1, &effectHandle); in BM_REVERB() 129 if (int status = (*effectHandle) in BM_REVERB() 130 ->command(effectHandle, EFFECT_CMD_SET_CONFIG, sizeof(effect_config_t), in BM_REVERB() 138 (*effectHandle) in BM_REVERB() 139 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_REVERB() 145 if (int status = reverbSetConfigParam(REVERB_PARAM_PRESET, preset, effectHandle); status != 0) { in BM_REVERB() [all …]
|
D | lvm_benchmark.cpp | 176 effect_handle_t effectHandle = nullptr; in BM_LVM() local 177 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.create_effect(&uuid, 1, 1, &effectHandle); in BM_LVM() 190 if (int status = (*effectHandle) in BM_LVM() 191 ->command(effectHandle, EFFECT_CMD_SET_CONFIG, sizeof(effect_config_t), in BM_LVM() 199 (*effectHandle) in BM_LVM() 200 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_LVM() 215 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_LVM() 222 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(effectHandle); status != 0) { in BM_LVM()
|
/frameworks/av/media/libeffects/preprocessing/benchmarks/ |
D | preprocessing_benchmark.cpp | 207 int preProcSetConfigParam(effect_handle_t effectHandle, uint32_t paramType, uint32_t paramValue) { in preProcSetConfigParam() argument 214 (*effectHandle) in preProcSetConfigParam() 215 ->command(effectHandle, EFFECT_CMD_SET_PARAM, sizeof(effect_param_t), effectParam, in preProcSetConfigParam() 233 effect_handle_t effectHandle = nullptr; in BM_PREPROCESSING() local 239 if (int status = preProcCreateEffect(&effectHandle, state.range(1), &config, sessionId, ioId); in BM_PREPROCESSING() 248 (*effectHandle) in BM_PREPROCESSING() 249 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_PREPROCESSING() 281 preProcSetConfigParam(effectHandle, AEC_PARAM_ECHO_DELAY, kStreamDelayMs); in BM_PREPROCESSING() 287 if (int status = (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_PREPROCESSING() 294 (*effectHandle)->process_reverse(effectHandle, &farInBuffer, &outBuffer); in BM_PREPROCESSING() [all …]
|
/frameworks/av/media/libeffects/downmix/benchmark/ |
D | downmix_benchmark.cpp | 107 effect_handle_t effectHandle = nullptr; in BM_Downmix() local 109 &downmix_uuid, 1, 1, &effectHandle); in BM_Downmix() 138 if (int status = (*effectHandle) in BM_Downmix() 139 ->command(effectHandle, EFFECT_CMD_SET_CONFIG, sizeof(effect_config_t), in BM_Downmix() 146 if (int status = (*effectHandle) in BM_Downmix() 147 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_Downmix() 160 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_Downmix() 168 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(effectHandle); status != 0) { in BM_Downmix()
|
/frameworks/av/media/libeffects/spatializer/benchmarks/ |
D | spatializer_benchmark.cpp | 102 effect_handle_t effectHandle = nullptr; in BM_SPATIALIZER() local 104 1 /* ioId */, &effectHandle); in BM_SPATIALIZER() 118 if (int status = (*effectHandle) in BM_SPATIALIZER() 119 ->command(effectHandle, EFFECT_CMD_SET_CONFIG, sizeof(effect_config_t), in BM_SPATIALIZER() 126 if (int status = (*effectHandle) in BM_SPATIALIZER() 127 ->command(effectHandle, EFFECT_CMD_ENABLE, sizeof(effect_config_t), in BM_SPATIALIZER() 142 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_SPATIALIZER() 149 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(effectHandle); status != 0) { in BM_SPATIALIZER()
|
/frameworks/av/media/libeffects/preprocessing/tests/ |
D | PreProcessingTest.cpp | 182 int preProcSetConfigParam(uint32_t paramType, uint32_t paramValue, effect_handle_t effectHandle) { in preProcSetConfigParam() argument 189 (*effectHandle) in preProcSetConfigParam() 190 ->command(effectHandle, EFFECT_CMD_SET_PARAM, sizeof(effect_param_t), effectParam, in preProcSetConfigParam() 350 effect_handle_t effectHandle[PREPROC_NUM_EFFECTS] = {nullptr}; in main() local 358 if (int status = preProcCreateEffect(&effectHandle[i], i, &config, sessionId, ioId); in main() 369 (*effectHandle[i]) in main() 370 ->command(effectHandle[i], EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in main() 382 effectHandle[PREPROC_AGC]); in main() 389 effectHandle[PREPROC_AGC]); in main() 398 effectHandle[PREPROC_AGC2]); in main() [all …]
|
/frameworks/av/media/libeffects/downmix/tests/ |
D | downmixtest.cpp | 89 effect_handle_t effectHandle = pDescriptor->handle; in DownmixConfiureAndEnable() local 90 const struct effect_interface_s *Downmix_api = *effectHandle; in DownmixConfiureAndEnable() 94 err = (Downmix_api->command)(effectHandle, EFFECT_CMD_SET_CONFIG, in DownmixConfiureAndEnable() 102 err = ((Downmix_api->command))(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, in DownmixConfiureAndEnable() 113 effect_handle_t effectHandle = pDescriptor->handle; in DownmixExecute() local 114 const struct effect_interface_s *Downmix_api = *effectHandle; in DownmixExecute() 150 const int32_t err = (Downmix_api->process)(effectHandle, pinbuf, poutbuf); in DownmixExecute() 168 effect_handle_t *effectHandle = &pDescriptor->handle; in DowmixMainProcess() local 175 effectHandle); in DowmixMainProcess() 194 err = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(*effectHandle); in DowmixMainProcess()
|
/frameworks/av/media/libeffects/lvm/tests/ |
D | reverb_test.cpp | 133 int reverbSetConfigParam(uint32_t paramType, uint32_t paramValue, effect_handle_t effectHandle) { in reverbSetConfigParam() argument 141 int status = (*effectHandle) in reverbSetConfigParam() 142 ->command(effectHandle, EFFECT_CMD_SET_PARAM, in reverbSetConfigParam() 312 effect_handle_t effectHandle = nullptr; in main() local 317 if (int status = reverbCreateEffect(&effectHandle, &config, sessionId, ioId, in main() 326 (*effectHandle)->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in main() 333 effectHandle); in main() 378 if (int status = (*effectHandle)->process(effectHandle, &inputBuffer, &outputBuffer); in main() 396 if (int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(effectHandle); status != 0) { in main()
|
/frameworks/base/libs/hwui/jni/ |
D | PathEffect.cpp | 11 static void destructor(JNIEnv* env, jobject, jlong effectHandle) { in destructor() argument 12 SkPathEffect* effect = reinterpret_cast<SkPathEffect*>(effectHandle); in destructor()
|
D | Paint.cpp | 909 static jlong setPathEffect(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jlong effectHandle) { in setPathEffect() argument 911 SkPathEffect* effect = reinterpret_cast<SkPathEffect*>(effectHandle); in setPathEffect()
|