class EXIFR::JPEG::Reader
Public Instance Methods
next()
click to toggle source
# File lib/exifr/jpeg.rb, line 87 def next c = readbyte while c != 0xFF c = readbyte while c == 0xFF c end
readbyte()
click to toggle source
# File lib/exifr/jpeg.rb, line 83 def readbyte; readchar; end
readframe()
click to toggle source
# File lib/exifr/jpeg.rb, line 85 def readframe; read(readint - 2); end
readint()
click to toggle source
# File lib/exifr/jpeg.rb, line 84 def readint; (readbyte << 8) + readbyte; end
readsof()
click to toggle source
# File lib/exifr/jpeg.rb, line 86 def readsof; [readint, readbyte, readint, readint, readbyte]; end