Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,776 for readPng (0.13 sec)

  1. src/image/jpeg/writer_test.go

    	if d < 0 {
    		return -d
    	}
    	return d
    }
    
    func readPng(filename string) (image.Image, error) {
    	f, err := os.Open(filename)
    	if err != nil {
    		return nil, err
    	}
    	defer f.Close()
    	return png.Decode(f)
    }
    
    func TestWriter(t *testing.T) {
    	for _, tc := range testCase {
    		// Read the image.
    		m0, err := readPng(tc.filename)
    		if err != nil {
    			t.Error(tc.filename, err)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  2. src/image/png/writer_test.go

    		names = filenamesShort
    	}
    	for _, fn := range names {
    		qfn := "testdata/pngsuite/" + fn + ".png"
    		// Read the image.
    		m0, err := readPNG(qfn)
    		if err != nil {
    			t.Error(fn, err)
    			continue
    		}
    		// Read the image again, encode it, and decode it.
    		m1, err := readPNG(qfn)
    		if err != nil {
    			t.Error(fn, err)
    			continue
    		}
    		m2, err := encodeDecode(m1)
    		if err != nil {
    			t.Error(fn, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 08:14:05 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  3. src/image/png/reader_test.go

    		}
    		if pal == nil {
    			t.Errorf("%s: palette not initialized", fn)
    			continue
    		}
    	}
    }
    
    func TestInterlaced(t *testing.T) {
    	a, err := readPNG("testdata/gray-gradient.png")
    	if err != nil {
    		t.Fatal(err)
    	}
    	b, err := readPNG("testdata/gray-gradient.interlaced.png")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(a, b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 12:12:12 UTC 2022
    - 28.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

        protected void setUp() throws Exception {
            file1 = File.createTempFile("kuromoji_", ".txt");
            FileUtil.write(
                    file1.getAbsolutePath(),
                    "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3"
                            .getBytes(Constants.UTF_8));
        }
    
        @Override
        protected void tearDown() throws Exception {
            file1.delete();
        }
        */
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/rsc.io/markdown/heading.go

    package markdown
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    )
    
    type Heading struct {
    	Position
    	Level int
    	Text  *Text
    	// The HTML id attribute. The parser populates this field if
    	// [Parser.HeadingIDs] is true and the heading ends with text like "{#id}".
    	ID string
    }
    
    func (b *Heading) PrintHTML(buf *bytes.Buffer) {
    	fmt.Fprintf(buf, "<h%d", b.Level)
    	if b.ID != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * Reads an integer as specified by {@link DataInputStream#readInt()}, except using little-endian
       * byte order.
       *
       * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian
       *     byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public int readInt() throws IOException {
        byte b1 = readAndCheckByte();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Serialization.java

        for (int i = 0; i < distinctKeys; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeMultimap
          K key = (K) stream.readObject();
          Collection<V> values = multimap.get(key);
          int valueCount = stream.readInt();
          for (int j = 0; j < valueCount; j++) {
            @SuppressWarnings("unchecked") // reading data stored by writeMultimap
            V value = (V) stream.readObject();
            values.add(value);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteArrayDataInput.java

      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      float readFloat();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      double readDouble();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Serialization.java

        for (int i = 0; i < distinctKeys; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeMultimap
          K key = (K) stream.readObject();
          Collection<V> values = multimap.get(key);
          int valueCount = stream.readInt();
          for (int j = 0; j < valueCount; j++) {
            @SuppressWarnings("unchecked") // reading data stored by writeMultimap
            V value = (V) stream.readObject();
            values.add(value);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      float readFloat();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      double readDouble();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top