mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-26 20:41:46 +08:00
15 lines
383 B
Go
15 lines
383 B
Go
package frame
|
|
|
|
import "image"
|
|
|
|
type Decoder interface {
|
|
Decode(frame []byte, width, height int) (image.Image, func(), error)
|
|
}
|
|
|
|
// DecoderFunc is a proxy type for Decoder
|
|
type decoderFunc func(frame []byte, width, height int) (image.Image, func(), error)
|
|
|
|
func (f decoderFunc) Decode(frame []byte, width, height int) (image.Image, func(), error) {
|
|
return f(frame, width, height)
|
|
}
|