- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for zig (0.06 sec)
-
src/image/jpeg/writer_test.go
}, } func TestUnscaledQuant(t *testing.T) { bad := false for i := quantIndex(0); i < nQuantIndex; i++ { for zig := 0; zig < blockSize; zig++ { got := unscaledQuant[i][zig] want := unscaledQuantInNaturalOrder[i][unzig[zig]] if got != want { t.Errorf("i=%d, zig=%d: got %d, want %d", i, zig, got, want) bad = true } } } if bad { names := [nQuantIndex]string{"Luminance", "Chrominance"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:30 UTC 2022 - 7.2K bytes - Viewed (0) -
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) -
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) -
src/encoding/binary/varint.go
// least significant bits // - the most significant bit (msb) in each output byte indicates if there // is a continuation byte (msb = 1) // - signed integers are mapped to unsigned integers using "zig-zag" // encoding: Positive values x are written as 2*x + 0, negative values // are written as 2*(^x) + 1; that is, negative numbers are complemented // and whether to complement is encoded in bit 0. // // Design note:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
src/crypto/tls/testdata/Client-TLSv10-ECDHE-ECDSA-AES
000002a0 a8 31 00 8a 30 81 87 02 42 01 21 7e c2 26 cb 5e |.1..0...B.!~.&.^| 000002b0 f1 2a d2 9b 7f 3f b4 d4 28 5e 63 5a 20 aa 28 87 |.*...?..(^cZ .(.| 000002c0 bb dd 5c 6a 91 a2 2d 03 7a 69 67 8b ca 84 a6 1f |..\j..-.zig.....| 000002d0 d3 58 40 eb 5c 54 95 96 05 d0 37 63 e4 a6 1b 51 |.X@.\T....7c...Q| 000002e0 9a d0 93 31 82 e6 8e a0 af 29 64 02 41 4c ff ac |...1.....)d.AL..|
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:33:38 UTC 2024 - 6.8K bytes - Viewed (0) -
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) -
src/internal/pkgbits/encoder.go
func (w *Encoder) rawUvarint(x uint64) { var buf [binary.MaxVarintLen64]byte n := binary.PutUvarint(buf[:], x) _, err := w.Data.Write(buf[:n]) w.checkErr(err) } func (w *Encoder) rawVarint(x int64) { // Zig-zag encode. ux := uint64(x) << 1 if x < 0 { ux = ^ux } w.rawUvarint(ux) } func (w *Encoder) rawReloc(r RelocKind, idx Index) int { e := RelocEnt{r, idx} if w.RelocMap != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 10 23:26:58 UTC 2022 - 9.6K bytes - Viewed (0) -
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) -
src/main/java/jcifs/smb/SmbFile.java
* </code></td> * </tr> * * <tr> * <td width="20%"><code> * smb://host/share/foo/bar/ * </code></td> * <td width="20%"><code> * /share2/zig/zag * </code></td> * <td><code> * smb://host/share2/zig/zag * </code></td> * </tr> * * <tr> * <td width="20%"><code> * smb://host/share/foo/bar/ * </code></td> * <td width="20%"><code> * ../zip/
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu May 23 01:50:13 UTC 2024 - 82.3K bytes - Viewed (1) -
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)