mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Add the initial libyuv support
The main benefit of libyuv, apart from shortening the video pipeline, is quite noticeable latency and CPU usage decrease due to various assembler/SIMD optimizations of the library. However, there is a drawback for macOS systems: libyuv cannot be downloaded as a compiled library and can only be built from the source, which means we should include a cropped source code of the library (~10K LoC) into the app or rise the complexity of macOS dev and run toolchains. The main target system -- Linux, and Windows will use compiled lib from the package managers and macOS will use the lib included as a shortened source-code. Building the app with the no_libyuv tag will force it to use libyuv from the provided source files.
This commit is contained in:
parent
072b674fb1
commit
b1b33713d6
73 changed files with 12017 additions and 1543 deletions
17
test/test.go
Normal file
17
test/test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// runs tests from the root dir when imported
|
||||
|
||||
func init() {
|
||||
_, filename, _, _ := runtime.Caller(0)
|
||||
dir := path.Join(path.Dir(filename), "..")
|
||||
if err := os.Chdir(dir); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
0
test/testdata/raw/000_name_fourcc_width_height_stride
vendored
Normal file
0
test/testdata/raw/000_name_fourcc_width_height_stride
vendored
Normal file
BIN
test/testdata/raw/001_alsa_ABGR_256_240_1024.raw.zip
vendored
Normal file
BIN
test/testdata/raw/001_alsa_ABGR_256_240_1024.raw.zip
vendored
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue