mirror of
https://github.com/krishpranav/remote-desktop.git
synced 2025-12-24 12:47:52 +08:00
encoders: service + vp8_encoder
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
type Service interface {
|
||||
NewEncoder(codec VideoCodec, size image.Point, frameRate int) (Encoder, error)
|
||||
Supports(codec VideoCodec) bool
|
||||
}
|
||||
|
||||
type Encoder interface {
|
||||
@@ -16,3 +17,9 @@ type Encoder interface {
|
||||
}
|
||||
|
||||
type VideoCodec = int
|
||||
|
||||
const (
|
||||
NoCodec VideoCodec = iota
|
||||
H264Codec
|
||||
VP8Codec
|
||||
)
|
||||
|
||||
2
encoders/vp8_encoder.go
Normal file
2
encoders/vp8_encoder.go
Normal file
@@ -0,0 +1,2 @@
|
||||
// vp8 encoder
|
||||
package encoders
|
||||
Reference in New Issue
Block a user