libswresample

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package libswresample provides a high-level interface to the libswresample library audio resampling utilities The process of changing the sampling rate of a discrete signal to obtain a new discrete representation of the underlying continuous signal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwresampleConfiguration

func SwresampleConfiguration() string

SwresampleConfiguration Return the swr build-time configuration.

func SwresampleLicense

func SwresampleLicense() string

SwresampleLicense Return the swr license.

func SwresampleVersion

func SwresampleVersion() uint

SwresampleVersion Configuration accessors

Types

type AvClass added in v1.1.2

type AvClass C.struct_AVClass

func SwrGetClass

func SwrGetClass() *AvClass

SwrGetClass Get the Class for Context.

type AvFrame added in v1.1.2

type AvFrame C.struct_AVFrame

type AvSampleFormat

type AvSampleFormat C.enum_AVSampleFormat

type SwrContext added in v1.1.2

type SwrContext C.struct_SwrContext

func SwrAlloc

func SwrAlloc() *SwrContext

SwrAlloc Context constructor functions.Allocate Context.

func (*SwrContext) SwrAllocSetOpts added in v1.1.2

func (ctx *SwrContext) SwrAllocSetOpts(outChLayout int64, outSampleFmt AvSampleFormat, outSampleRate int,
	inChLayout int64, inSampleFmt AvSampleFormat, inSampleRate, logOffset, logCtx int) *SwrContext

SwrAllocSetOpts Allocate Context if needed and set/reset common parameters.

func (*SwrContext) SwrClose added in v1.1.2

func (ctx *SwrContext) SwrClose()

SwrClose Closes the context so that swr_is_initialized() returns 0.

func (*SwrContext) SwrConfigFrame added in v1.1.2

func (ctx *SwrContext) SwrConfigFrame(output, input *AvFrame) int

SwrConfigFrame Configure or reconfigure the Context using the information provided by the AvFrames.

func (*SwrContext) SwrConvert added in v1.1.2

func (ctx *SwrContext) SwrConvert(out **uint8, outCount int, in **uint8, inCount int) int

SwrConvert Core conversion functions. Convert audio

func (*SwrContext) SwrConvertFrame added in v1.1.2

func (ctx *SwrContext) SwrConvertFrame(output, input *AvFrame) int

SwrConvertFrame AvFrame based API. Convert the samples in the input AvFrame and write them to the output AvFrame.

func (*SwrContext) SwrDropOutput added in v1.1.2

func (ctx *SwrContext) SwrDropOutput(count int) int

SwrDropOutput Sample handling functions. Drops the specified number of output samples.

func (*SwrContext) SwrFree added in v1.1.2

func (ctx *SwrContext) SwrFree()

SwrFree Context destructor functions. Free the given Context and set the pointer to NULL.

func (*SwrContext) SwrGetDelay added in v1.1.2

func (ctx *SwrContext) SwrGetDelay(base int64) int64

SwrGetDelay Gets the delay the next input sample will experience relative to the next output sample.

func (*SwrContext) SwrInit added in v1.1.2

func (ctx *SwrContext) SwrInit() int

SwrInit Initialize context after user parameters have been set.

func (*SwrContext) SwrInjectSilence added in v1.1.2

func (ctx *SwrContext) SwrInjectSilence(count int) int

SwrInjectSilence Injects the specified number of silence samples.

func (*SwrContext) SwrIsInitialized added in v1.1.2

func (ctx *SwrContext) SwrIsInitialized() int

SwrIsInitialized Check whether an swr context has been initialized or not.

func (*SwrContext) SwrNextPts added in v1.1.2

func (ctx *SwrContext) SwrNextPts(pts int64) int64

SwrNextPts Convert the next timestamp from input to output timestamps are in 1/(in_sample_rate * out_sample_rate) units.

func (*SwrContext) SwrSetChannelMapping added in v1.1.2

func (ctx *SwrContext) SwrSetChannelMapping(channelMap *int) int

SwrSetChannelMapping Set a customized input channel mapping.

func (*SwrContext) SwrSetCompensation added in v1.1.2

func (ctx *SwrContext) SwrSetCompensation(sampleDelta, compensationDistance int) int

SwrSetCompensation Activate resampling compensation ("soft" compensation). This function is internally called when needed in swr_next_pts().

func (*SwrContext) SwrSetMatrix added in v1.1.2

func (ctx *SwrContext) SwrSetMatrix(matrix *int, stride int) int

SwrSetMatrix Set a customized remix matrix.

Jump to

Keyboard shortcuts

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