Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readByteStuffedByte (0.24 sec)

  1. src/image/jpeg/reader.go

    	return x, nil
    }
    
    // errMissingFF00 means that readByteStuffedByte encountered an 0xff byte (a
    // marker byte) that wasn't the expected byte-stuffed sequence 0xff, 0x00.
    var errMissingFF00 = FormatError("missing 0xff00 sequence")
    
    // readByteStuffedByte is like readByte but is for byte-stuffed Huffman data.
    func (d *decoder) readByteStuffedByte() (x byte, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  2. src/image/jpeg/huffman.go

    // least n. For best performance (avoiding function calls inside hot loops),
    // the caller is the one responsible for first checking that d.bits.n < n.
    func (d *decoder) ensureNBits(n int32) error {
    	for {
    		c, err := d.readByteStuffedByte()
    		if err != nil {
    			if err == io.ErrUnexpectedEOF {
    				return errShortHuffmanData
    			}
    			return err
    		}
    		d.bits.a = d.bits.a<<8 | uint32(c)
    		d.bits.n += 8
    		if d.bits.m == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top