diff options
author | jpadmana <rpadmanaban.jayashree@gmail.com> | 2013-06-04 16:08:29 +0530 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-09-06 10:33:03 -0700 |
commit | 284c17e73bbff51cb5b1adcee98386d47733757a (patch) | |
tree | d400f398fd4f2e8e383256973185b7dae243f92f /include/media | |
parent | a19912554f3779fac0c341ac702227bf4b5fe399 (diff) | |
download | frameworks_av-284c17e73bbff51cb5b1adcee98386d47733757a.zip frameworks_av-284c17e73bbff51cb5b1adcee98386d47733757a.tar.gz frameworks_av-284c17e73bbff51cb5b1adcee98386d47733757a.tar.bz2 |
Effects Factory changes for effects offload
audio_effects.conf - commented changes to illustrate the
addition of Proxy and sub effects to the conf file
Added an effectFactoryApi - EffectGetSubEffects for querying the
sub effect descriptors from the factory. This api is used by the Proxy
to get the sub effects
Added functions and data structures in factory code for
loading the sub effects
gSubEffectList - has the Proxies and their corresponding sub effects
- addSubEffect() - reads a sub effect node and adds to the gSubEffectList
- findSubEffect() - searches through the gSubEffectList to find a SubEffect
Bug: 8174034.
Change-Id: I25b0c62b2ad523a52337128b51469e628209ea3e
Signed-off-by: jpadmana <rpadmanaban.jayashree@gmail.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/EffectsFactoryApi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/media/EffectsFactoryApi.h b/include/media/EffectsFactoryApi.h index b1ed7b0..b1143b9 100644 --- a/include/media/EffectsFactoryApi.h +++ b/include/media/EffectsFactoryApi.h @@ -171,6 +171,30 @@ int EffectGetDescriptor(const effect_uuid_t *pEffectUuid, effect_descriptor_t *p //////////////////////////////////////////////////////////////////////////////// int EffectIsNullUuid(const effect_uuid_t *pEffectUuid); +//////////////////////////////////////////////////////////////////////////////// +// +// Function: EffectGetSubEffects +// +// Description: Returns the descriptors of the sub effects of the effect +// whose uuid is pointed to by first argument. +// +// Input: +// pEffectUuid: pointer to the effect uuid. +// size: size of the buffer pointed by pDescriptor. +// +// Input/Output: +// pDescriptor: address where to return the sub effect descriptors. +// +// Output: +// returned value: 0 successful operation. +// -ENODEV factory failed to initialize +// -EINVAL invalid pEffectUuid or pDescriptor +// -ENOENT no effect with this uuid found +// *pDescriptor: updated with the sub effect descriptors. +// +//////////////////////////////////////////////////////////////////////////////// +int EffectGetSubEffects(const effect_uuid_t *pEffectUuid, effect_descriptor_t *pDescriptors, size_t size); + #if __cplusplus } // extern "C" #endif |