1 /** 2 * Copyright (C) 2022 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 * 18 * Function to calculate a quantised representation of an input 19 * difference signal, based on additional dither values and step-size inputs. 20 * 21 *-----------------------------------------------------------------------------*/ 22 23 #ifndef QUANTISER_H 24 #define QUANTISER_H 25 #ifdef _GCC 26 #pragma GCC visibility push(hidden) 27 #endif 28 29 #include "AptxParameters.h" 30 31 void quantiseDifferenceLL(const int32_t diffSignal, const int32_t ditherVal, 32 const int32_t delta, Quantiser_data* qdata_pt); 33 void quantiseDifferenceHL(const int32_t diffSignal, const int32_t ditherVal, 34 const int32_t delta, Quantiser_data* qdata_pt); 35 void quantiseDifferenceLH(const int32_t diffSignal, const int32_t ditherVal, 36 const int32_t delta, Quantiser_data* qdata_pt); 37 void quantiseDifferenceHH(const int32_t diffSignal, const int32_t ditherVal, 38 const int32_t delta, Quantiser_data* qdata_pt); 39 40 #ifdef _GCC 41 #pragma GCC visibility pop 42 #endif 43 #endif // QUANTISER_H 44