mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-05 08:36:55 +08:00
Update codec to be dynamically registered
This commit is contained in:
@@ -11,3 +11,12 @@ type VideoDecoder interface {
|
||||
Decode([]byte) (image.Image, error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
type VideoSetting struct {
|
||||
Width, Height int
|
||||
TargetBitRate, MaxBitRate int
|
||||
FrameRate float32
|
||||
}
|
||||
|
||||
type VideoEncoderBuilder func(s VideoSetting) (VideoEncoder, error)
|
||||
type VideoDecoderBuilder func(s VideoSetting) (VideoDecoder, error)
|
||||
|
Reference in New Issue
Block a user