Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IDCT (0.02 sec)

  1. src/image/jpeg/idct.go

    		s[5] = (x0 - x4) >> 8
    		s[6] = (x3 - x2) >> 8
    		s[7] = (x7 - x1) >> 8
    	}
    
    	// Vertical 1-D IDCT.
    	for x := 0; x < 8; x++ {
    		// Similar to the horizontal 1-D IDCT case, if all the AC components are zero, then the IDCT is trivial.
    		// However, after performing the horizontal 1-D IDCT, there are typically non-zero AC components, so
    		// we do not bother to check for the all-zero case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 23:18:37 UTC 2019
    - 5K bytes
    - Viewed (0)
  2. src/image/jpeg/dct_test.go

    			t.Errorf("i=%d: FDCT\nsrc\n%s\ngot\n%s\nwant\n%s\n", i, &b, &got, &want)
    		}
    	}
    
    	// Check that the optimized and slow IDCT implementations agree.
    	for i, b := range blocks {
    		got, want := b, b
    		idct(&got)
    		slowIDCT(&want)
    		if differ(&got, &want) {
    			t.Errorf("i=%d: IDCT\nsrc\n%s\ngot\n%s\nwant\n%s\n", i, &b, &got, &want)
    		}
    	}
    }
    
    // differ reports whether any pair-wise elements in b0 and b1 differ by 2 or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
Back to top