VideoEditorResampler.h revision 52897c2fda8d1d97796af1477c2748e3a2f25436
1/*
2 * Copyright (C) 2011 NXP Software
3 * Copyright (C) 2011 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef VIDEOEDITORRESAMPLER_H
19#define VIDEOEDITORRESAMPLER_H
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24#include "M4OSA_Types.h"
25
26M4OSA_Int32 LVAudioResamplerCreate(M4OSA_Int32 bitDepth, M4OSA_Int32 inChannelCount,
27                                     M4OSA_Int32 sampleRate, M4OSA_Int32 quality);
28void LVAudiosetSampleRate(M4OSA_Int32 resamplerContext,M4OSA_Int32 inSampleRate);
29void LVAudiosetVolume(M4OSA_Int32 resamplerContext, M4OSA_Int16 left, M4OSA_Int16 right) ;
30void LVAudioresample_LowQuality(M4OSA_Int16* out, M4OSA_Int16* input,
31                                     M4OSA_Int32 outFrameCount, M4OSA_Int32 resamplerContext);
32void LVDestroy(M4OSA_Int32 resamplerContext);
33
34void MonoTo2I_16( const M4OSA_Int16 *src,
35                        M4OSA_Int16 *dst,
36                        M4OSA_Int16 n);
37
38void From2iToMono_16( const M4OSA_Int16 *src,
39                            M4OSA_Int16 *dst,
40                            M4OSA_Int16 n);
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44#endif /* VIDEOEDITORRESAMPLER_H */
45
46
47