summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjpadmana <jayashree.r.padmanaban@intel.com>2013-06-04 16:08:29 +0530
committerEric Laurent <elaurent@google.com>2013-09-27 16:03:30 -0700
commit2eab94f7dfd41a65e13aca379a1aed97447f8884 (patch)
treebdd573d7a104c25ad6951dcfd58ee37ff2c03760 /include
parent83f400056ac913250f0926326ff78697c68d18a1 (diff)
downloadframeworks_av-2eab94f7dfd41a65e13aca379a1aed97447f8884.zip
frameworks_av-2eab94f7dfd41a65e13aca379a1aed97447f8884.tar.gz
frameworks_av-2eab94f7dfd41a65e13aca379a1aed97447f8884.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: Id7f6aa67c41db370d32beaf43a979ba4ac925928 Signed-off-by: jpadmana <jayashree.r.padmanaban@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/EffectsFactoryApi.h24
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