From d2964f3e94b92629150cb97525753dc845d6eade Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 16 Nov 2011 15:12:42 -0800 Subject: [PATCH] Update documentation. --- src/stream.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/stream.js b/src/stream.js index 69f792b58..c7b5c8121 100644 --- a/src/stream.js +++ b/src/stream.js @@ -756,8 +756,13 @@ var PredictorStream = (function predictorStream() { return constructor; })(); -// A JpegStream can't be read directly. We use the platform to render -// the underlying JPEG data for us. +/** + * Depending on the type of JPEG a JpegStream is handled in different ways. For + * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image + * data is stored and then loaded by the browser. For unsupported JPEG's we use + * a library to decode these images and the stream behaves like all the other + * DecodeStreams. + */ var JpegStream = (function jpegStream() { function isAdobeImage(bytes) { var maxBytesScanned = Math.max(bytes.length - 16, 1024);