mpeg4video

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 2 Imported by: 22

Documentation

Overview

Package mpeg4video contains utilities to work with MPEG-4 part 2 video codecs.

Index

Constants

View Source
const (
	// MaxFrameSize is the maximum size of a frame.
	MaxFrameSize = 1 * 1024 * 1024
)

Variables

This section is empty.

Functions

func IsValidConfig

func IsValidConfig(config []byte) error

IsValidConfig checks whether a MPEG-4 Video configuration is valid.

Types

type StartCode

type StartCode uint8

StartCode is a MPEG-4 Video start code. Specification: ISO 14496-2, Table 6-3

const (
	VideoObjectStartCodeFirst      StartCode = 0x00
	VideoObjectStartCodeLast       StartCode = 0x1F
	VisualObjectSequenceStartCode  StartCode = 0xB0
	VideoObjectLayerStartCodeFirst StartCode = 0x20
	VideoObjectLayerStartCodeLast  StartCode = 0x2F
	UserDataStartCode              StartCode = 0xB2
	GroupOfVOPStartCode            StartCode = 0xB3
	VisualObjectStartCode          StartCode = 0xB5
	VOPStartCode                   StartCode = 0xB6
)

start codes.

Jump to

Keyboard shortcuts

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