ffmpeg

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

* @Description: * @Author: dotwoo@gmail.com * @Github: https://github.com/dotwoo * @Date: 2021-07-22 13:10:06 * @FilePath: /joy4/cgo/ffmpeg/ffmpeg.go

Index

Constants

View Source
const (
	QUIET   = int(C.AV_LOG_QUIET)
	PANIC   = int(C.AV_LOG_PANIC)
	FATAL   = int(C.AV_LOG_FATAL)
	ERROR   = int(C.AV_LOG_ERROR)
	WARNING = int(C.AV_LOG_WARNING)
	INFO    = int(C.AV_LOG_INFO)
	VERBOSE = int(C.AV_LOG_VERBOSE)
	DEBUG   = int(C.AV_LOG_DEBUG)
	TRACE   = int(C.AV_LOG_TRACE)
)

Variables

This section is empty.

Functions

func HasDecoder

func HasDecoder(name string) bool

func HasEncoder

func HasEncoder(name string) bool

func SetLogLevel

func SetLogLevel(level int)

Types

type VideoDecoder

type VideoDecoder struct {
	Extradata []byte
	// contains filtered or unexported fields
}

func NewVideoDecoder

func NewVideoDecoder(stream av.CodecData) (dec *VideoDecoder, err error)

func (*VideoDecoder) Decode

func (self *VideoDecoder) Decode(pkt []byte, i int) (img *VideoFrame, err error)

func (*VideoDecoder) FeedFrame

func (self *VideoDecoder) FeedFrame(pkt []byte, i int) (err error)

func (*VideoDecoder) Setup

func (self *VideoDecoder) Setup() (err error)

type VideoFrame

type VideoFrame struct {
	Image image.YCbCr
	// contains filtered or unexported fields
}

func (*VideoFrame) Free

func (self *VideoFrame) Free()

Jump to

Keyboard shortcuts

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