Home | History | Annotate | Download | only in post_proc
      1 /*
      2  * Copyright (C) 2014 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef OFFLOAD_VIRTUALIZER_H_
     18 #define OFFLOAD_VIRTUALIZER_H_
     19 
     20 #include "bundle.h"
     21 
     22 extern const effect_descriptor_t virtualizer_descriptor;
     23 
     24 typedef struct virtualizer_context_s {
     25     effect_context_t common;
     26 
     27     int strength;
     28 
     29     // Offload vars
     30     struct mixer_ctl *ctl;
     31     bool temp_disabled;
     32     uint32_t device;
     33     struct virtualizer_params offload_virt;
     34 } virtualizer_context_t;
     35 
     36 int virtualizer_get_parameter(effect_context_t *context, effect_param_t *p,
     37                             uint32_t *size);
     38 
     39 int virtualizer_set_parameter(effect_context_t *context, effect_param_t *p,
     40                             uint32_t size);
     41 
     42 int virtualizer_set_device(effect_context_t *context,  uint32_t device);
     43 
     44 int virtualizer_reset(effect_context_t *context);
     45 
     46 int virtualizer_init(effect_context_t *context);
     47 
     48 int virtualizer_enable(effect_context_t *context);
     49 
     50 int virtualizer_disable(effect_context_t *context);
     51 
     52 int virtualizer_start(effect_context_t *context, output_context_t *output);
     53 
     54 int virtualizer_stop(effect_context_t *context, output_context_t *output);
     55 
     56 #endif /* OFFLOAD_VIRTUALIZER_H_ */
     57