Home | History | Annotate | Download | only in hal

Lines Matching refs:pipeline

18  * pipeline is a collection of dsp plugins that process audio
20 * file. Before using the pipeline, we need to instantiate the
21 * pipeline by giving an audio sampling rate. Then we get the pointers
22 * to the input buffers, fill the input data, run the pipeline, and
32 struct pipeline;
34 /* Creates a pipeline from the given ini file.
36 * ini - The ini file the pipeline is created from.
38 * purpose - The purpose of the pipeline, "playback" or "capture".
40 * A pointer to the pipeline, or NULL if the creation fails.
42 struct pipeline *cras_dsp_pipeline_create(struct ini* ini,
46 /* Frees the resources used by the pipeline. */
47 void cras_dsp_pipeline_free(struct pipeline *pipeline);
49 /* Loads the implementation of the plugins in the pipeline (from
55 int cras_dsp_pipeline_load(struct pipeline *pipeline);
57 /* Instantiates the pipeline given the sampling rate.
63 int cras_dsp_pipeline_instantiate(struct pipeline *pipeline, int sample_rate);
68 void cras_dsp_pipeline_deinstantiate(struct pipeline *pipeline);
70 /* Returns the buffering delay of the pipeline. This should only be called
71 * after a pipeline has been instantiated.
75 int cras_dsp_pipeline_get_delay(struct pipeline *pipeline);
77 /* Returns the number of input/output audio channels this pipeline expects */
78 int cras_dsp_pipeline_get_num_input_channels(struct pipeline *pipeline);
79 int cras_dsp_pipeline_get_num_output_channels(struct pipeline *pipeline);
82 * pipeline. The size of the buffer is DSP_BUFFER_SIZE samples, and
90 float *cras_dsp_pipeline_get_source_buffer(struct pipeline *pipeline,
94 * pipeline. The size of the buffer is DSP_BUFFER_SIZE samples.
100 float *cras_dsp_pipeline_get_sink_buffer(struct pipeline *pipeline, int index);
103 * pipeline. This is used by the unit test only */
104 int cras_dsp_pipeline_get_peak_audio_buffers(struct pipeline *pipeline);
108 int cras_dsp_pipeline_get_sample_rate(struct pipeline *pipeline);
112 void cras_dsp_pipeline_run(struct pipeline *pipeline, int sample_count);
114 /* Add a statistic of running time for the pipeline.
117 * time_delta - The time it takes to run the pipeline and any other
121 void cras_dsp_pipeline_add_statistic(struct pipeline *pipeline,
125 /* Runs the specified pipeline across the given interleaved buffer in place.
127 * pipeline - The pipeline to run.
131 void cras_dsp_pipeline_apply(struct pipeline *pipeline,