build: imagor v1.5.0, go 1.24.3 (#95)

* build: imagor v1.5.0, go 1.24.3

* build: imagor v1.5.0, go 1.24.3

* build: imagor v1.5.0, go 1.24.3

* build: imagor v1.5.0, go 1.24.3

* build: imagor v1.5.0, go 1.24.3

* build: imagor v1.5.0, go 1.24.3

* test: update golden files
This commit is contained in:
Adrian Shum 2025-05-25 14:06:19 +08:00 committed by GitHub
parent 2cb59b494a
commit 2450ec39bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
73 changed files with 113 additions and 107 deletions

View file

@ -3,7 +3,7 @@ package ffmpeg
// #include "ffmpeg.h"
import "C"
import (
"github.com/cshum/imagor/vips/pointer"
"github.com/cshum/vipsgen/pointer"
"io"
"reflect"
"unsafe"

View file

@ -6,7 +6,7 @@ package ffmpeg
// #include "ffmpeg.h"
import "C"
import (
"github.com/cshum/imagor/vips/pointer"
"github.com/cshum/vipsgen/pointer"
"io"
"math"
"time"

View file

@ -3,8 +3,8 @@ package ffmpeg
import (
"encoding/json"
"fmt"
"github.com/cshum/imagor/vips"
"github.com/cshum/imagor/vips/pointer"
"github.com/cshum/vipsgen/pointer"
"github.com/cshum/vipsgen/vips"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
@ -100,9 +100,9 @@ func TestAVContext(t *testing.T) {
if bands > 4 {
bands = 4
}
img, err := vips.LoadImageFromMemory(buf, meta.Width, meta.Height, bands)
img, err := vips.NewImageFromMemory(buf, meta.Width, meta.Height, bands)
require.NoError(t, err)
buf, err = img.ExportJpeg(nil)
buf, err = img.JpegsaveBuffer(nil)
require.NoError(t, err)
goldenFile = baseDir + "golden/export/" + name + ".jpg"
if curr, err := os.ReadFile(goldenFile); err == nil {