Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
Name string
ProbeEncode func(EncoderParams) (Encoder, bool)
ProbeDecode func(DecoderParams) (Decoder, bool)
}
type Decoder ¶
type Decoder interface {
Decode(annexB []byte) ([]*Picture, error)
Flush() ([]*Picture, error)
Close() error
}
func OpenDecoder ¶
func OpenDecoder(p DecoderParams) (Decoder, string, bool)
type DecoderParams ¶ added in v1.4.0
type Encoder ¶
type Encoder interface {
Encode(i420 []byte) ([]byte, error)
Drain() ([]byte, error)
Close() error
}
func OpenEncoder ¶
func OpenEncoder(p EncoderParams) (Encoder, string, bool)
type EncoderParams ¶
type KeyFrameForcer ¶ added in v1.8.0
type KeyFrameForcer interface {
ForceKeyFrame()
}
Click to show internal directories.
Click to hide internal directories.