mirror of https://github.com/etcd-io/dbtester.git
*: update psn
This commit is contained in:
parent
c9deee70a0
commit
1fac777bf1
|
|
@ -1,5 +1,5 @@
|
|||
hash: c72676a3f341ccf35daeb68dff29447185a314f934512d0318dde5a9b126fb82
|
||||
updated: 2017-02-10T10:11:34.635182921-08:00
|
||||
hash: 69c56c66bb6f90f621733ce546bc4fd829abd83c86503dc0b8f68b4c568d62ab
|
||||
updated: 2017-02-10T21:02:38.955731118-08:00
|
||||
imports:
|
||||
- name: bitbucket.org/zombiezen/gopdf
|
||||
version: 1c63dc69751bc45441c2ce1f56b631c55294b4d5
|
||||
|
|
@ -100,7 +100,7 @@ imports:
|
|||
- name: github.com/gyuho/dataframe
|
||||
version: 73de2c550b1177c1640f3dacbbc1af00f913fedb
|
||||
- name: github.com/gyuho/psn
|
||||
version: 742983dd45d4fbdd73fdde7701e00fcba9d9d499
|
||||
version: 622e14fd5a06aed2e24fe8b728cddba486e38090
|
||||
subpackages:
|
||||
- schema
|
||||
- name: github.com/hashicorp/consul
|
||||
|
|
@ -108,7 +108,7 @@ imports:
|
|||
subpackages:
|
||||
- api
|
||||
- name: github.com/hashicorp/go-cleanhttp
|
||||
version: ad28ea4487f05916463e2423a55166280e8254b5
|
||||
version: 3573b8b52aa7b37b9358d966a898feb387f62437
|
||||
- name: github.com/hashicorp/serf
|
||||
version: cb45b412ee4f9d6cc2eeb2b2b7dd0f6cfd7545c1
|
||||
subpackages:
|
||||
|
|
@ -159,7 +159,7 @@ imports:
|
|||
subpackages:
|
||||
- codec
|
||||
- name: golang.org/x/image
|
||||
version: 05f0a469d9f7c77399b53a6bab80983eb856b52e
|
||||
version: df2aa51d4407e30b309afc8c4d6fdca045d97fb0
|
||||
subpackages:
|
||||
- draw
|
||||
- font
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ import:
|
|||
- package: github.com/gyuho/dataframe
|
||||
version: 73de2c550b1177c1640f3dacbbc1af00f913fedb
|
||||
- package: github.com/gyuho/psn
|
||||
version: 742983dd45d4fbdd73fdde7701e00fcba9d9d499
|
||||
version: 622e14fd5a06aed2e24fe8b728cddba486e38090
|
||||
- package: github.com/hashicorp/consul
|
||||
version: 3da73be55c82a7f88f1dfd3ec16d267970ac8ff0
|
||||
subpackages:
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ type TopStream struct {
|
|||
errc chan error
|
||||
|
||||
// signal only once at initial, once the first line is ready
|
||||
readymu sync.RWMutex
|
||||
readymu sync.Mutex
|
||||
ready bool
|
||||
readyc chan struct{}
|
||||
}
|
||||
|
|
@ -174,13 +174,14 @@ func (str *TopStream) dequeue() {
|
|||
|
||||
str.pid2TopCommandRow[row.PID] = row
|
||||
|
||||
str.readymu.RLock()
|
||||
rd := str.ready
|
||||
str.readymu.RUnlock()
|
||||
if !rd {
|
||||
str.readymu.Lock()
|
||||
toc := false
|
||||
str.readymu.Lock()
|
||||
if !str.ready {
|
||||
str.ready = true
|
||||
str.readymu.Unlock()
|
||||
toc = true
|
||||
}
|
||||
str.readymu.Unlock()
|
||||
if toc {
|
||||
close(str.readyc)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@ package cleanhttp
|
|||
import (
|
||||
"net"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"time"
|
||||
)
|
||||
|
||||
// DefaultTransport returns a new http.Transport with the same default values
|
||||
// as http.DefaultTransport, but with idle connections and keepalives disabled.
|
||||
// DefaultTransport returns a new http.Transport with similar default values to
|
||||
// http.DefaultTransport, but with idle connections and keepalives disabled.
|
||||
func DefaultTransport() *http.Transport {
|
||||
transport := DefaultPooledTransport()
|
||||
transport.DisableKeepAlives = true
|
||||
|
|
@ -22,13 +23,15 @@ func DefaultTransport() *http.Transport {
|
|||
func DefaultPooledTransport() *http.Transport {
|
||||
transport := &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
Dial: (&net.Dialer{
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
}).Dial,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
DisableKeepAlives: false,
|
||||
MaxIdleConnsPerHost: 1,
|
||||
}).DialContext,
|
||||
MaxIdleConns: 100,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
MaxIdleConnsPerHost: runtime.GOMAXPROCS(0) + 1,
|
||||
}
|
||||
return transport
|
||||
}
|
||||
|
|
@ -42,10 +45,10 @@ func DefaultClient() *http.Client {
|
|||
}
|
||||
}
|
||||
|
||||
// DefaultPooledClient returns a new http.Client with the same default values
|
||||
// as http.Client, but with a shared Transport. Do not use this function
|
||||
// for transient clients as it can leak file descriptors over time. Only use
|
||||
// this for clients that will be re-used for the same host(s).
|
||||
// DefaultPooledClient returns a new http.Client with similar default values to
|
||||
// http.Client, but with a shared Transport. Do not use this function for
|
||||
// transient clients as it can leak file descriptors over time. Only use this
|
||||
// for clients that will be re-used for the same host(s).
|
||||
func DefaultPooledClient() *http.Client {
|
||||
return &http.Client{
|
||||
Transport: DefaultPooledTransport(),
|
||||
|
|
|
|||
|
|
@ -804,7 +804,7 @@ func cOffset(x, y, sratio string) string {
|
|||
func ycbcrToRGB(lhs, tmp string) string {
|
||||
s := `
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
$yy1 := int(src.Y[$i]) * 0x10100
|
||||
$yy1 := int(src.Y[$i]) * 0x10101
|
||||
$cb1 := int(src.Cb[$j]) - 128
|
||||
$cr1 := int(src.Cr[$j]) - 128
|
||||
$r@ := ($yy1 + 91881*$cr1) >> 8
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ func (nnInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rec
|
|||
pj := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -386,7 +386,7 @@ func (nnInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rec
|
|||
pj := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -429,7 +429,7 @@ func (nnInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rec
|
|||
pj := ((sr.Min.Y+int(sy))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -472,7 +472,7 @@ func (nnInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rec
|
|||
pj := ((sr.Min.Y+int(sy))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -759,7 +759,7 @@ func (nnInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image
|
|||
pj := (sy0-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -803,7 +803,7 @@ func (nnInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image
|
|||
pj := (sy0-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -847,7 +847,7 @@ func (nnInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image
|
|||
pj := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -891,7 +891,7 @@ func (nnInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image
|
|||
pj := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pr := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -1756,7 +1756,7 @@ func (ablInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s00j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -1785,7 +1785,7 @@ func (ablInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s10j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -1817,7 +1817,7 @@ func (ablInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s01j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -1846,7 +1846,7 @@ func (ablInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s11j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -1931,7 +1931,7 @@ func (ablInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s00j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -1960,7 +1960,7 @@ func (ablInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s10j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -1992,7 +1992,7 @@ func (ablInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s01j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -2021,7 +2021,7 @@ func (ablInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s11j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -2106,7 +2106,7 @@ func (ablInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s00j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -2135,7 +2135,7 @@ func (ablInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s10j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -2167,7 +2167,7 @@ func (ablInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s01j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -2196,7 +2196,7 @@ func (ablInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s11j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -2281,7 +2281,7 @@ func (ablInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s00j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -2310,7 +2310,7 @@ func (ablInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s10j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -2342,7 +2342,7 @@ func (ablInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s01j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -2371,7 +2371,7 @@ func (ablInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Re
|
|||
s11j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -3345,7 +3345,7 @@ func (ablInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr imag
|
|||
s00j := (sy0-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -3374,7 +3374,7 @@ func (ablInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr imag
|
|||
s10j := (sy0-src.Rect.Min.Y)*src.CStride + (sx1 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -3406,7 +3406,7 @@ func (ablInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr imag
|
|||
s01j := (sy1-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -3435,7 +3435,7 @@ func (ablInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr imag
|
|||
s11j := (sy1-src.Rect.Min.Y)*src.CStride + (sx1 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -3521,7 +3521,7 @@ func (ablInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr imag
|
|||
s00j := (sy0-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -3550,7 +3550,7 @@ func (ablInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr imag
|
|||
s10j := (sy0-src.Rect.Min.Y)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -3582,7 +3582,7 @@ func (ablInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr imag
|
|||
s01j := (sy1-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -3611,7 +3611,7 @@ func (ablInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr imag
|
|||
s11j := (sy1-src.Rect.Min.Y)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -3697,7 +3697,7 @@ func (ablInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr imag
|
|||
s00j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -3726,7 +3726,7 @@ func (ablInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr imag
|
|||
s10j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -3758,7 +3758,7 @@ func (ablInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr imag
|
|||
s01j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -3787,7 +3787,7 @@ func (ablInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr imag
|
|||
s11j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -3873,7 +3873,7 @@ func (ablInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr imag
|
|||
s00j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10100
|
||||
s00yy1 := int(src.Y[s00i]) * 0x10101
|
||||
s00cb1 := int(src.Cb[s00j]) - 128
|
||||
s00cr1 := int(src.Cr[s00j]) - 128
|
||||
s00ru := (s00yy1 + 91881*s00cr1) >> 8
|
||||
|
|
@ -3902,7 +3902,7 @@ func (ablInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr imag
|
|||
s10j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx1 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10100
|
||||
s10yy1 := int(src.Y[s10i]) * 0x10101
|
||||
s10cb1 := int(src.Cb[s10j]) - 128
|
||||
s10cr1 := int(src.Cr[s10j]) - 128
|
||||
s10ru := (s10yy1 + 91881*s10cr1) >> 8
|
||||
|
|
@ -3934,7 +3934,7 @@ func (ablInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr imag
|
|||
s01j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10100
|
||||
s01yy1 := int(src.Y[s01i]) * 0x10101
|
||||
s01cb1 := int(src.Cb[s01j]) - 128
|
||||
s01cr1 := int(src.Cr[s01j]) - 128
|
||||
s01ru := (s01yy1 + 91881*s01cr1) >> 8
|
||||
|
|
@ -3963,7 +3963,7 @@ func (ablInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr imag
|
|||
s11j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + (sx1 - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10100
|
||||
s11yy1 := int(src.Y[s11i]) * 0x10101
|
||||
s11cb1 := int(src.Cb[s11j]) - 128
|
||||
s11cr1 := int(src.Cr[s11j]) - 128
|
||||
s11ru := (s11yy1 + 91881*s11cr1) >> 8
|
||||
|
|
@ -4729,7 +4729,7 @@ func (z *kernelScaler) scaleX_YCbCr444(tmp [][4]float64, src *image.YCbCr, sr im
|
|||
pj := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -4776,7 +4776,7 @@ func (z *kernelScaler) scaleX_YCbCr422(tmp [][4]float64, src *image.YCbCr, sr im
|
|||
pj := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(c.coord))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -4823,7 +4823,7 @@ func (z *kernelScaler) scaleX_YCbCr420(tmp [][4]float64, src *image.YCbCr, sr im
|
|||
pj := ((sr.Min.Y+int(y))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(c.coord))/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -4870,7 +4870,7 @@ func (z *kernelScaler) scaleX_YCbCr440(tmp [][4]float64, src *image.YCbCr, sr im
|
|||
pj := ((sr.Min.Y+int(y))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -5759,7 +5759,7 @@ func (q *Kernel) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rect
|
|||
pj := (ky-src.Rect.Min.Y)*src.CStride + (kx - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -5883,7 +5883,7 @@ func (q *Kernel) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rect
|
|||
pj := (ky-src.Rect.Min.Y)*src.CStride + ((kx)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -6007,7 +6007,7 @@ func (q *Kernel) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rect
|
|||
pj := ((ky)/2-src.Rect.Min.Y/2)*src.CStride + ((kx)/2 - src.Rect.Min.X/2)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
@ -6131,7 +6131,7 @@ func (q *Kernel) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rect
|
|||
pj := ((ky)/2-src.Rect.Min.Y/2)*src.CStride + (kx - src.Rect.Min.X)
|
||||
|
||||
// This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method.
|
||||
pyy1 := int(src.Y[pi]) * 0x10100
|
||||
pyy1 := int(src.Y[pi]) * 0x10101
|
||||
pcb1 := int(src.Cb[pj]) - 128
|
||||
pcr1 := int(src.Cr[pj]) - 128
|
||||
pru := (pyy1 + 91881*pcr1) >> 8
|
||||
|
|
|
|||
Loading…
Reference in New Issue