Home
last modified time | relevance | path

Searched refs:pCChar (Results 1 – 2 of 2) sorted by relevance

/external/aac/libDRCdec/src/
DdrcGainDec_preprocess.cpp166 const CUSTOM_DRC_CHAR* pCChar, int* pSlopeSign) { in _getSlopeSign() argument
168 *pSlopeSign = (pCChar->sigmoid.flipSign ? 1 : -1); in _getSlopeSign()
171 for (k = 0; k < pCChar->nodes.characteristicNodeCount; k++) { in _getSlopeSign()
172 if (pCChar->nodes.nodeLevel[k + 1] > pCChar->nodes.nodeLevel[k]) { in _getSlopeSign()
174 _getSign(pCChar->nodes.nodeGain[k + 1] - pCChar->nodes.nodeGain[k]); in _getSlopeSign()
176 tmp_slopeSign = -_getSign(pCChar->nodes.nodeGain[k + 1] - in _getSlopeSign()
177 pCChar->nodes.nodeGain[k]); in _getSlopeSign()
190 const CUSTOM_DRC_CHAR* pCChar[2], in _isSlopeNegative()
195 err = _getSlopeSign(drcCharFormat[CS_LEFT], pCChar[CS_LEFT], in _isSlopeNegative()
199 err = _getSlopeSign(drcCharFormat[CS_RIGHT], pCChar[CS_RIGHT], in _isSlopeNegative()
[all …]
DdrcDec_reader.cpp760 CUSTOM_DRC_CHAR* pCChar, in _readCustomDrcCharacteristic() argument
769 pCChar->sigmoid.gain = (FIXP_SGL)(bsGain << (FRACT_BITS - 1 - 6)); in _readCustomDrcCharacteristic()
771 pCChar->sigmoid.gain = (FIXP_SGL)(-bsGain << (FRACT_BITS - 1 - 6)); in _readCustomDrcCharacteristic()
775 pCChar->sigmoid.ioRatio = in _readCustomDrcCharacteristic()
780 pCChar->sigmoid.exp = (FIXP_SGL)((1 + 2 * bsExp) << (FRACT_BITS - 1 - 5)); in _readCustomDrcCharacteristic()
782 pCChar->sigmoid.exp = (FIXP_SGL)MAXVAL_SGL; /* represents infinity */ in _readCustomDrcCharacteristic()
784 pCChar->sigmoid.flipSign = FDKreadBits(hBs, 1); in _readCustomDrcCharacteristic()
789 pCChar->nodes.characteristicNodeCount = bsCharacteristicNodeCount + 1; in _readCustomDrcCharacteristic()
790 if (pCChar->nodes.characteristicNodeCount > 4) return DE_MEMORY_ERROR; in _readCustomDrcCharacteristic()
791 pCChar->nodes.nodeLevel[0] = DRC_INPUT_LOUDNESS_TARGET_SGL; in _readCustomDrcCharacteristic()
[all …]