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 HasEncoder ¶
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) Setup ¶
func (self *VideoDecoder) Setup() (err error)
type VideoFrame ¶
func (*VideoFrame) Free ¶
func (self *VideoFrame) Free()
Click to show internal directories.
Click to hide internal directories.