Skip to content

Commit

Permalink
Update filters.js (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Dec 19, 2018
1 parent 52afcab commit 189eb64
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/modules/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
}(e, c[l]), h.fromCharCode.apply(h, e);
}


/**
* TODO: Not Tested:
//https://gist.github.com/revolunet/843889
// LZW-compress a string
var LZWEncode = function(s, options) {
Expand Down Expand Up @@ -100,7 +101,7 @@
}
return out.join("");
}

*/
var ASCIIHexEncode = function(value) {
var result = '';
var i;
Expand Down Expand Up @@ -131,6 +132,8 @@
return result;
}

/**
* Not Tested:
var RunLengthEncode = function(data) {
function convertToAscii(str) {
'use strict';
Expand Down Expand Up @@ -190,7 +193,7 @@
}
return decoded;
}

*/
var FlatePredictors = {
None: 1,
TIFF: 2,
Expand Down Expand Up @@ -271,6 +274,7 @@
data = FlateEncode(data);
reverseChain.push("/FlateDecode");
break;
/**
case "LZWDecode":
case "/LZWDecode":
data = LZWDecode(data);
Expand All @@ -281,6 +285,7 @@
data = LZWEncode(data);
reverseChain.push("/LZWDecode");
break;
*/
default:
throw "The filter: \"" + filterChain[i] + "\" is not implemented";
}
Expand Down

0 comments on commit 189eb64

Please sign in to comment.