headers

package
v3.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package headers contains RTP/M-JPEG headers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JPEG

type JPEG struct {
	TypeSpecific   uint8
	FragmentOffset uint32
	Type           uint8
	Quantization   uint8
	Width          int
	Height         int
}

JPEG is a JPEG header.

func (JPEG) Marshal

func (h JPEG) Marshal(byts []byte) []byte

Marshal encodes the header.

func (*JPEG) Unmarshal

func (h *JPEG) Unmarshal(byts []byte) (int, error)

Unmarshal decodes the header.

type QuantizationTable

type QuantizationTable struct {
	MBZ       uint8
	Precision uint8
	Tables    []byte
}

QuantizationTable is a Quantization Table header.

func (QuantizationTable) Marshal

func (h QuantizationTable) Marshal(byts []byte) []byte

Marshal encodes the header.

func (*QuantizationTable) Unmarshal

func (h *QuantizationTable) Unmarshal(byts []byte) (int, error)

Unmarshal decodes the header.

type RestartMarker

type RestartMarker struct {
	Interval uint16
	Count    uint16
}

RestartMarker is a Restart Marker header.

func (RestartMarker) Marshal

func (h RestartMarker) Marshal(byts []byte) []byte

Marshal encodes the header.

func (*RestartMarker) Unmarshal

func (h *RestartMarker) Unmarshal(byts []byte) (int, error)

Unmarshal decodes the header.

Jump to

Keyboard shortcuts

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