avi

package
v1.6.39 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRiff

func IsRiff(reader io.Reader) (io.Reader, bool, error)

IsRiff is looking at the first bytes to determine if it's RIFF structure (and not ATOM).

Types

type Parser

type Parser struct {
	Debug bool
}

func (*Parser) ReadDetails

func (p *Parser) ReadDetails(reader io.Reader, options backup.DetailsReaderOptions) (*backup.MediaDetails, error)

func (*Parser) Supports

func (p *Parser) Supports(media backup.FoundMedia, mediaType backup.MediaType) bool

type RiffNode

type RiffNode struct {
	Type     string
	Value    []byte
	Children []*RiffNode
}

func DecodeRiff

func DecodeRiff(reader io.Reader) (*RiffNode, error)

DecodeRiff read the RIFF header, if any, and returns non-nil RiffNode and reader positioned to the MP4 content ; or nil RiffNode and unchanged reader

Jump to

Keyboard shortcuts

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