codecs

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 2 Imported by: 27

Documentation

Overview

Package codecs contains codec definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AV1

type AV1 struct {
	SequenceHeader []byte
}

AV1 is a AV1 codec.

func (*AV1) IsVideo added in v2.2.2

func (*AV1) IsVideo() bool

IsVideo returns whether the codec is a video one.

type Codec

type Codec interface {
	// IsVideo returns whether the codec is a video one.
	IsVideo() bool
	// contains filtered or unexported methods
}

Codec is a codec.

type FLAC added in v2.4.0

type FLAC struct {
	StreamInfo *flac.StreamInfo
}

FLAC is a FLAC codec.

func (*FLAC) IsVideo added in v2.4.0

func (*FLAC) IsVideo() bool

IsVideo returns whether the codec is a video one.

type H264

type H264 struct {
	SPS []byte
	PPS []byte
}

H264 is a H264 codec.

func (*H264) IsVideo added in v2.2.2

func (*H264) IsVideo() bool

IsVideo returns whether the codec is a video one.

type H265

type H265 struct {
	VPS []byte
	SPS []byte
	PPS []byte
}

H265 is a H265 codec.

func (*H265) IsVideo added in v2.2.2

func (*H265) IsVideo() bool

IsVideo returns whether the codec is a video one.

type KLV added in v2.2.9

type KLV struct {
	// whether the KLV stream is synchronous (has its own PES timestamps)
	Synchronous bool
}

KLV is a KLV codec.

func (*KLV) IsVideo added in v2.2.9

func (*KLV) IsVideo() bool

IsVideo implements Codec.

type MPEG4Audio

type MPEG4Audio struct {
	Config mpeg4audio.AudioSpecificConfig
}

MPEG4Audio is a MPEG-4 Audio codec.

func (*MPEG4Audio) IsVideo added in v2.2.2

func (*MPEG4Audio) IsVideo() bool

IsVideo returns whether the codec is a video one.

type Opus

type Opus struct {
	ChannelCount int
}

Opus is a Opus codec.

func (*Opus) IsVideo added in v2.2.2

func (*Opus) IsVideo() bool

IsVideo returns whether the codec is a video one.

type VP9

type VP9 struct {
	Width             int
	Height            int
	Profile           uint8
	BitDepth          uint8
	ChromaSubsampling uint8
	ColorRange        bool
}

VP9 is a VP9 codec.

func (*VP9) IsVideo added in v2.2.2

func (*VP9) IsVideo() bool

IsVideo returns whether the codec is a video one.

Jump to

Keyboard shortcuts

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