Lines Matching refs:order
143 /* save this order */
156 int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order, unsigned precision, FLAC__int32 qlp_coeff[], int *shift)
173 for(i = 0; i < order; i++) {
201 for(i = 0; i < order; i++) {
234 fprintf(stderr,"FLAC__lpc_quantize_coefficients: negative shift=%d order=%u cmax=%f\n", *shift, order, cmax);
236 for(i = 0; i < order; i++) {
265 void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
274 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
275 for(i=0;i<order;i++)
279 FLAC__ASSERT(order > 0);
285 for(j = 0; j < order; j++) {
302 for(j = 0; j < order; j++)
313 FLAC__ASSERT(order > 0);
314 FLAC__ASSERT(order <= 32);
317 * We do unique versions up to 12th order since that's the subset limit.
321 if(order <= 12) {
322 if(order > 8) {
323 if(order > 10) {
324 if(order == 12) {
342 else { /* order == 11 */
361 if(order == 10) {
377 else { /* order == 9 */
394 else if(order > 4) {
395 if(order > 6) {
396 if(order == 8) {
410 else { /* order == 7 */
425 if(order == 6) {
437 else { /* order == 5 */
451 if(order > 2) {
452 if(order == 4) {
462 else { /* order == 3 */
473 if(order == 2) {
481 else { /* order == 1 */
488 else { /* order > 12 */
491 switch(order) {
531 void FLAC__lpc_compute_residual_from_qlp_coefficients_wide(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
539 fprintf(stderr,"FLAC__lpc_compute_residual_from_qlp_coefficients_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
540 for(i=0;i<order;i++)
544 FLAC__ASSERT(order > 0);
549 for(j = 0; j < order; j++)
575 FLAC__ASSERT(order > 0);
576 FLAC__ASSERT(order <= 32);
579 * We do unique versions up to 12th order since that's the subset limit.
583 if(order <= 12) {
584 if(order > 8) {
585 if(order > 10) {
586 if(order == 12) {
604 else { /* order == 11 */
623 if(order == 10) {
639 else { /* order == 9 */
656 else if(order > 4) {
657 if(order > 6) {
658 if(order == 8) {
672 else { /* order == 7 */
687 if(order == 6) {
699 else { /* order == 5 */
713 if(order > 2) {
714 if(order == 4) {
724 else { /* order == 3 */
735 if(order == 2) {
743 else { /* order == 1 */
750 else { /* order > 12 */
753 switch(order) {
795 void FLAC__lpc_restore_signal(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
804 fprintf(stderr,"FLAC__lpc_restore_signal: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
805 for(i=0;i<order;i++)
809 FLAC__ASSERT(order > 0);
815 for(j = 0; j < order; j++) {
834 for(j = 0; j < order; j++)
845 FLAC__ASSERT(order > 0);
846 FLAC__ASSERT(order <= 32);
849 * We do unique versions up to 12th order since that's the subset limit.
853 if(order <= 12) {
854 if(order > 8) {
855 if(order > 10) {
856 if(order == 12) {
874 else { /* order == 11 */
893 if(order == 10) {
909 else { /* order == 9 */
926 else if(order > 4) {
927 if(order > 6) {
928 if(order == 8) {
942 else { /* order == 7 */
957 if(order == 6) {
969 else { /* order == 5 */
983 if(order > 2) {
984 if(order == 4) {
994 else { /* order == 3 */
1005 if(order == 2) {
1013 else { /* order == 1 */
1020 else { /* order > 12 */
1023 switch(order) {
1063 void FLAC__lpc_restore_signal_wide(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
1071 fprintf(stderr,"FLAC__lpc_restore_signal_wide: data_len=%d, order=%u, lpq=%d",data_len,order,lp_quantization);
1072 for(i=0;i<order;i++)
1076 FLAC__ASSERT(order > 0);
1081 for(j = 0; j < order; j++)
1111 FLAC__ASSERT(order > 0);
1112 FLAC__ASSERT(order <= 32);
1115 * We do unique versions up to 12th order since that's the subset limit.
1119 if(order <= 12) {
1120 if(order > 8) {
1121 if(order > 10) {
1122 if(order == 12) {
1140 else { /* order == 11 */
1159 if(order == 10) {
1175 else { /* order == 9 */
1192 else if(order > 4) {
1193 if(order > 6) {
1194 if(order == 8) {
1208 else { /* order == 7 */
1223 if(order == 6) {
1235 else { /* order == 5 */
1249 if(order > 2) {
1250 if(order == 4) {
1260 else { /* order == 3 */
1271 if(order == 2) {
1279 else { /* order == 1 */
1286 else { /* order > 12 */
1289 switch(order) {
1361 unsigned order, index, 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 */
1372 for(index = 0, order = 1; index < max_order; index++, order++) {
1373 bits = FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale(lpc_error[index], error_scale) * (FLAC__double)(total_samples - order) + (FLAC__double)(order * overhead_bits_per_order);
1380 return best_index+1; /* +1 since index of lpc_error[] is order-1 */