Lines Matching refs:order

154 		/* save this order */
167 int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order, unsigned precision, FLAC__int32 qlp_coeff[], int *shift)
184 for(i = 0; i < order; i++) {
212 for(i = 0; i < order; i++) {
239 fprintf(stderr,"FLAC__lpc_quantize_coefficients: negative shift=%d order=%u cmax=%f\n", *shift, order, cmax);
241 for(i = 0; i < order; i++) {
268 void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32 * flac_restrict data, unsigned data_len, const FLAC__int32 * flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 * flac_restrict residual)
277 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
278 for(i=0;i<order;i++)
282 FLAC__ASSERT(order > 0);
288 for(j = 0; j < order; j++) {
300 for(j = 0; j < order; j++)
311 FLAC__ASSERT(order > 0);
312 FLAC__ASSERT(order <= 32);
315 * We do unique versions up to 12th order since that's the subset limit.
319 if(order <= 12) {
320 if(order > 8) {
321 if(order > 10) {
322 if(order == 12) {
340 else { /* order == 11 */
359 if(order == 10) {
375 else { /* order == 9 */
392 else if(order > 4) {
393 if(order > 6) {
394 if(order == 8) {
408 else { /* order == 7 */
423 if(order == 6) {
435 else { /* order == 5 */
449 if(order > 2) {
450 if(order == 4) {
460 else { /* order == 3 */
471 if(order == 2) {
479 else { /* order == 1 */
486 else { /* order > 12 */
489 switch(order) {
529 void FLAC__lpc_compute_residual_from_qlp_coefficients_wide(const FLAC__int32 * flac_restrict data, unsigned data_len, const FLAC__int32 * flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 * flac_restrict residual)
537 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
538 for(i=0;i<order;i++)
542 FLAC__ASSERT(order > 0);
547 for(j = 0; j < order; j++)
565 FLAC__ASSERT(order > 0);
566 FLAC__ASSERT(order <= 32);
569 * We do unique versions up to 12th order since that's the subset limit.
573 if(order <= 12) {
574 if(order > 8) {
575 if(order > 10) {
576 if(order == 12) {
594 else { /* order == 11 */
613 if(order == 10) {
629 else { /* order == 9 */
646 else if(order > 4) {
647 if(order > 6) {
648 if(order == 8) {
662 else { /* order == 7 */
677 if(order == 6) {
689 else { /* order == 5 */
703 if(order > 2) {
704 if(order == 4) {
714 else { /* order == 3 */
725 if(order == 2) {
733 else { /* order == 1 */
740 else { /* order > 12 */
743 switch(order) {
785 void FLAC__lpc_restore_signal(const FLAC__int32 * flac_restrict residual, unsigned data_len, const FLAC__int32 * flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 * flac_restrict data)
794 fprintf(stderr,"FLAC__lpc_restore_signal: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
795 for(i=0;i<order;i++)
799 FLAC__ASSERT(order > 0);
805 for(j = 0; j < order; j++) {
817 for(j = 0; j < order; j++)
828 FLAC__ASSERT(order > 0);
829 FLAC__ASSERT(order <= 32);
832 * We do unique versions up to 12th order since that's the subset limit.
836 if(order <= 12) {
837 if(order > 8) {
838 if(order > 10) {
839 if(order == 12) {
857 else { /* order == 11 */
876 if(order == 10) {
892 else { /* order == 9 */
909 else if(order > 4) {
910 if(order > 6) {
911 if(order == 8) {
925 else { /* order == 7 */
940 if(order == 6) {
952 else { /* order == 5 */
966 if(order > 2) {
967 if(order == 4) {
977 else { /* order == 3 */
988 if(order == 2) {
996 else { /* order == 1 */
1003 else { /* order > 12 */
1006 switch(order) {
1046 void FLAC__lpc_restore_signal_wide(const FLAC__int32 * flac_restrict residual, unsigned data_len, const FLAC__int32 * flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 * flac_restrict data)
1054 fprintf(stderr,"FLAC__lpc_restore_signal_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
1055 for(i=0;i<order;i++)
1059 FLAC__ASSERT(order > 0);
1064 for(j = 0; j < order; j++)
1082 FLAC__ASSERT(order > 0);
1083 FLAC__ASSERT(order <= 32);
1086 * We do unique versions up to 12th order since that's the subset limit.
1090 if(order <= 12) {
1091 if(order > 8) {
1092 if(order > 10) {
1093 if(order == 12) {
1111 else { /* order == 11 */
1130 if(order == 10) {
1146 else { /* order == 9 */
1163 else if(order > 4) {
1164 if(order > 6) {
1165 if(order == 8) {
1179 else { /* order == 7 */
1194 if(order == 6) {
1206 else { /* order == 5 */
1220 if(order > 2) {
1221 if(order == 4) {
1231 else { /* order == 3 */
1242 if(order == 2) {
1250 else { /* order == 1 */
1257 else { /* order > 12 */
1260 switch(order) {
1336 unsigned order, indx, best_index; /* 'index' the index into lpc_error; index==order-1 since lpc_error[0] is for order==1, lpc_error[1] is for order==2, etc */
1347 for(indx = 0, order = 1; indx < max_order; indx++, order++) {
1348 bits = FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale(lpc_error[indx], error_scale) * (FLAC__double)(total_samples - order) + (FLAC__double)(order * overhead_bits_per_order);
1355 return best_index+1; /* +1 since indx of lpc_error[] is order-1 */