mirror of
https://github.com/asticode/go-astiav.git
synced 2025-09-29 05:22:09 +08:00
15 lines
291 B
Go
15 lines
291 B
Go
package astiav_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/asticode/go-astiav"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestPixelFormat(t *testing.T) {
|
|
p := astiav.FindPixelFormatByName("yuv420p")
|
|
require.Equal(t, astiav.PixelFormatYuv420P, p)
|
|
require.Equal(t, "yuv420p", p.String())
|
|
}
|