Documentation
¶
Index ¶
- func SplitAnnexB[T ~[]byte](frame T, process func(T), delimiter []byte)
- type AVFrame
- type AVTrack
- type AudioTrack
- type Base
- type BaseFrame
- type DTSEstimator
- type DataFrame
- type IStream
- type LockFrame
- type LockRing
- type ParamaterSets
- type RTPFrame
- type RingBuffer
- type TimelineData
- type Track
- type TrackState
- type VideoTrack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitAnnexB ¶ added in v4.11.5
Types ¶
type AVFrame ¶
type AudioTrack ¶
type Base ¶ added in v4.1.0
type Base struct { Name string log.Zap `json:"-"` Stream IStream `json:"-"` Attached atomic.Bool `json:"-"` State TrackState BPS int FPS int RawSize int // 裸数据长度 RawPart []int // 裸数据片段用于UI上显示 BPSs []TimelineData[int] // 10s码率统计 FPSs []TimelineData[int] // 10s帧率统计 // contains filtered or unexported fields }
Base 基础Track类
func (*Base) ComputeBPS ¶ added in v4.1.0
func (*Base) SnapForJson ¶ added in v4.5.1
func (bt *Base) SnapForJson()
type DTSEstimator ¶
type DTSEstimator struct {
// contains filtered or unexported fields
}
DTSEstimator is a DTS estimator.
func NewDTSEstimator ¶
func NewDTSEstimator() *DTSEstimator
NewDTSEstimator allocates a DTSEstimator.
func (*DTSEstimator) Clone ¶ added in v4.9.8
func (d *DTSEstimator) Clone() *DTSEstimator
func (*DTSEstimator) Feed ¶
func (d *DTSEstimator) Feed(pts uint32) uint32
Feed provides PTS to the estimator, and returns the estimated DTS.
type ParamaterSets ¶ added in v4.11.0
type ParamaterSets [][]byte
func (ParamaterSets) GetAnnexB ¶ added in v4.11.0
func (v ParamaterSets) GetAnnexB() (r net.Buffers)
func (ParamaterSets) WriteAnnexBTo ¶ added in v4.11.0
func (v ParamaterSets) WriteAnnexBTo(w io.Writer) (n int, err error)
type RTPFrame ¶
func (*RTPFrame) H264Type ¶
func (r *RTPFrame) H264Type() (naluType codec.H264NALUType)
func (*RTPFrame) H265Type ¶
func (r *RTPFrame) H265Type() (naluType codec.H265NALUType)
type RingBuffer ¶
func (*RingBuffer[T]) Glow ¶ added in v4.11.0
func (rb *RingBuffer[T]) Glow(size int) (newItem *util.Ring[T])
func (*RingBuffer[T]) Init ¶
func (rb *RingBuffer[T]) Init(n int) *RingBuffer[T]
func (*RingBuffer[T]) MoveNext ¶
func (rb *RingBuffer[T]) MoveNext() *T
type TimelineData ¶ added in v4.5.6
type TrackState ¶ added in v4.11.2
type TrackState byte
const ( TrackStateOnline TrackState = iota // 上线 TrackStateOffline // 下线 )
Click to show internal directories.
Click to hide internal directories.