Lines Matching defs:nlsf
34 int16_t nlsf[16];
788 static inline void silk_stabilize_lsf(int16_t nlsf[16], int order, const uint16_t min_delta[17])
794 int low = i != 0 ? nlsf[i-1] : 0;
795 int high = i != order ? nlsf[i] : 32768;
812 nlsf[0] = min_delta[0];
815 nlsf[order-1] = 32768 - min_delta[order];
831 center_val = nlsf[k - 1] + nlsf[k];
835 nlsf[k - 1] = center_val - (min_delta[k] >> 1);
836 nlsf[k] = nlsf[k - 1] + min_delta[k];
844 int j, value = nlsf[i];
845 for (j = i - 1; j >= 0 && nlsf[j] > value; j--)
846 nlsf[j + 1] = nlsf[j];
847 nlsf[j + 1] = value;
851 if (nlsf[0] < min_delta[0])
852 nlsf[0] = min_delta[0];
854 if (nlsf[i] < nlsf[i - 1] + min_delta[i])
855 nlsf[i] = nlsf[i - 1] + min_delta[i];
858 if (nlsf[order-1] > 32768 - min_delta[order])
859 nlsf[order-1] = 32768 - min_delta[order];
861 if (nlsf[i] > nlsf[i + 1] - min_delta[i+1])
862 nlsf[i] = nlsf[i + 1] - min_delta[i+1];
934 static void silk_lsf2lpc(const int16_t nlsf[16], float lpcf[16], int order)
944 int index = nlsf[k] >> 8;
945 int offset = nlsf[k] & 255;
1028 int16_t nlsf[16]; // Q15
1080 nlsf[i] = av_clip(value, 0, 32767);
1084 silk_stabilize_lsf(nlsf, order, s->wb ? silk_lsf_min_spacing_wb :
1097 nlsf_leadin[i] = frame->nlsf[i] +
1098 ((nlsf[i] - frame->nlsf[i]) * offset >> 2);
1106 silk_lsf2lpc(nlsf, lpc, order);
1109 silk_lsf2lpc(nlsf, lpc, order);
1112 memcpy(frame->nlsf, nlsf, order * sizeof(nlsf[0]));
1489 memset(frame->nlsf, 0, sizeof(frame->nlsf));