FFmpeg
Macros | Functions
swresample.h File Reference
Libswresample

libswresample public header More...

#include <stdint.h>
#include "libavutil/frame.h"
#include "libavutil/samplefmt.h"
#include "libswresample/version.h"

Go to the source code of this file.

Macros

#define  SWR_CH_MAX   32
  Maximum number of channels.
 

Functions

  Get the AVClass for SwrContext.
 
SwrContext constructor functions
struct SwrContextswr_alloc (void)
  Allocate SwrContext.
 
int  swr_init (struct SwrContext *s)
  Initialize context after user parameters have been set.
 
  Check whether an swr context has been initialized or not.
 
struct SwrContextswr_alloc_set_opts (struct SwrContext *s, int64_t out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, int64_t in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, int log_offset, void *log_ctx)
  Allocate SwrContext if needed and set/reset common parameters.
 
SwrContext destructor functions
void  swr_free (struct SwrContext **s)
  Free the given SwrContext and set the pointer to NULL.
 
void  swr_close (struct SwrContext *s)
  Closes the context so that swr_is_initialized() returns 0.
 
Core conversion functions
int  swr_convert (struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in, int in_count)
  Convert audio.
 
int64_t  swr_next_pts (struct SwrContext *s, int64_t pts)
  Convert the next timestamp from input to output timestamps are in 1/(in_sample_rate * out_sample_rate) units.
 
Low-level option setting functions

These functons provide a means to set low-level options that is not possible with the AVOption API.

int  swr_set_compensation (struct SwrContext *s, int sample_delta, int compensation_distance)
  Activate resampling compensation ("soft" compensation).
 
int  swr_set_channel_mapping (struct SwrContext *s, const int *channel_map)
  Set a customized input channel mapping.
 
int  swr_set_matrix (struct SwrContext *s, const double *matrix, int stride)
  Set a customized remix matrix.
 
Sample handling functions
int  swr_drop_output (struct SwrContext *s, int count)
  Drops the specified number of output samples.
 
int  swr_inject_silence (struct SwrContext *s, int count)
  Injects the specified number of silence samples.
 
int64_t  swr_get_delay (struct SwrContext *s, int64_t base)
  Gets the delay the next input sample will experience relative to the next output sample.
 
Configuration accessors
unsigned  swresample_version (void)
  Return the LIBSWRESAMPLE_VERSION_INT constant.
 
const char *  swresample_configuration (void)
  Return the swr build-time configuration.
 
const char *  swresample_license (void)
  Return the swr license.
 
AVFrame based API
int  swr_convert_frame (SwrContext *swr, AVFrame *output, const AVFrame *input)
  Convert the samples in the input AVFrame and write them to the output AVFrame.
 
int  swr_config_frame (SwrContext *swr, const AVFrame *out, const AVFrame *in)
  Configure or reconfigure the SwrContext using the information provided by the AVFrames.
 

Option constants

These constants are used for the AVOptions interface for lswr.

#define  SWR_FLAG_RESAMPLE   1
  Force resampling even if equal sample rate.
 
  Dithering algorithms. More...
 
  Resampling Engines. More...
 
  Resampling Filter Types. More...
 

Detailed Description

libswresample public header

Definition in file swresample.h.


Generated on Sun Mar 8 2015 02:35:33 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /