mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-07 01:22:53 +08:00

Also make the ReadCloser an Controllable allows to uncouple the controller implementation from the encoder. This is not needed for the 2 codec controller already implemented (openh264 and vpx) but is more future proof in case it required for other codecs.
28 lines
627 B
Go
28 lines
627 B
Go
//go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
|
// +build dragonfly freebsd linux netbsd openbsd solaris
|
|
|
|
package vaapi
|
|
|
|
import (
|
|
"github.com/pion/mediadevices/pkg/codec"
|
|
"testing"
|
|
)
|
|
|
|
func TestVP8ShouldImplementBitRateControl(t *testing.T) {
|
|
t.SkipNow() // TODO: Implement bit rate control
|
|
|
|
e := &encoderVP8{}
|
|
if _, ok := e.Controller().(codec.BitRateController); !ok {
|
|
t.Error()
|
|
}
|
|
}
|
|
|
|
func TestVP8ShouldImplementKeyFrameControl(t *testing.T) {
|
|
t.SkipNow() // TODO: Implement key frame control
|
|
|
|
e := &encoderVP8{}
|
|
if _, ok := e.Controller().(codec.KeyFrameController); !ok {
|
|
t.Error()
|
|
}
|
|
}
|