btstack/3rd-party/liblc3codec/Decoder/ResidualSpectrum.hpp
2022-02-23 18:17:21 +01:00

64 lines
1.5 KiB
C++

/*
* ResidualSpectrum.hpp
*
* Copyright 2019 HIMSA II K/S - www.himsa.com. Represented by EHIMA - www.ehima.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef RESIDUAL_SPECTRUM_H_
#define RESIDUAL_SPECTRUM_H_
#include <cstdint>
#include "Datapoints.hpp"
namespace Lc3Dec
{
class ResidualSpectrum
{
public:
ResidualSpectrum(uint16_t NE_);
virtual ~ResidualSpectrum();
void registerDatapoints(DatapointContainer* datapoints);
void run(
const uint8_t* bytes,
uint16_t& bp_side,
uint8_t& mask_side,
const uint16_t lastnz,
const int16_t* const X_hat_q_ari,
uint16_t nbits_residual,
uint8_t* save_lev,
const uint8_t& lsbMode,
uint16_t& nf_seed,
uint16_t& zeroFrame,
const int16_t gg_ind,
int16_t F_NF
);
const uint16_t NE;
double* X_hat_q_residual;
uint16_t nResBits;
private:
};
}//namespace Lc3Dec
#endif // RESIDUAL_SPECTRUM_H_