Documentation ¶
Index ¶
- type DecodedImage
- func (f *DecodedImage) Height() uint32
- func (f *DecodedImage) IsKeyFrame() bool
- func (f *DecodedImage) Plane(n int) []byte
- func (f *DecodedImage) Stride(n int) int
- func (f *DecodedImage) ToBytes(format decoder.ColorFormat) []uint8
- func (f *DecodedImage) ToRGBA() *image.RGBA
- func (f *DecodedImage) Width() uint32
- type VP8Decoder
- type VP9Decoder
- type VP9FrameBuffer
- type VP9FrameBufferPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodedImage ¶
type DecodedImage struct {
// contains filtered or unexported fields
}
func (*DecodedImage) Height ¶
func (f *DecodedImage) Height() uint32
func (*DecodedImage) IsKeyFrame ¶
func (f *DecodedImage) IsKeyFrame() bool
func (*DecodedImage) Plane ¶
func (f *DecodedImage) Plane(n int) []byte
func (*DecodedImage) Stride ¶
func (f *DecodedImage) Stride(n int) int
func (*DecodedImage) ToBytes ¶
func (f *DecodedImage) ToBytes(format decoder.ColorFormat) []uint8
func (*DecodedImage) ToRGBA ¶
func (f *DecodedImage) ToRGBA() *image.RGBA
func (*DecodedImage) Width ¶
func (f *DecodedImage) Width() uint32
type VP8Decoder ¶
type VP8Decoder struct {
// contains filtered or unexported fields
}
func NewVP8Decoder ¶
func NewVP8Decoder() (*VP8Decoder, error)
func (*VP8Decoder) Close ¶
func (d *VP8Decoder) Close() error
func (*VP8Decoder) NewFrameBuilder ¶
func (d *VP8Decoder) NewFrameBuilder() *decoder.FrameBuilder
func (*VP8Decoder) Process ¶
func (d *VP8Decoder) Process(src <-chan *decoder.Frame) chan decoder.VideoDecodeResult
type VP9Decoder ¶
type VP9Decoder struct {
// contains filtered or unexported fields
}
func NewVP9Decoder ¶
func NewVP9Decoder() (*VP9Decoder, error)
func (*VP9Decoder) Close ¶
func (d *VP9Decoder) Close() error
func (*VP9Decoder) NewFrameBuilder ¶
func (d *VP9Decoder) NewFrameBuilder() *decoder.FrameBuilder
func (*VP9Decoder) Process ¶
func (d *VP9Decoder) Process(src <-chan *decoder.Frame) chan decoder.VideoDecodeResult
type VP9FrameBuffer ¶
type VP9FrameBuffer struct {
// contains filtered or unexported fields
}
func (*VP9FrameBuffer) AddRef ¶
func (p *VP9FrameBuffer) AddRef() int
func (*VP9FrameBuffer) GetData ¶
func (p *VP9FrameBuffer) GetData() *C.uint8_t
func (*VP9FrameBuffer) GetDataSize ¶
func (p *VP9FrameBuffer) GetDataSize() C.size_t
func (*VP9FrameBuffer) HasOneRef ¶
func (p *VP9FrameBuffer) HasOneRef() bool
func (*VP9FrameBuffer) Release ¶
func (p *VP9FrameBuffer) Release()
func (*VP9FrameBuffer) SetSize ¶
func (p *VP9FrameBuffer) SetSize(size C.size_t)
type VP9FrameBufferPool ¶
type VP9FrameBufferPool struct {
// contains filtered or unexported fields
}
func (*VP9FrameBufferPool) Clear ¶
func (p *VP9FrameBufferPool) Clear()
func (*VP9FrameBufferPool) GetFrameBuffer ¶
func (p *VP9FrameBufferPool) GetFrameBuffer(minSize C.size_t) (*VP9FrameBuffer, error)
func (*VP9FrameBufferPool) GetNumBuffersInUse ¶
func (p *VP9FrameBufferPool) GetNumBuffersInUse() int
func (*VP9FrameBufferPool) Init ¶
func (p *VP9FrameBufferPool) Init(ctx *C.vpx_codec_ctx_t) error
Click to show internal directories.
Click to hide internal directories.