cache

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlvCache

type FlvCache struct {
	// contains filtered or unexported fields
}

FlvCache Flv包缓存.

func NewFlvCache

func NewFlvCache(cacheGop bool) *FlvCache

NewFlvCache 创建FlvCache实例

func (*FlvCache) CachePack

func (cache *FlvCache) CachePack(pack Pack) bool

CachePack 向FlvCache中缓存包

func (*FlvCache) PushTo

func (cache *FlvCache) PushTo(q *queue.SyncQueue) int

PushTo 入列到指定的队列

func (*FlvCache) Reset

func (cache *FlvCache) Reset()

Reset 重置FlvCache缓存

type H264Cache

type H264Cache struct {
	// contains filtered or unexported fields
}

H264Cache 画面组缓存(Group of Pictures).

func NewH264Cache

func NewH264Cache(cacheGop bool) *H264Cache

NewH264Cache 创建 H264 缓存

func (*H264Cache) CachePack

func (cache *H264Cache) CachePack(pack Pack) bool

CachePack 向H264Cache中缓存包

func (*H264Cache) PushTo

func (cache *H264Cache) PushTo(q *queue.SyncQueue) int

PushTo 入列到指定的队列

func (*H264Cache) Reset

func (cache *H264Cache) Reset()

Reset 重置H264Cache缓存

type HevcCache

type HevcCache struct {
	// contains filtered or unexported fields
}

HevcCache 画面组缓存(Group of Pictures).

func NewHevcCache

func NewHevcCache(cacheGop bool) *HevcCache

NewHevcCache 创建 HEVC 缓存

func (*HevcCache) CachePack

func (cache *HevcCache) CachePack(pack Pack) bool

CachePack 向HevcCache中缓存包

func (*HevcCache) PushTo

func (cache *HevcCache) PushTo(q *queue.SyncQueue) int

PushTo 入列到指定的队列

func (*HevcCache) Reset

func (cache *HevcCache) Reset()

Reset 重置HevcCache缓存

type Pack

type Pack = format.Packet

Pack .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL