Documentation
¶
Index ¶
- Constants
- Variables
- type Decoder
- func (d *Decoder) CodedBlockFlag(cat, condTermA, condTermB int) bool
- func (d *Decoder) CodedBlockPatternChroma(leftCBP, topCBP int) int
- func (d *Decoder) CodedBlockPatternLuma(leftCBP, topCBP int) int
- func (d *Decoder) DecodeBypass() uint32
- func (d *Decoder) DecodeDecision(ctxIdx int) uint32
- func (d *Decoder) DecodeTerminate() uint32
- func (d *Decoder) EndOfSlice() bool
- func (d *Decoder) Init(r *bits.Reader, sliceQPY int, intra bool, initIDC uint32) error
- func (d *Decoder) Intra4x4PredMode(predMode int) int
- func (d *Decoder) IntraChromaPredMode(inc int) int
- func (d *Decoder) IntraMBType(inc int) int
- func (d *Decoder) LevelOverflow() bool
- func (d *Decoder) MBQPDelta(prevNonZero bool) int
- func (d *Decoder) MBSkipFlagB(inc int) bool
- func (d *Decoder) MBSkipFlagP(inc int) bool
- func (d *Decoder) MBTypeB(inc int) (mbType int, intra bool)
- func (d *Decoder) MBTypeP() (mbType int, intra bool)
- func (d *Decoder) MVD(base, absSum int) int
- func (d *Decoder) Overrun() int
- func (d *Decoder) RefIdx(inc int) int
- func (d *Decoder) ResidualBlock(coeffs []int32, cat, condTermA, condTermB, numC8x8 int) int
- func (d *Decoder) ResidualBlock8x8(coeffs *[64]int32) int
- func (d *Decoder) Restart(r *bits.Reader) error
- func (d *Decoder) State(ctxIdx int) (state, mps uint8)
- func (d *Decoder) SubMBTypeB() int
- func (d *Decoder) SubMBTypeP() int
- func (d *Decoder) TransformSize8x8Flag(inc int) bool
- type Encoder
- func (e *Encoder) CodedBlockFlag(cat, condTermA, condTermB int, flag bool)
- func (e *Encoder) CodedBlockPatternChroma(leftCBP, topCBP, v int)
- func (e *Encoder) CodedBlockPatternLuma(leftCBP, topCBP, cbp int)
- func (e *Encoder) EncodeBypass(bin uint32)
- func (e *Encoder) EncodeDecision(ctxIdx int, bin uint32)
- func (e *Encoder) EncodeTerminate(bin uint32)
- func (e *Encoder) EndOfSlice(end bool)
- func (e *Encoder) EstimateBits(fn func(*Encoder)) int
- func (e *Encoder) EstimateResidualBlockBits(coeffs []int32, cat, condTermA, condTermB, numC8x8 int) int
- func (e *Encoder) Finish()
- func (e *Encoder) Init(w *bits.Writer, sliceQPY int, intra bool, initIDC uint32) error
- func (e *Encoder) Intra4x4PredMode(predMode, mode int)
- func (e *Encoder) IntraChromaPredMode(inc, mode int)
- func (e *Encoder) IntraMBType(inc, mbType int)
- func (e *Encoder) MBQPDelta(delta int, prevNonZero bool)
- func (e *Encoder) MBSkipFlagB(inc int, skip bool)
- func (e *Encoder) MBSkipFlagP(inc int, skip bool)
- func (e *Encoder) MBTypeB(inc, mbType int, intra bool)
- func (e *Encoder) MBTypeP(mbType int, intra bool)
- func (e *Encoder) MVD(base, absSum, v int)
- func (e *Encoder) RefIdx(inc, ref int)
- func (e *Encoder) ResidualBlock(coeffs []int32, cat, condTermA, condTermB, numC8x8 int)
- func (e *Encoder) ResidualBlock8x8(coeffs *[64]int32)
- func (e *Encoder) Restore(s State)
- func (e *Encoder) Snapshot() State
- func (e *Encoder) State(ctxIdx int) (state, mps uint8)
- func (e *Encoder) SubMBTypeB(t int)
- func (e *Encoder) SubMBTypeP(t int)
- func (e *Encoder) TransformSize8x8Flag(inc int, flag bool)
- type State
Constants ¶
View Source
const ( CatIntra16x16DC = 0 CatIntra16x16AC = 1 CatLuma4x4 = 2 CatChromaDC = 3 CatChromaAC = 4 )
View Source
const ( CBPPCM = 0x2F )
View Source
const ( MVDHorizontal = offMVD MVDVertical = offMVD + 7 )
View Source
const CatLuma8x8 = 5
View Source
const NumContexts = 1024
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func (*Decoder) CodedBlockFlag ¶
func (*Decoder) CodedBlockPatternChroma ¶
func (*Decoder) CodedBlockPatternLuma ¶
func (*Decoder) DecodeBypass ¶
func (*Decoder) DecodeDecision ¶
func (*Decoder) DecodeTerminate ¶
func (*Decoder) EndOfSlice ¶
func (*Decoder) Intra4x4PredMode ¶
func (*Decoder) IntraChromaPredMode ¶
func (*Decoder) IntraMBType ¶
func (*Decoder) LevelOverflow ¶ added in v1.6.0
func (*Decoder) MBSkipFlagB ¶
func (*Decoder) MBSkipFlagP ¶
func (*Decoder) ResidualBlock ¶
func (*Decoder) ResidualBlock8x8 ¶ added in v1.2.0
func (*Decoder) SubMBTypeB ¶
func (*Decoder) SubMBTypeP ¶
func (*Decoder) TransformSize8x8Flag ¶ added in v1.2.0
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func (*Encoder) CodedBlockFlag ¶
func (*Encoder) CodedBlockPatternChroma ¶
func (*Encoder) CodedBlockPatternLuma ¶
func (*Encoder) EncodeBypass ¶
func (*Encoder) EncodeDecision ¶
func (*Encoder) EncodeTerminate ¶
func (*Encoder) EndOfSlice ¶
func (*Encoder) EstimateBits ¶
func (*Encoder) EstimateResidualBlockBits ¶
func (*Encoder) Intra4x4PredMode ¶
func (*Encoder) IntraChromaPredMode ¶
func (*Encoder) IntraMBType ¶
func (*Encoder) MBSkipFlagB ¶
func (*Encoder) MBSkipFlagP ¶
func (*Encoder) ResidualBlock ¶
func (*Encoder) ResidualBlock8x8 ¶ added in v1.2.0
func (*Encoder) SubMBTypeB ¶
func (*Encoder) SubMBTypeP ¶
func (*Encoder) TransformSize8x8Flag ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.