error('Only 3 component or 1 component can be returned');
var img = new Image();
- img.onload = (function jpegImageLoaderOnload() {
+ img.onload = (function messageHandler_onloadClosure() {
var width = img.width;
var height = img.height;
var size = width * height;
// Helper class to keep track of where an offset is within the data and helps
// filling in that offset once it's known.
-var CFFOffsetTracker = (function CFFOffsetTracker() {
+var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
function CFFOffsetTracker() {
this.offsets = {};
}
function loadJpegStream(id, imageData, objs) {
var img = new Image();
- img.onload = (function jpegImageLoaderOnload() {
+ img.onload = (function loadJpegStream_onloadClosure() {
objs.resolve(id, img);
});
img.src = 'data:image/jpeg;base64,' + window.btoa(imageData);
})();
// Implements C.3. Arithmetic decoding procedures
- var ArithmeticDecoder = (function arithmeticDecoderClosure() {
+ var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
var QeTable = [
{qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
{qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},