28 #define C15DB 1.189207115
30 #define C_15DB 0.840896415
31 #define C_30DB M_SQRT1_2
32 #define C_45DB 0.594603558
35 #define OFFSET(x) offsetof(SwrContext,x)
36 #define PARAM AV_OPT_FLAG_AUDIO_PARAM
37 #define DEPREC AV_OPT_FLAG_DEPRECATED
40 #if FF_API_OLD_CHANNEL_LAYOUT
41 {
"ich" ,
"set input channel count (Deprecated, use ichl)",
43 {
"in_channel_count" ,
"set input channel count (Deprecated, use in_chlayout)",
45 {
"och" ,
"set output channel count (Deprecated, use ochl)",
47 {
"out_channel_count" ,
"set output channel count (Deprecated, use out_chlayout)",
62 #if FF_API_OLD_CHANNEL_LAYOUT
63 {
"icl" ,
"set input channel layout (Deprecated, use ichl)",
65 {
"in_channel_layout" ,
"set input channel layout (Deprecated, use in_chlayout)",
67 {
"ocl" ,
"set output channel layout (Deprecated, use ochl)",
69 {
"out_channel_layout" ,
"set output channel layout (Deprecated, use out_chlayout)",
115 {
"precision" ,
"set soxr resampling precision (in bits)"
117 {
"cheby" ,
"enable soxr Chebyshev passband & higher-precision irrational ratio approximation"
119 {
"min_comp" ,
"set minimum difference between timestamps and audio data (in seconds) below which no timestamp compensation of either kind is applied"
121 {
"min_hard_comp" ,
"set minimum difference between timestamps and audio data (in seconds) to trigger padding/trimming the data."
123 {
"comp_duration" ,
"set duration (in seconds) over which data is stretched/squeezed to make it match the timestamps."
125 {
"max_soft_comp" ,
"set maximum factor by which data is stretched/squeezed to make it match the timestamps."
127 {
"async" ,
"simplified 1 parameter audio timestamp matching, 0(disabled), 1(filling and trimming), >1(maximum stretch/squeeze in samples per second)"
129 {
"first_pts" ,
"Assume the first pts should be this value (in samples)."
157 .log_level_offset_offset =
OFFSET(log_level_offset),
158 .parent_log_context_offset =
OFFSET(log_ctx),