parameters: (self, jpegsrc)
docstring: reads Width, Height, headsize
docstring_summary: reads Width, Height, headsize
docstring_tokens: reads Width Height headsize
function: def ReadJpgHeader(self, jpegsrc):
      """reads Width, Height, headsize"""
      self.read_markers(jpegsrc)
      if self.Width <= 0 or self.Height <= 0:
        raise ValueError("Error reading the file header")
      print "jpeg header read, %d x %d" % (self.Width, self.Height)
      self.DataBytesLeft = len(jpegsrc) - self.DataPos
      self.InitDecoder()
function_tokens: def ReadJpgHeader ( self , jpegsrc ) : self . read_markers ( jpegsrc ) if self . Width <= 0 or self . Height <= 0 : raise ValueError ( "Error reading the file header" ) print "jpeg header read, %d x %d" % ( self . Width , self . Height ) self . DataBytesLeft = len ( jpegsrc ) - self . DataPos self . InitDecoder ( )