ogg

package module
v0.0.0-...-15c8654 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(in io.Reader) error

func RegisterFormat

func RegisterFormat(magic string, format Format)

Types

type Codec

type Codec interface {
	Input() chan<- Packet
}

func GetCodec

func GetCodec(page Page) Codec

type Format

type Format func() Codec
type Header struct {
	HeaderFixed
	Segment_table []uint8
}

type HeaderFixed

type HeaderFixed struct {
	Capture_pattern [4]byte // needs to be "OggS"

	Version                 uint8
	Header_type             uint8
	Granule_position        uint64
	Bitstream_serial_number uint32
	Page_sequence_number    uint32
	Crc_checksum            uint32
	Page_segments           uint8
}

type Packet

type Packet struct {
	Granule_position     uint64
	Page_sequence_number uint32
	Data                 []byte
}

type Page

type Page struct {
	Header
	Data []byte
}

func DecodePage

func DecodePage(in io.Reader) (Page, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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