MM-28737: Upgrade dependencies (#15877)
https://mattermost.atlassian.net/browse/MM-28737 Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d2730014f9
Коммит
087758caee
2
vendor/github.com/oov/psd/README.md
сгенерированный
поставляемый
2
vendor/github.com/oov/psd/README.md
сгенерированный
поставляемый
@@ -117,7 +117,7 @@ It is not implemented any blending functions because layer composition isn't cov
|
||||
- [Image Resource Section](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_69883) is parsed but [Image resource IDs](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_38034) are not defined as constant.
|
||||
- [Global layer mask info](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_17115) is not parsed.
|
||||
- [Layer blending ranges data](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_21332) is not parsed.
|
||||
- [Additinal Layer Information](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_pgfId-1049436) is parsed but keys are almost not defined as constant.
|
||||
- [Additional Layer Information](http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_pgfId-1049436) is parsed but keys are almost not defined as constant.
|
||||
|
||||
## Color Modes
|
||||
|
||||
|
||||
28
vendor/github.com/oov/psd/compress_wasm_js.go
сгенерированный
поставляемый
28
vendor/github.com/oov/psd/compress_wasm_js.go
сгенерированный
поставляемый
@@ -4,8 +4,6 @@ package psd
|
||||
|
||||
import (
|
||||
"io"
|
||||
"runtime"
|
||||
"sync"
|
||||
)
|
||||
|
||||
func decodePackBits(dest []byte, r io.Reader, width int, lines int, large bool) (read int, err error) {
|
||||
@@ -44,31 +42,7 @@ func decodePackBits(dest []byte, r io.Reader, width int, lines int, large bool)
|
||||
}
|
||||
read += l
|
||||
|
||||
n := runtime.GOMAXPROCS(0)
|
||||
for n > 1 && n<<1 > lines {
|
||||
n--
|
||||
}
|
||||
if n == 1 {
|
||||
decodePackBitsPerLine(dest, buf, lens)
|
||||
return
|
||||
}
|
||||
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(n)
|
||||
step := lines / n
|
||||
ofs = 0
|
||||
for i := 1; i < n; i++ {
|
||||
go func(dest []byte, buf []byte, lens []int) {
|
||||
defer wg.Done()
|
||||
decodePackBitsPerLine(dest, buf, lens)
|
||||
}(dest[ofs*width:(ofs+step)*width], buf[offsets[ofs]:offsets[ofs+step]], lens[ofs:ofs+step])
|
||||
ofs += step
|
||||
}
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
decodePackBitsPerLine(dest[ofs*width:], buf[offsets[ofs]:], lens[ofs:])
|
||||
}()
|
||||
wg.Wait()
|
||||
decodePackBitsPerLine(dest, buf, lens)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user