Documentation
¶
Index ¶
- Variables
- type Config
- type DeblockMode
- type DirectMode
- type Encoder
- func (e *Encoder) Encode(yuv []byte) ([]byte, error)
- func (e *Encoder) EncodeWithHints(yuv []byte, h Hints) ([]byte, error)
- func (e *Encoder) Flush() ([]byte, error)
- func (e *Encoder) ForceKeyFrame()
- func (e *Encoder) Headers() ([]byte, error)
- func (e *Encoder) PPS() *syntax.PPS
- func (e *Encoder) SPS() *syntax.SPS
- type Hints
- type ModeDecision
- type MotionSearch
- type Region
- type RegionKind
- type ScalingMatrix
- type WeightedPrediction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConfig = errors.New("go264/encoder: invalid configuration") ErrFrameSize = errors.New("go264/encoder: frame does not match the configured size") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Width int
Height int
FPSNum int
FPSDen int
GOPSize int
QP int
BitrateKbps int
RefFrames int
BFrames int
LongTermReferences int
CABAC bool
MotionSearch MotionSearch
ModeDecision ModeDecision
Slices int
Transform8x8 bool
ScalingMatrix ScalingMatrix
Trellis bool
WeightedPrediction WeightedPrediction
DirectMode DirectMode
IntraRefresh int
RepeatParameterSets bool
Deblocking DeblockMode
DeblockAlphaOffset int
DeblockBetaOffset int
VBVBufferKbits int
VBVMaxrateKbps int
CBR bool
}
type DeblockMode ¶ added in v1.2.0
type DeblockMode uint8
const ( DeblockingOn DeblockMode = iota DeblockingOff DeblockingNotAcrossSlices )
type DirectMode ¶ added in v1.3.0
type DirectMode uint8
const ( DirectSpatial DirectMode = iota DirectTemporal )
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func (*Encoder) EncodeWithHints ¶ added in v1.1.0
func (*Encoder) ForceKeyFrame ¶ added in v1.1.0
func (e *Encoder) ForceKeyFrame()
type ModeDecision ¶ added in v1.2.0
type ModeDecision uint8
const ( ModeDecisionFast ModeDecision = iota ModeDecisionExhaustive )
type MotionSearch ¶ added in v1.1.0
type MotionSearch uint8
const ( MotionSearchFull MotionSearch = iota MotionSearchZero )
type Region ¶ added in v1.1.0
type Region struct {
Rect image.Rectangle
Kind RegionKind
}
type RegionKind ¶ added in v1.1.0
type RegionKind uint8
const ( RegionUnknown RegionKind = iota RegionFill RegionText RegionImage )
type ScalingMatrix ¶ added in v1.2.0
type ScalingMatrix uint8
const ( ScalingMatrixFlat ScalingMatrix = iota ScalingMatrixJVT )
type WeightedPrediction ¶ added in v1.3.0
type WeightedPrediction uint8
const ( WeightedPredictionOff WeightedPrediction = iota WeightedPredictionExplicit WeightedPredictionImplicit )
Click to show internal directories.
Click to hide internal directories.