Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for valsIndices (0.09 sec)

  1. src/image/jpeg/huffman.go

    				}
    				code++
    				x++
    			}
    		}
    
    		// Derive minCodes, maxCodes, and valsIndices.
    		var c, index int32
    		for i, n := range nCodes {
    			if n == 0 {
    				h.minCodes[i] = -1
    				h.maxCodes[i] = -1
    				h.valsIndices[i] = -1
    			} else {
    				h.minCodes[i] = c
    				h.maxCodes[i] = c + n - 1
    				h.valsIndices[i] = index
    				c += n
    				index += n
    			}
    			c <<= 1
    		}
    	}
    	return nil
    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