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:
parent
2cb59b494a
commit
2450ec39bd
73 changed files with 113 additions and 107 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue