Skip to content

Commit 189eb64

Browse files
authored
Update filters.js (#2160)
1 parent 52afcab commit 189eb64

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/modules/filters.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}(e, c[l]), h.fromCharCode.apply(h, e);
3131
}
3232

33-
33+
/**
34+
* TODO: Not Tested:
3435
//https://gist.github.com/revolunet/843889
3536
// LZW-compress a string
3637
var LZWEncode = function(s, options) {
@@ -100,7 +101,7 @@
100101
}
101102
return out.join("");
102103
}
103-
104+
*/
104105
var ASCIIHexEncode = function(value) {
105106
var result = '';
106107
var i;
@@ -131,6 +132,8 @@
131132
return result;
132133
}
133134

135+
/**
136+
* Not Tested:
134137
var RunLengthEncode = function(data) {
135138
function convertToAscii(str) {
136139
'use strict';
@@ -190,7 +193,7 @@
190193
}
191194
return decoded;
192195
}
193-
196+
*/
194197
var FlatePredictors = {
195198
None: 1,
196199
TIFF: 2,
@@ -271,6 +274,7 @@
271274
data = FlateEncode(data);
272275
reverseChain.push("/FlateDecode");
273276
break;
277+
/**
274278
case "LZWDecode":
275279
case "/LZWDecode":
276280
data = LZWDecode(data);
@@ -281,6 +285,7 @@
281285
data = LZWEncode(data);
282286
reverseChain.push("/LZWDecode");
283287
break;
288+
*/
284289
default:
285290
throw "The filter: \"" + filterChain[i] + "\" is not implemented";
286291
}

0 commit comments

Comments
 (0)