annexb

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package annexb - universal for H264 and H265

Index

Constants

View Source
const StartCode = "\x00\x00\x00\x01"

Variables

This section is empty.

Functions

func DecodeAVCC

func DecodeAVCC(b []byte, safeClone bool) []byte

func DecodeAVCCWithAUD

func DecodeAVCCWithAUD(src []byte) []byte

DecodeAVCCWithAUD - AUD doesn't important for FFmpeg, but important for Safari

func EncodeToAVCC

func EncodeToAVCC(b []byte, safeAppend bool) []byte

EncodeToAVCC will change original slice data! safeAppend should be used if original slice has useful data after end (part of other slice)

FFmpeg MPEG-TS: 00000001 AUD 00000001 SPS 00000001 PPS 000001 IFrame FFmpeg H264: 00000001 SPS 00000001 PPS 000001 IFrame 00000001 PFrame

func IndexFrame

func IndexFrame(b []byte) int

IndexFrame - get new frame start position in the AnnexB stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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