Browse Source

Data is now created by jpg.js since we don't know the size.

Brendan Dahl 14 years ago
parent
commit
b872a08f4f
  1. 2
      external/jpgjs
  2. 4
      src/stream.js

2
external/jpgjs vendored

@ -1 +1 @@
Subproject commit 592bec14658593fe90df1309926a38177889042e Subproject commit 0d69fa8117fd72c58d85f8b0536d7eebd7b96c47

4
src/stream.js

@ -829,9 +829,7 @@ var JpegStream = (function jpegStream() {
jpegImage.parse(this.bytes); jpegImage.parse(this.bytes);
var width = jpegImage.width; var width = jpegImage.width;
var height = jpegImage.height; var height = jpegImage.height;
var dataLength = width * height * 4; var data = jpegImage.getData(width, height);
var data = new Uint8Array(dataLength);
jpegImage.getData(data, width, height, true);
this.buffer = data; this.buffer = data;
this.bufferLength = data.length; this.bufferLength = data.length;
}; };

Loading…
Cancel
Save