mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-24 02:55:45 +00:00
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.
20 lines
280 B
Go
20 lines
280 B
Go
package recorder
|
|
|
|
type Options struct {
|
|
Dir string
|
|
Fps float64
|
|
W int
|
|
H int
|
|
Stride int
|
|
Flip bool
|
|
Frequency int
|
|
Pix string
|
|
Game string
|
|
Name string
|
|
Zip bool
|
|
Vsync bool
|
|
}
|
|
|
|
type Meta struct {
|
|
UserName string
|
|
}
|