summaryrefslogtreecommitdiffstats
path: root/media/libeffects/factory/EffectsFactory.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-09-06 17:34:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-06 17:34:56 +0000
commita82975e02ccf78fd9c4dd2f7c1a66c254b52fe3b (patch)
treef98f5da066db046df3c016888e618dd7b86e8de3 /media/libeffects/factory/EffectsFactory.h
parentc23981d9375d4a55f5701a4090b36deecda92f92 (diff)
parent284c17e73bbff51cb5b1adcee98386d47733757a (diff)
downloadframeworks_av-a82975e02ccf78fd9c4dd2f7c1a66c254b52fe3b.zip
frameworks_av-a82975e02ccf78fd9c4dd2f7c1a66c254b52fe3b.tar.gz
frameworks_av-a82975e02ccf78fd9c4dd2f7c1a66c254b52fe3b.tar.bz2
Merge "Effects Factory changes for effects offload" into klp-dev
Diffstat (limited to 'media/libeffects/factory/EffectsFactory.h')
-rw-r--r--media/libeffects/factory/EffectsFactory.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/media/libeffects/factory/EffectsFactory.h b/media/libeffects/factory/EffectsFactory.h
index c1d4319..147ff18 100644
--- a/media/libeffects/factory/EffectsFactory.h
+++ b/media/libeffects/factory/EffectsFactory.h
@@ -32,6 +32,15 @@ typedef struct list_elem_s {
struct list_elem_s *next;
} list_elem_t;
+// Structure used for storing effects with their sub effects.
+// Used in creating gSubEffectList. Here,
+// object holds the effect desc and the list sub_elem holds the sub effects
+typedef struct list_sub_elem_s {
+ void *object;
+ list_elem_t *sub_elem;
+ struct list_sub_elem_s *next;
+} list_sub_elem_t;
+
typedef struct lib_entry_s {
audio_effect_library_t *desc;
char *name;
@@ -47,6 +56,16 @@ typedef struct effect_entry_s {
lib_entry_t *lib;
} effect_entry_t;
+// Structure used to store the lib entry
+// and the descriptor of the sub effects.
+// The library entry is to be stored in case of
+// sub effects as the sub effects are not linked
+// to the library list - gLibraryList.
+typedef struct sub_effect_entry_s {
+ lib_entry_t *lib;
+ void *object;
+} sub_effect_entry_t;
+
#if __cplusplus
} // extern "C"
#endif