Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for zig (0.02 sec)

  1. src/image/jpeg/scan.go

    			}
    
    			zig, err = d.refineNonZeroes(b, zig, zigEnd, int32(val0), delta)
    			if err != nil {
    				return err
    			}
    			if zig > zigEnd {
    				return FormatError("too many coefficients")
    			}
    			if z != 0 {
    				b[unzig[zig]] = z
    			}
    		}
    	}
    	if d.eobRun > 0 {
    		d.eobRun--
    		if _, err := d.refineNonZeroes(b, zig, zigEnd, -1, delta); err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/image/jpeg/writer.go

    // natural (not zig-zag) order.
    func (e *encoder) writeBlock(b *block, q quantIndex, prevDC int32) int32 {
    	fdct(b)
    	// Emit the DC delta.
    	dc := div(b[0], 8*int32(e.quant[q][0]))
    	e.emitHuffRLE(huffIndex(2*q+0), 0, dc-prevDC)
    	// Emit the AC components.
    	h, runLength := huffIndex(2*q+1), int32(0)
    	for zig := 1; zig < blockSize; zig++ {
    		ac := div(b[unzig[zig]], 8*int32(e.quant[q][zig]))
    		if ac == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. src/image/jpeg/reader.go

    const (
    	adobeTransformUnknown = 0
    	adobeTransformYCbCr   = 1
    	adobeTransformYCbCrK  = 2
    )
    
    // unzig maps from the zig-zag ordering to the natural ordering. For example,
    // unzig[3] is the column and row of the fourth element in zig-zag order. The
    // value is 16, which means first column (16%8 == 0) and third row (16/8 == 2).
    var unzig = [blockSize]int{
    	0, 1, 8, 16, 9, 2, 3, 10,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/pcln.go

    		// each time we observe a change in value we emit ", pc) (value".
    		// When the scan is over, we emit the closing ", pc)".
    		//
    		// The table is delta-encoded. The value deltas are signed and
    		// transmitted in zig-zag form, where a complement bit is placed in bit 0,
    		// and the pc deltas are unsigned. Both kinds of deltas are sent
    		// as variable-length little-endian base-128 integers,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  5. src/internal/pkgbits/decoder.go

    		s += 7
    	}
    	return x, overflow
    }
    
    var overflow = errors.New("pkgbits: readUvarint overflows a 64-bit integer")
    
    func (r *Decoder) rawVarint() int64 {
    	ux := r.rawUvarint()
    
    	// Zig-zag decode.
    	x := int64(ux >> 1)
    	if ux&1 != 0 {
    		x = ^x
    	}
    	return x
    }
    
    func (r *Decoder) rawReloc(k RelocKind, idx int) Index {
    	e := r.Relocs[idx]
    	assert(e.Kind == k)
    	return e.Idx
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/buildid.go

    				// C compiler may use. (Clang and GCC mostly seem to follow the scheme X.Y.Z,
    				// but in https://go.dev/issue/64619 we saw "8.3 [DragonFly]", and who knows
    				// what other C compilers like "zig cc" might report?)
    				next := fields[i+1]
    				if len(next) > 0 && next[0] >= '0' && next[0] <= '9' {
    					version = line
    					break
    				}
    			}
    		}
    		if version != "" {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top