https://mattermost.atlassian.net/browse/MM-28737

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2020-10-25 22:09:55 +05:30
коммит произвёл GitHub
родитель d2730014f9
Коммит 087758caee
437 изменённых файлов: 18130 добавлений и 11371 удалений

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 сгенерированный поставляемый
Просмотреть файл

@@ -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
}