Documentation
¶
Index ¶
- Variables
- type Reader
- func (r *Reader) BitPos() int
- func (r *Reader) BitsLeft() int
- func (r *Reader) ByteAligned() bool
- func (r *Reader) MoreRBSPData() bool
- func (r *Reader) PeekBits(n int) (uint32, error)
- func (r *Reader) ReadBit() (uint32, error)
- func (r *Reader) ReadBits(n int) (uint32, error)
- func (r *Reader) ReadFlag() (bool, error)
- func (r *Reader) ReadRBSPTrailingBits() error
- func (r *Reader) ReadSE() (int32, error)
- func (r *Reader) ReadTE(max uint32) (uint32, error)
- func (r *Reader) ReadUE() (uint32, error)
- func (r *Reader) Reset(data []byte)
- func (r *Reader) Seek(bitPos int) error
- func (r *Reader) Skip(n int) error
- type Writer
- func (w *Writer) AlignOne()
- func (w *Writer) AlignZero()
- func (w *Writer) BitsWritten() int
- func (w *Writer) ByteAligned() bool
- func (w *Writer) Bytes() []byte
- func (w *Writer) Err() error
- func (w *Writer) Reset()
- func (w *Writer) WriteBit(b uint32)
- func (w *Writer) WriteBits(v uint32, n int)
- func (w *Writer) WriteFlag(f bool)
- func (w *Writer) WriteRBSPTrailingBits()
- func (w *Writer) WriteSE(v int32)
- func (w *Writer) WriteTE(v, max uint32)
- func (w *Writer) WriteUE(v uint32)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOverrun = errors.New("go264/bits: read past end of buffer") ErrBitCount = errors.New("go264/bits: bit count out of range") ErrInvalidCode = errors.New("go264/bits: malformed exponential-Golomb code") ErrRange = errors.New("go264/bits: value out of representable range") ErrTrailing = errors.New("go264/bits: missing rbsp_stop_one_bit") ErrAlignment = errors.New("go264/bits: unexpected non-zero alignment bit") )
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) ByteAligned ¶
func (*Reader) MoreRBSPData ¶
func (*Reader) ReadRBSPTrailingBits ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriterSize ¶
func (*Writer) BitsWritten ¶
func (*Writer) ByteAligned ¶
func (*Writer) WriteRBSPTrailingBits ¶
func (w *Writer) WriteRBSPTrailingBits()
Click to show internal directories.
Click to hide internal directories.