World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Друзья Группы Страницы
Файл swresample.h

См. исходные тексты.

Определения типов

typedef struct SwrContext SwrContext
 

Перечисления

Option constants

These constants are used for the AVOptions interface for lswr.

enum  SwrDitherType {
  SWR_DITHER_NONE = 0, SWR_DITHER_RECTANGULAR, SWR_DITHER_TRIANGULAR, SWR_DITHER_TRIANGULAR_HIGHPASS,
  SWR_DITHER_NS = 64, SWR_DITHER_NS_LIPSHITZ, SWR_DITHER_NS_F_WEIGHTED, SWR_DITHER_NS_MODIFIED_E_WEIGHTED,
  SWR_DITHER_NS_IMPROVED_E_WEIGHTED, SWR_DITHER_NS_SHIBATA, SWR_DITHER_NS_LOW_SHIBATA, SWR_DITHER_NS_HIGH_SHIBATA,
  SWR_DITHER_NB
}
 
enum  SwrEngine { SWR_ENGINE_SWR, SWR_ENGINE_SOXR, SWR_ENGINE_NB }
 
enum  SwrFilterType { SWR_FILTER_TYPE_CUBIC, SWR_FILTER_TYPE_BLACKMAN_NUTTALL, SWR_FILTER_TYPE_KAISER }
 

Функции

const AVClassswr_get_class (void)
 
SwrContext constructor functions
struct SwrContextswr_alloc (void)
 
int swr_init (struct SwrContext *s)
 
int swr_is_initialized (struct SwrContext *s)
 
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)
 
SwrContext destructor functions
void swr_free (struct SwrContext **s)
 
void swr_close (struct SwrContext *s)
 
Core conversion functions
int swr_convert (struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in, int in_count)
 
int64_t swr_next_pts (struct SwrContext *s, int64_t pts)
 
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)
 
int swr_set_channel_mapping (struct SwrContext *s, const int *channel_map)
 
int swr_build_matrix (uint64_t in_layout, uint64_t out_layout, double center_mix_level, double surround_mix_level, double lfe_mix_level, double rematrix_maxval, double rematrix_volume, double *matrix, int stride, enum AVMatrixEncoding matrix_encoding, void *log_ctx)
 
int swr_set_matrix (struct SwrContext *s, const double *matrix, int stride)
 
Sample handling functions
int swr_drop_output (struct SwrContext *s, int count)
 
int swr_inject_silence (struct SwrContext *s, int count)
 
int64_t swr_get_delay (struct SwrContext *s, int64_t base)
 
int swr_get_out_samples (struct SwrContext *s, int in_samples)
 
Configuration accessors
unsigned swresample_version (void)
 
const char * swresample_configuration (void)
 
const char * swresample_license (void)
 
AVFrame based API
int swr_convert_frame (SwrContext *swr, AVFrame *output, const AVFrame *input)
 
int swr_config_frame (SwrContext *swr, const AVFrame *out, const AVFrame *in)
 

Подробное описание

libswresample public header

См. определение в файле swresample.h