Documentation ¶
Index ¶
Constants ¶
View Source
const ( PixelFormatRGB = avcodec.AV_PIX_FMT_RGB24 PixelFormatBGR = av_PIX_FMT_BGR24 )
View Source
const ( H264 = Compression(avcodec.AV_CODEC_ID_H264) H265 = Compression(avcodec.AV_CODEC_ID_H265) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compression ¶
type Compression int
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func New ¶
func New(pxlFmt PixelFormat, cpr Compression) (*Decoder, error)
New creates new Decoder It accepts expected pixel format for the output which
type Frame ¶
Frame represents decoded frame from H.264/H.265 stream Data field will contain bitmap data in the pixel format specified in the decoder
type PixelFormat ¶
type PixelFormat int
Click to show internal directories.
Click to hide internal directories.