shithub: dumb

Download patch

ref: 3aaf281a82702411ba77067784afb6ba936f8a46
parent: ee94f03e1d576e6879122dc992f01f2df0b0078c
author: Chris Moeller <kode54@gmail.com>
date: Sun Mar 23 09:24:54 EDT 2014

Forgot to remove last vestiges of now unused linear and cubic code

--- a/dumb/src/helpers/resamp3.inc
+++ b/dumb/src/helpers/resamp3.inc
@@ -302,12 +302,6 @@
 		if (quality <= DUMB_RQ_ALIASING) {
 			/* Aliasing, backwards */
 			PEEK_ALIAS;
-		} else if (quality <= DUMB_RQ_LINEAR) {
-			/* Linear interpolation, backwards */
-			MIX_LINEAR(=, 0, 2, 1);
-                } else if (quality <= DUMB_RQ_CUBIC) {
-			/* Cubic interpolation, backwards */
-			MIX_CUBIC(=, 0, src, x, pos, 2, 1, 0);
                 } else {
                         /* FIR resampling, backwards */
                         PEEK_FIR;
@@ -317,12 +311,6 @@
 		if (quality <= DUMB_RQ_ALIASING) {
 			/* Aliasing */
 			PEEK_ALIAS;
-		} else if (quality <= DUMB_RQ_LINEAR) {
-			/* Linear interpolation, forwards */
-			MIX_LINEAR(=, 0, 1, 2);
-                } else if (quality <= DUMB_RQ_CUBIC) {
-			/* Cubic interpolation, forwards */
-			MIX_CUBIC(=, 0, x, src, 0, 1, 2, pos);
                 } else {
                         /* FIR resampling, forwards */
                         PEEK_FIR;