Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for processSOS (0.09 sec)

  1. src/image/jpeg/scan.go

    	if d.nComp == 4 {
    		h3, v3 := d.comp[3].h, d.comp[3].v
    		d.blackPix = make([]byte, 8*h3*mxx*8*v3*myy)
    		d.blackStride = 8 * h3 * mxx
    	}
    }
    
    // Specified in section B.2.3.
    func (d *decoder) processSOS(n int) error {
    	if d.nComp == 0 {
    		return FormatError("missing SOF marker")
    	}
    	if n < 6 || 4+2*d.nComp < n || n%2 != 0 {
    		return FormatError("SOS has wrong length")
    	}
    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/reader.go

    			// only occur between Entropy Coded Segments and not after the final ECS.
    			// However, some encoders may generate incorrect JPEGs with a final restart
    			// marker. That restart marker will be seen here instead of inside the processSOS
    			// method, and is ignored as a harmless error. Restart markers have no extra data,
    			// so we check for this before we read the 16-bit length of the segment.
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top