mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
lib/lowleveljpeg: s/ExtractFrom/ExtractYCbCrFrom/
This commit is contained in:
1 parent
979a9d898c
commit
c400a47bb9
6 files changed
+19
-19
No files matched your search
@@ -97,7 +97,7 @@ func testLowLevelJpegEncodeJpegDecode(tt *testing.T, src image.RGBA64Image, colo
|
||||
srcI16s := Array1BlockI16{}
|
||||
for y := bounds.Min.Y; y < bounds.Max.Y; y += 8 {
|
||||
for x := bounds.Min.X; x < bounds.Max.X; x += 8 {
|
||||
srcU8s.ExtractFrom(src, x, y)
|
||||
srcU8s.ExtractYCbCrFrom(src, x, y)
|
||||
srcI16s.ForwardDCTFrom(&srcU8s)
|
||||
if err := enc.Add1(buf, &srcI16s); err != nil {
|
||||
tt.Fatalf("enc.Add1: %v", err)
|
||||
@@ -110,7 +110,7 @@ func testLowLevelJpegEncodeJpegDecode(tt *testing.T, src image.RGBA64Image, colo
|
||||
srcI16s := Array3BlockI16{}
|
||||
for y := bounds.Min.Y; y < bounds.Max.Y; y += 8 {
|
||||
for x := bounds.Min.X; x < bounds.Max.X; x += 8 {
|
||||
srcU8s.ExtractFrom(src, x, y)
|
||||
srcU8s.ExtractYCbCrFrom(src, x, y)
|
||||
srcI16s.ForwardDCTFrom(&srcU8s)
|
||||
if err := enc.Add3(buf, &srcI16s); err != nil {
|
||||
tt.Fatalf("enc.Add3: %v", err)
|
||||
|
||||
Reference in new issue
Block a user