This commit is contained in:
elee 2022-03-25 13:39:43 -05:00
parent 46a3378b00
commit 5852475520
155 changed files with 5 additions and 4 deletions
common/nori
export.gonori_test.go
nori_test/palette.example
animation_0.apnganimation_1.apnganimation_10.apnganimation_100.apnganimation_101.apnganimation_102.apnganimation_103.apnganimation_104.apnganimation_105.apnganimation_106.apnganimation_107.apnganimation_108.apnganimation_109.apnganimation_11.apnganimation_110.apnganimation_111.apnganimation_112.apnganimation_113.apnganimation_114.apnganimation_115.apnganimation_116.apnganimation_117.apnganimation_118.apnganimation_119.apnganimation_12.apnganimation_120.apnganimation_121.apnganimation_122.apnganimation_123.apnganimation_124.apnganimation_125.apnganimation_126.apnganimation_127.apnganimation_128.apnganimation_129.apnganimation_13.apnganimation_130.apnganimation_131.apnganimation_132.apnganimation_133.apnganimation_134.apnganimation_135.apnganimation_136.apnganimation_137.apnganimation_138.apnganimation_139.apnganimation_14.apnganimation_140.apnganimation_15.apnganimation_157.apnganimation_158.apnganimation_159.apnganimation_16.apnganimation_160.apnganimation_161.apnganimation_162.apnganimation_163.apnganimation_166.apnganimation_17.apnganimation_18.apnganimation_19.apnganimation_2.apnganimation_20.apnganimation_21.apnganimation_22.apnganimation_23.apnganimation_24.apnganimation_25.apnganimation_26.apnganimation_27.apnganimation_28.apnganimation_29.apnganimation_3.apnganimation_30.apnganimation_31.apnganimation_32.apnganimation_33.apnganimation_34.apnganimation_35.apnganimation_36.apnganimation_37.apnganimation_38.apnganimation_39.apnganimation_4.apnganimation_40.apnganimation_41.apnganimation_42.apnganimation_43.apnganimation_44.apnganimation_45.apnganimation_46.apnganimation_47.apnganimation_48.apnganimation_49.apnganimation_5.apnganimation_50.apnganimation_51.apnganimation_52.apng

View File

@ -105,8 +105,6 @@ func (n *Nori) ExportAnimation(num int) (*apng.APNG, error) {
)
fr := apng.Frame{
Image: big,
DisposeOp: apng.DISPOSE_OP_PREVIOUS,
BlendOp: apng.BLEND_OP_OVER,
DelayDenominator: 1000,
}
if g.Images[i].Delay != 0 {
@ -114,5 +112,6 @@ func (n *Nori) ExportAnimation(num int) (*apng.APNG, error) {
}
a.Frames = append(a.Frames, fr)
}
log.Println(num, len(a.Frames))
return a, nil
}

View File

@ -60,8 +60,9 @@ func TestParsePalette(t *testing.T) {
}
func writeApng(nori *Nori, name string) error {
postfix := ".example"
out := new(bytes.Buffer)
os.MkdirAll("./nori_test/"+name+".out", 0740)
os.MkdirAll(fmt.Sprintf("./nori_test/%s%s", name, postfix), 0740)
for i := range nori.Animations {
a, err := nori.ExportAnimation(i)
if err != nil {
@ -74,10 +75,11 @@ func writeApng(nori *Nori, name string) error {
if err != nil {
return err
}
err = os.WriteFile(fmt.Sprintf("./nori_test/%s.out/animation_%d.apng", name, i), out.Bytes(), 0740)
err = os.WriteFile(fmt.Sprintf("./nori_test/%s%s/animation_%d.apng", name, postfix, i), out.Bytes(), 0740)
if err != nil {
return err
}
out.Reset()
}
return nil
}

Binary file not shown.

Before

(image error) Size: 3.1 KiB

After

(image error) Size: 3.1 KiB

Binary file not shown.

Before

(image error) Size: 6.3 KiB

After

(image error) Size: 3.2 KiB

Binary file not shown.

Before

(image error) Size: 89 KiB

After

(image error) Size: 22 KiB

Binary file not shown.

Before

(image error) Size: 2.0 MiB

After

(image error) Size: 79 KiB

Binary file not shown.

Before

(image error) Size: 2.1 MiB

After

(image error) Size: 79 KiB

Binary file not shown.

Before

(image error) Size: 2.1 MiB

After

(image error) Size: 21 KiB

Binary file not shown.

Before

(image error) Size: 2.1 MiB

After

(image error) Size: 21 KiB

Binary file not shown.

Before

(image error) Size: 2.2 MiB

After

(image error) Size: 19 KiB

Binary file not shown.

Before

(image error) Size: 2.2 MiB

After

(image error) Size: 18 KiB

Binary file not shown.

Before

(image error) Size: 2.2 MiB

After

(image error) Size: 21 KiB

Binary file not shown.

Before

(image error) Size: 2.2 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 2.2 MiB

After

(image error) Size: 24 KiB

Binary file not shown.

Before

(image error) Size: 2.3 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 115 KiB

After

(image error) Size: 26 KiB

Binary file not shown.

Before

(image error) Size: 2.3 MiB

After

(image error) Size: 21 KiB

Binary file not shown.

Before

(image error) Size: 2.3 MiB

After

(image error) Size: 18 KiB

Binary file not shown.

Before

(image error) Size: 2.3 MiB

After

(image error) Size: 24 KiB

Binary file not shown.

Before

(image error) Size: 2.4 MiB

After

(image error) Size: 30 KiB

Binary file not shown.

Before

(image error) Size: 2.4 MiB

After

(image error) Size: 30 KiB

Binary file not shown.

Before

(image error) Size: 2.4 MiB

After

(image error) Size: 24 KiB

Binary file not shown.

Before

(image error) Size: 2.4 MiB

After

(image error) Size: 23 KiB

Binary file not shown.

Before

(image error) Size: 2.5 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 2.5 MiB

After

(image error) Size: 30 KiB

Binary file not shown.

Before

(image error) Size: 2.5 MiB

After

(image error) Size: 31 KiB

Binary file not shown.

Before

(image error) Size: 139 KiB

After

(image error) Size: 24 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 29 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 31 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 30 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 3.1 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 3.2 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.6 MiB

After

(image error) Size: 4.5 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 4.0 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 165 KiB

After

(image error) Size: 26 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 3.2 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 4.0 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 23 KiB

Binary file not shown.

Before

(image error) Size: 2.7 MiB

After

(image error) Size: 31 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 31 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 23 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 2.9 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 4.0 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 4.0 KiB

Binary file not shown.

Before

(image error) Size: 188 KiB

After

(image error) Size: 22 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 2.9 KiB

Binary file not shown.

Before

(image error) Size: 206 KiB

After

(image error) Size: 18 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 3.2 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 3.2 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 2.4 KiB

Binary file not shown.

Before

(image error) Size: 214 KiB

After

(image error) Size: 8.4 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 2.4 KiB

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 609 B

Binary file not shown.

Before

(image error) Size: 2.8 MiB

After

(image error) Size: 609 B

Binary file not shown.

Before

(image error) Size: 226 KiB

After

(image error) Size: 12 KiB

Binary file not shown.

Before

(image error) Size: 238 KiB

After

(image error) Size: 12 KiB

Binary file not shown.

Before

(image error) Size: 247 KiB

After

(image error) Size: 8.4 KiB

Binary file not shown.

Before

(image error) Size: 10 KiB

After

(image error) Size: 3.7 KiB

Binary file not shown.

Before

(image error) Size: 272 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 297 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 311 KiB

After

(image error) Size: 14 KiB

Binary file not shown.

Before

(image error) Size: 331 KiB

After

(image error) Size: 20 KiB

Binary file not shown.

Before

(image error) Size: 351 KiB

After

(image error) Size: 20 KiB

Binary file not shown.

Before

(image error) Size: 365 KiB

After

(image error) Size: 14 KiB

Binary file not shown.

Before

(image error) Size: 403 KiB

After

(image error) Size: 38 KiB

Binary file not shown.

Before

(image error) Size: 444 KiB

After

(image error) Size: 41 KiB

Binary file not shown.

Before

(image error) Size: 485 KiB

After

(image error) Size: 41 KiB

Binary file not shown.

Before

(image error) Size: 523 KiB

After

(image error) Size: 38 KiB

Binary file not shown.

Before

(image error) Size: 14 KiB

After

(image error) Size: 4.5 KiB

Binary file not shown.

Before

(image error) Size: 542 KiB

After

(image error) Size: 19 KiB

Binary file not shown.

Before

(image error) Size: 569 KiB

After

(image error) Size: 27 KiB

Binary file not shown.

Before

(image error) Size: 597 KiB

After

(image error) Size: 27 KiB

Binary file not shown.

Before

(image error) Size: 616 KiB

After

(image error) Size: 19 KiB

Binary file not shown.

Before

(image error) Size: 645 KiB

After

(image error) Size: 28 KiB

Binary file not shown.

Before

(image error) Size: 673 KiB

After

(image error) Size: 28 KiB

Binary file not shown.

Before

(image error) Size: 698 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 723 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 748 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 773 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 18 KiB

After

(image error) Size: 4.0 KiB

Binary file not shown.

Before

(image error) Size: 798 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 823 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 848 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 873 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 898 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 923 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 948 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 973 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 998 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 1023 KiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 23 KiB

After

(image error) Size: 4.4 KiB

Binary file not shown.

Before

(image error) Size: 1.0 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 1.0 MiB

After

(image error) Size: 25 KiB

Binary file not shown.

Before

(image error) Size: 1.1 MiB

After

(image error) Size: 25 KiB

Some files were not shown because too many files have changed in this diff Show More