mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 18:46:11 +00:00
* Use modified x264 lib * Add x264 system lib * Set x264 version 155 for Debian (Buster) * Add h264 config params * Set vp8 codec
16 lines
178 B
Go
16 lines
178 B
Go
package encoder
|
|
|
|
type VideoCodec int
|
|
|
|
const (
|
|
H264 VideoCodec = iota
|
|
VPX
|
|
)
|
|
|
|
func (v VideoCodec) String() string {
|
|
if v == H264 {
|
|
return "h264"
|
|
} else {
|
|
return "vpx"
|
|
}
|
|
}
|