encoders: service + vp8_encoder

This commit is contained in:
Krisna Pranav
2023-04-15 17:00:17 +05:30
parent dc5c762755
commit bda5d8c552
2 changed files with 9 additions and 0 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
// vp8 encoder
package encoders