libcodec

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package libcodec *

  • @Author: W.w.
  • @File: callback
  • @Date: 2023-04-25 12:13
  • @Description:

Package libcodec *

  • @Author: W.w.
  • @File: callbackInit
  • @Date: 2023-04-25 12:26
  • @Description:

Index

Constants

View Source
const CODEC_ID_AAC int = 0x15002
View Source
const CODEC_ID_MP3 int = 0x15001
View Source
const CODEC_ID_OPUS int = 0x1503C
View Source
const CODEC_ID_PCM_ALAW int = 0x10007
View Source
const CODEC_ID_PCM_MULAW int = 0x10006
View Source
const CODEC_NAME_AAC string = "aac"
View Source
const CODEC_NAME_ALAW string = "pcm_alaw"
View Source
const CODEC_NAME_DECODER_H264 string = "h264"
View Source
const CODEC_NAME_DECODER_H265 string = "hevc"
View Source
const CODEC_NAME_DECODER_MP3 string = "mp3"
View Source
const CODEC_NAME_ENCODER_MP3 string = "libmp3lame"
View Source
const CODEC_NAME_ENCODER_X264 string = "libx264"
View Source
const CODEC_NAME_ENCODER_X265 string = "libx265"
View Source
const CODEC_NAME_FDK_AAC string = "libfdk_aac"
View Source
const CODEC_NAME_OPEN_H264 string = "libopenh264"
View Source
const CODEC_NAME_OPUS string = "libopus"
View Source
const CODEC_NAME_ULAW string = "pcm_mulaw"
View Source
const CODEC_NAME_VP8 string = "libvpx"
View Source
const CODEC_NAME_VP9 string = "libvpx-vp9"

Variables

View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}

Functions

func AudioDecoderCreate

func AudioDecoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)

func AudioDecoderCreateById

func AudioDecoderCreateById(arg1 int, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)

func AudioDecoderDecode

func AudioDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 uint) (_swig_ret uint)

func AudioDecoderFree

func AudioDecoderFree(arg1 uintptr)

func AudioDecoderGetFrame

func AudioDecoderGetFrame(arg1 uintptr, arg2 AudioDataST) (_swig_ret int)

func AudioEncoderCreate

func AudioEncoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)

func AudioEncoderCreateById

func AudioEncoderCreateById(arg1 int, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)

func AudioEncoderEncode

func AudioEncoderEncode(arg1 uintptr, arg2 *byte, arg3 int) (_swig_ret uint)

func AudioEncoderFree

func AudioEncoderFree(arg1 uintptr)

func AudioEncoderGetEncodeData

func AudioEncoderGetEncodeData(arg1 uintptr, arg2 AudioDataST) (_swig_ret int)

func DeleteAudioDataST

func DeleteAudioDataST(arg1 AudioDataST)

func DeleteVideoDataST

func DeleteVideoDataST(arg1 VideoDataST)

func FdkAacDecoderCreate

func FdkAacDecoderCreate(arg1 int, arg2 uint, arg3 *byte, arg4 uint) (_swig_ret uintptr)

func FdkAacDecoderDecode

func FdkAacDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 *byte, arg5 int) (_swig_ret int)

func FdkAacDecoderFree

func FdkAacDecoderFree(arg1 uintptr)

func OnCodecLog

func OnCodecLog(logWrite CodecLogWrite)

func SetCodecLog

func SetCodecLog(arg1 _swig_fnptr)

func Swig_free

func Swig_free(arg1 uintptr)

func Swig_malloc

func Swig_malloc(arg1 int) (_swig_ret uintptr)

func VideoDecoderCreate

func VideoDecoderCreate(arg1 string, arg2 uint) (_swig_ret uintptr)

func VideoDecoderDecode

func VideoDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 uint) (_swig_ret uint)

func VideoDecoderFree

func VideoDecoderFree(arg1 uintptr)

func VideoDecoderGetFrame

func VideoDecoderGetFrame(arg1 uintptr, arg2 VideoDataST) (_swig_ret int)

func VideoEncoderCreate

func VideoEncoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int, arg6 int, arg7 int) (_swig_ret uintptr)

func VideoEncoderEncode

func VideoEncoderEncode(arg1 uintptr, arg2 *byte, arg3 uint) (_swig_ret uint)

func VideoEncoderForceKeyFrame

func VideoEncoderForceKeyFrame(arg1 uintptr)

func VideoEncoderFree

func VideoEncoderFree(arg1 uintptr)

func VideoEncoderGetEncodeData

func VideoEncoderGetEncodeData(arg1 uintptr, arg2 VideoDataST) (_swig_ret int)

Types

type AudioDataST

type AudioDataST interface {
	Swigcptr() uintptr
	SwigIsAudioDataST()
	SetTimestamp(arg2 uint)
	GetTimestamp() (_swig_ret uint)
	SetDataLength(arg2 uint)
	GetDataLength() (_swig_ret uint)
	SetData(arg2 *byte)
	GetData() (_swig_ret *byte)
	SetFormat(arg2 int)
	GetFormat() (_swig_ret int)
	SetChannels(arg2 int)
	GetChannels() (_swig_ret int)
	SetSampleRate(arg2 int)
	GetSampleRate() (_swig_ret int)
}

func NewAudioDataST

func NewAudioDataST() (_swig_ret AudioDataST)

type CodecLogWrite

type CodecLogWrite func(level int, data string)

type SwigcptrAudioDataST

type SwigcptrAudioDataST uintptr

func (SwigcptrAudioDataST) GetChannels

func (arg1 SwigcptrAudioDataST) GetChannels() (_swig_ret int)

func (SwigcptrAudioDataST) GetData

func (arg1 SwigcptrAudioDataST) GetData() (_swig_ret *byte)

func (SwigcptrAudioDataST) GetDataLength

func (arg1 SwigcptrAudioDataST) GetDataLength() (_swig_ret uint)

func (SwigcptrAudioDataST) GetFormat

func (arg1 SwigcptrAudioDataST) GetFormat() (_swig_ret int)

func (SwigcptrAudioDataST) GetSampleRate

func (arg1 SwigcptrAudioDataST) GetSampleRate() (_swig_ret int)

func (SwigcptrAudioDataST) GetTimestamp

func (arg1 SwigcptrAudioDataST) GetTimestamp() (_swig_ret uint)

func (SwigcptrAudioDataST) SetChannels

func (arg1 SwigcptrAudioDataST) SetChannels(arg2 int)

func (SwigcptrAudioDataST) SetData

func (arg1 SwigcptrAudioDataST) SetData(arg2 *byte)

func (SwigcptrAudioDataST) SetDataLength

func (arg1 SwigcptrAudioDataST) SetDataLength(arg2 uint)

func (SwigcptrAudioDataST) SetFormat

func (arg1 SwigcptrAudioDataST) SetFormat(arg2 int)

func (SwigcptrAudioDataST) SetSampleRate

func (arg1 SwigcptrAudioDataST) SetSampleRate(arg2 int)

func (SwigcptrAudioDataST) SetTimestamp

func (arg1 SwigcptrAudioDataST) SetTimestamp(arg2 uint)

func (SwigcptrAudioDataST) SwigIsAudioDataST

func (p SwigcptrAudioDataST) SwigIsAudioDataST()

func (SwigcptrAudioDataST) Swigcptr

func (p SwigcptrAudioDataST) Swigcptr() uintptr

type SwigcptrVideoDataST

type SwigcptrVideoDataST uintptr

func (SwigcptrVideoDataST) GetData

func (arg1 SwigcptrVideoDataST) GetData() (_swig_ret *byte)

func (SwigcptrVideoDataST) GetDataLength

func (arg1 SwigcptrVideoDataST) GetDataLength() (_swig_ret uint)

func (SwigcptrVideoDataST) GetFormat

func (arg1 SwigcptrVideoDataST) GetFormat() (_swig_ret int)

func (SwigcptrVideoDataST) GetHeight

func (arg1 SwigcptrVideoDataST) GetHeight() (_swig_ret int)

func (SwigcptrVideoDataST) GetKeyFrame

func (arg1 SwigcptrVideoDataST) GetKeyFrame() (_swig_ret int)

func (SwigcptrVideoDataST) GetPicType

func (arg1 SwigcptrVideoDataST) GetPicType() (_swig_ret int)

func (SwigcptrVideoDataST) GetTimestamp

func (arg1 SwigcptrVideoDataST) GetTimestamp() (_swig_ret uint)

func (SwigcptrVideoDataST) GetWidth

func (arg1 SwigcptrVideoDataST) GetWidth() (_swig_ret int)

func (SwigcptrVideoDataST) SetData

func (arg1 SwigcptrVideoDataST) SetData(arg2 *byte)

func (SwigcptrVideoDataST) SetDataLength

func (arg1 SwigcptrVideoDataST) SetDataLength(arg2 uint)

func (SwigcptrVideoDataST) SetFormat

func (arg1 SwigcptrVideoDataST) SetFormat(arg2 int)

func (SwigcptrVideoDataST) SetHeight

func (arg1 SwigcptrVideoDataST) SetHeight(arg2 int)

func (SwigcptrVideoDataST) SetKeyFrame

func (arg1 SwigcptrVideoDataST) SetKeyFrame(arg2 int)

func (SwigcptrVideoDataST) SetPicType

func (arg1 SwigcptrVideoDataST) SetPicType(arg2 int)

func (SwigcptrVideoDataST) SetTimestamp

func (arg1 SwigcptrVideoDataST) SetTimestamp(arg2 uint)

func (SwigcptrVideoDataST) SetWidth

func (arg1 SwigcptrVideoDataST) SetWidth(arg2 int)

func (SwigcptrVideoDataST) SwigIsVideoDataST

func (p SwigcptrVideoDataST) SwigIsVideoDataST()

func (SwigcptrVideoDataST) Swigcptr

func (p SwigcptrVideoDataST) Swigcptr() uintptr

type VideoDataST

type VideoDataST interface {
	Swigcptr() uintptr
	SwigIsVideoDataST()
	SetTimestamp(arg2 uint)
	GetTimestamp() (_swig_ret uint)
	SetDataLength(arg2 uint)
	GetDataLength() (_swig_ret uint)
	SetData(arg2 *byte)
	GetData() (_swig_ret *byte)
	SetKeyFrame(arg2 int)
	GetKeyFrame() (_swig_ret int)
	SetWidth(arg2 int)
	GetWidth() (_swig_ret int)
	SetHeight(arg2 int)
	GetHeight() (_swig_ret int)
	SetPicType(arg2 int)
	GetPicType() (_swig_ret int)
	SetFormat(arg2 int)
	GetFormat() (_swig_ret int)
}

func NewVideoDataST

func NewVideoDataST() (_swig_ret VideoDataST)

Jump to

Keyboard shortcuts

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