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
- Variables
- func AudioDecoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)
- func AudioDecoderCreateById(arg1 int, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)
- func AudioDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 uint) (_swig_ret uint)
- func AudioDecoderFree(arg1 uintptr)
- func AudioDecoderGetFrame(arg1 uintptr, arg2 AudioDataST) (_swig_ret int)
- func AudioEncoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)
- func AudioEncoderCreateById(arg1 int, arg2 int, arg3 int, arg4 int, arg5 int) (_swig_ret uintptr)
- func AudioEncoderEncode(arg1 uintptr, arg2 *byte, arg3 int) (_swig_ret uint)
- func AudioEncoderFree(arg1 uintptr)
- func AudioEncoderGetEncodeData(arg1 uintptr, arg2 AudioDataST) (_swig_ret int)
- func DeleteAudioDataST(arg1 AudioDataST)
- func DeleteVideoDataST(arg1 VideoDataST)
- func FdkAacDecoderCreate(arg1 int, arg2 uint, arg3 *byte, arg4 uint) (_swig_ret uintptr)
- func FdkAacDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 *byte, arg5 int) (_swig_ret int)
- func FdkAacDecoderFree(arg1 uintptr)
- func OnCodecLog(logWrite CodecLogWrite)
- func SetCodecLog(arg1 _swig_fnptr)
- func Swig_free(arg1 uintptr)
- func Swig_malloc(arg1 int) (_swig_ret uintptr)
- func VideoDecoderCreate(arg1 string, arg2 uint) (_swig_ret uintptr)
- func VideoDecoderDecode(arg1 uintptr, arg2 *byte, arg3 uint, arg4 uint) (_swig_ret uint)
- func VideoDecoderFree(arg1 uintptr)
- func VideoDecoderGetFrame(arg1 uintptr, arg2 VideoDataST) (_swig_ret int)
- func VideoEncoderCreate(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int, arg6 int, arg7 int) (_swig_ret uintptr)
- func VideoEncoderEncode(arg1 uintptr, arg2 *byte, arg3 uint) (_swig_ret uint)
- func VideoEncoderForceKeyFrame(arg1 uintptr)
- func VideoEncoderFree(arg1 uintptr)
- func VideoEncoderGetEncodeData(arg1 uintptr, arg2 VideoDataST) (_swig_ret int)
- type AudioDataST
- type CodecLogWrite
- type SwigcptrAudioDataST
- func (arg1 SwigcptrAudioDataST) GetChannels() (_swig_ret int)
- func (arg1 SwigcptrAudioDataST) GetData() (_swig_ret *byte)
- func (arg1 SwigcptrAudioDataST) GetDataLength() (_swig_ret uint)
- func (arg1 SwigcptrAudioDataST) GetFormat() (_swig_ret int)
- func (arg1 SwigcptrAudioDataST) GetSampleRate() (_swig_ret int)
- func (arg1 SwigcptrAudioDataST) GetTimestamp() (_swig_ret uint)
- func (arg1 SwigcptrAudioDataST) SetChannels(arg2 int)
- func (arg1 SwigcptrAudioDataST) SetData(arg2 *byte)
- func (arg1 SwigcptrAudioDataST) SetDataLength(arg2 uint)
- func (arg1 SwigcptrAudioDataST) SetFormat(arg2 int)
- func (arg1 SwigcptrAudioDataST) SetSampleRate(arg2 int)
- func (arg1 SwigcptrAudioDataST) SetTimestamp(arg2 uint)
- func (p SwigcptrAudioDataST) SwigIsAudioDataST()
- func (p SwigcptrAudioDataST) Swigcptr() uintptr
- type SwigcptrVideoDataST
- func (arg1 SwigcptrVideoDataST) GetData() (_swig_ret *byte)
- func (arg1 SwigcptrVideoDataST) GetDataLength() (_swig_ret uint)
- func (arg1 SwigcptrVideoDataST) GetFormat() (_swig_ret int)
- func (arg1 SwigcptrVideoDataST) GetHeight() (_swig_ret int)
- func (arg1 SwigcptrVideoDataST) GetKeyFrame() (_swig_ret int)
- func (arg1 SwigcptrVideoDataST) GetPicType() (_swig_ret int)
- func (arg1 SwigcptrVideoDataST) GetTimestamp() (_swig_ret uint)
- func (arg1 SwigcptrVideoDataST) GetWidth() (_swig_ret int)
- func (arg1 SwigcptrVideoDataST) SetData(arg2 *byte)
- func (arg1 SwigcptrVideoDataST) SetDataLength(arg2 uint)
- func (arg1 SwigcptrVideoDataST) SetFormat(arg2 int)
- func (arg1 SwigcptrVideoDataST) SetHeight(arg2 int)
- func (arg1 SwigcptrVideoDataST) SetKeyFrame(arg2 int)
- func (arg1 SwigcptrVideoDataST) SetPicType(arg2 int)
- func (arg1 SwigcptrVideoDataST) SetTimestamp(arg2 uint)
- func (arg1 SwigcptrVideoDataST) SetWidth(arg2 int)
- func (p SwigcptrVideoDataST) SwigIsVideoDataST()
- func (p SwigcptrVideoDataST) Swigcptr() uintptr
- type VideoDataST
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 AudioDecoderCreateById ¶
func AudioDecoderDecode ¶
func AudioDecoderFree ¶
func AudioDecoderFree(arg1 uintptr)
func AudioDecoderGetFrame ¶
func AudioDecoderGetFrame(arg1 uintptr, arg2 AudioDataST) (_swig_ret int)
func AudioEncoderCreate ¶
func AudioEncoderCreateById ¶
func AudioEncoderEncode ¶
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 FdkAacDecoderDecode ¶
func FdkAacDecoderFree ¶
func FdkAacDecoderFree(arg1 uintptr)
func OnCodecLog ¶
func OnCodecLog(logWrite CodecLogWrite)
func SetCodecLog ¶
func SetCodecLog(arg1 _swig_fnptr)
func Swig_malloc ¶
func VideoDecoderCreate ¶
func VideoDecoderDecode ¶
func VideoDecoderFree ¶
func VideoDecoderFree(arg1 uintptr)
func VideoDecoderGetFrame ¶
func VideoDecoderGetFrame(arg1 uintptr, arg2 VideoDataST) (_swig_ret int)
func VideoEncoderCreate ¶
func VideoEncoderEncode ¶
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 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)
Click to show internal directories.
Click to hide internal directories.