Added testdata
This commit is contained in:
parent
9943954038
commit
0853a5cb2b
1
testdata/.gitignore
vendored
Normal file
1
testdata/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.y4m
|
9
testdata/prepare.sh
vendored
Executable file
9
testdata/prepare.sh
vendored
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pushd "${0%/*}" || exit
|
||||||
|
|
||||||
|
# Samples taken from https://media.xiph.org/
|
||||||
|
|
||||||
|
if [[ ! -f "sintel_trailer_2k_720p24.y4m" ]]; then
|
||||||
|
wget --show-progress -O "sintel_trailer_2k_720p24.y4m" https://media.xiph.org/video/derf/y4m/sintel_trailer_2k_720p24.y4m
|
||||||
|
fi
|
21
testdata/testdata.go
vendored
Normal file
21
testdata/testdata.go
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
package testdata
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
_, filename, _, _ := runtime.Caller(0)
|
||||||
|
// The ".." may change depending on you folder structure
|
||||||
|
dir := path.Join(path.Dir(filename), "..")
|
||||||
|
err := os.Chdir(dir)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
Y4M_Sintel_Trailer_720p24_YUV420_8bit = "testdata/sintel_trailer_2k_720p24.y4m"
|
||||||
|
)
|
Loading…
Reference in a new issue