Squeak Class Documentation category index | class index  
 
JPEGReadStream
  category: Graphics-Files
  superclass: ReadStream
  subclasses:

Encapsulates huffman encoded access to JPEG data.

The following layout is fixed for the JPEG primitives to work:

collection <ByteArray | String>
position <SmallInteger>
readLimit <SmallInteger>
bitBuffer <SmallInteger>
bitsInBuffer <SmallInteger>

instance methods
  accessing
  fillBuffer
getBits:
nextByte
nextBytes:
reset
resetBitBuffer

  huffman trees
  buildLookupTable:counts:
createHuffmanTables:counts:from:to:
decodeValueFrom:
growHuffmanTable:

class methods
  class initialization
  initialize

instance methods
  accessing top  
 

fillBuffer


 

getBits:


 

nextByte


 

nextBytes:


 

reset

Set the receiver's position to the beginning of the sequence of objects.


 

resetBitBuffer


  huffman trees top  
 

buildLookupTable:counts:


 

createHuffmanTables:counts:from:to:

Create the actual tables


 

decodeValueFrom:

Decode the next value in the receiver using the given huffman table.


 

growHuffmanTable:


class methods
  class initialization top  
 

initialize

JPEGReadStream initialize