audio conversion More...
#include "libavutil/avstring.h"
#include "libavutil/avassert.h"
#include "libavutil/libm.h"
#include "libavutil/samplefmt.h"
#include "audioconvert.h"
Go to the source code of this file.
Data Structures | |
struct | AudioConvert |
Defines | |
#define | CONV_FUNC_NAME(dst_fmt, src_fmt) conv_ ## src_fmt ## _to_ ## dst_fmt |
#define | CONV_FUNC(ofmt, otype, ifmt, expr) |
#define | FMT_PAIR_FUNC(out, in) [out + AV_SAMPLE_FMT_NB*in] = CONV_FUNC_NAME(out, in) |
Typedefs | |
typedef void( | conv_func_type )(uint8_t *po, const uint8_t *pi, int is, int os, uint8_t *end) |
Functions | |
CONV_FUNC (AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8,(*(const uint8_t *) pi-0x80)<< 8) CONV_FUNC(AV_SAMPLE_FMT_S32 | |
Variables | |
int32_t | |
AV_SAMPLE_FMT_U8 |
audio conversion
Definition in file audioconvert.c.
#define CONV_FUNC | ( | ofmt, | ||
otype, | ||||
ifmt, | ||||
expr | ||||
) |
static void CONV_FUNC_NAME(ofmt, ifmt)(uint8_t *po, const uint8_t *pi, int is, int os, uint8_t *end)\ {\ do{\ *(otype*)po = expr; pi += is; po += os;\ }while(po < end);\ }
Definition at line 47 of file audioconvert.c.
#define CONV_FUNC_NAME | ( | dst_fmt, | ||
src_fmt | ||||
) | conv_ ## src_fmt ## _to_ ## dst_fmt |
Definition at line 44 of file audioconvert.c.
#define FMT_PAIR_FUNC | ( | out, | ||
in | ||||
) | [out + AV_SAMPLE_FMT_NB*in] = CONV_FUNC_NAME(out, in) |
typedef void( conv_func_type)(uint8_t *po, const uint8_t *pi, int is, int os, uint8_t *end) |
Definition at line 35 of file audioconvert.c.
CONV_FUNC | ( | AV_SAMPLE_FMT_S16 | , | |
int16_t | , | |||
AV_SAMPLE_FMT_U8 | , | |||
(*(const uint8_t *) pi-0x80)<< | 8 | |||
) |
Definition at line 58 of file audioconvert.c.
Definition at line 58 of file audioconvert.c.
Referenced by add_bell(), adpcm_decode_frame(), alac_decode_frame(), alac_entropy_coder(), alac_linear_predictor(), alac_stereo_decorrelation(), allocate_buffers(), allocStuff(), ape_read_header(), ape_unpack_mono(), ape_unpack_stereo(), apply_channel_coupling(), apply_unsharp(), av_audio_convert(), av_crc_init(), bastardized_rice_decompress(), bink_decode_plane(), binkb_decode_plane(), biweight_h264_W_altivec(), calc_predictor_params(), calculate_sign_huff(), channel_decorrelation(), chrRangeFromJpeg16_c(), chrRangeToJpeg16_c(), compute_imdct(), config(), copy_tag(), create_map(), dctcoef_get(), dctcoef_set(), DECLARE_ASM_CONST(), decode(), decode_cabac_residual_internal(), decode_const_block_data(), decode_frame(), decode_residual(), decode_subframe_fixed(), decode_subframe_lpc(), decode_tile(), decode_var_block_data(), decorrelate_stereo(), draw_slice(), dxa_read_header(), encode_init(), encode_residual_ch(), end_frame(), entropy_decode(), estimate_stereo_mode(), ff_ac3_apply_rematrixing(), ff_eac3_apply_spectral_extension(), ff_get_bmp_header(), ff_ivi_decode_blocks(), ff_ivi_inverse_haar_8x8(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_ivi_recompose53(), ff_ivi_recompose_haar(), ff_mlp_filter_channel(), ff_print_debug_info(), filter(), filter_channel(), filter_samples(), finalize_packet(), flac_decode_frame(), flv_read_packet(), get(), get_xbits(), h264_mp4toannexb_filter(), hScale16To19_c(), hScale8To19_c(), init_offset(), init_predictor_decoder(), j_rev_dct(), j_rev_dct4(), lfe_downsample(), lpc_apply_welch_window_sse2(), lumRangeFromJpeg16_c(), lumRangeToJpeg16_c(), mov_read_elst(), mov_write_tapt_tag(), mp3_write_xing(), MP3lame_encode_frame(), mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_non_intra(), msmpeg4_decode_dc(), output_data(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_encode_frame(), pink_fill(), predictor_decode_mono(), predictor_decode_stereo(), predictor_decompress_fir_adapt(), predictor_update_filter(), put_subframe(), qmf_decompose(), qmf_init(), quantize_lpc_coefs(), ra144_encode_frame(), read_dct_coeffs(), read_filter_params(), read_mfra(), read_var_block_data(), rematrix_channels(), revert_channel_correlation(), rgbtest_put_pixel(), rice_count_exact(), rnd_table_init(), rpl_read_header(), scalarproduct(), scalarproduct_and_madd_int16_altivec(), scalarproduct_int16_altivec(), set(), shorten_decode_frame(), smacker_read_header(), ssd_int8_vs_int16_altivec(), Stagefright_init(), svq1_encode_init(), svq3_mc_dir(), sws_init_context(), swScale(), transcode_audio(), tta_decode_frame(), tta_decode_init(), ttafilter_process(), unsharp(), wavesynth_decode(), wavesynth_parse_extradata(), wavesynth_synth_sample(), wavpack_decode_block(), weight_h264_W_altivec(), write_hint_packets(), write_subframes(), wv_unpack_mono(), wv_unpack_stereo(), x8_decode_intra_mb(), x8_loop_filter(), yuv2gray16_2_c_template(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuvPlanartouyvy_c(), and yuvPlanartoyuy2_c().