Versions in this module Expand all Collapse all v0 v0.1.0 Nov 28, 2026 Changes in this version + const H264 + type AccessUnit struct + Data []byte + Keyframe bool + PTS int64 + type Capability struct + Codec string + Hardware bool + Name string + func Decoders() ([]Capability, error) + func Encoders() ([]Capability, error) + type Decoder struct + func NewDecoder(cfg DecoderConfig) (*Decoder, error) + func (d *Decoder) Close() error + func (d *Decoder) Decode(unit []byte) (*image.RGBA, error) + func (d *Decoder) Flush() + func (d *Decoder) Hardware() bool + type DecoderConfig struct + Codec string + SoftwareOnly bool + type Encoder struct + func NewEncoder(cfg EncoderConfig) (*Encoder, error) + func (e *Encoder) Close() error + func (e *Encoder) Encode(frame Frame, keyframe bool) (AccessUnit, error) + func (e *Encoder) Hardware() bool + func (e *Encoder) Name() string + func (e *Encoder) SetBitRate(bps int) error + type EncoderConfig struct + BitRate int + Codec string + FPS int + Height int + Name string + SoftwareOnly bool + Width int + type Frame struct + Data []byte + Format PixelFormat + Height int + Stride int + UV []byte + UVStride int + Width int + type PixelFormat int + const BGRA + const NV12 + func (f PixelFormat) String() string