Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for localColorTable (0.15 sec)

  1. src/image/gif/writer.go

    	if transparentIndex >= 0 {
    		trOff := 3 * transparentIndex
    		return bytes.Equal(e.globalColorTable[:trOff], e.localColorTable[:trOff]) &&
    			bytes.Equal(e.globalColorTable[trOff+3:localSize], e.localColorTable[trOff+3:localSize])
    	}
    	return bytes.Equal(e.globalColorTable[:localSize], e.localColorTable[:localSize])
    }
    
    func (e *encoder) writeImageBlock(pm *image.Paletted, delay int, disposal byte) {
    	if e.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. src/image/gif/writer_test.go

    	}
    	if l, err := encodeColorTable(e.localColorTable[:], local, padded); err != nil || l != testLen {
    		t.Fatalf("Failed to encode local color table: got %d, %v; want nil, %d", l, err, testLen)
    	}
    	if bytes.Equal(e.globalColorTable[:testLen], e.localColorTable[:testLen]) {
    		t.Fatal("Encoded color tables are equal, expected mismatch")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top