mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-04 08:16:33 +08:00
25 lines
663 B
Go
25 lines
663 B
Go
// +build !dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
|
|
|
|
package vaapi
|
|
|
|
// // Dummy CGO import to avoid `C source files not allowed when not using cgo or SWIG`
|
|
import "C"
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/pion/mediadevices/pkg/codec"
|
|
"github.com/pion/mediadevices/pkg/io/video"
|
|
"github.com/pion/mediadevices/pkg/prop"
|
|
)
|
|
|
|
var errNotSupported = errors.New("vaapi is not supported on this environment")
|
|
|
|
func newVP8Encoder(r video.Reader, p prop.Media, params ParamsVP8) (codec.ReadCloser, error) {
|
|
return nil, errNotSupported
|
|
}
|
|
|
|
func newVP9Encoder(r video.Reader, p prop.Media, params ParamsVP9) (codec.ReadCloser, error) {
|
|
return nil, errNotSupported
|
|
}
|