FFmpeg
|
#include <math.h>
#include "config.h"
#include "attributes.h"
#include "intfloat.h"
#include "mathematics.h"
Go to the source code of this file.
Macros | |
#define | atanf(x) ((float)atan(x)) |
#define | atan2f(y, x) ((float)atan2(y, x)) |
#define | powf(x, y) ((float)pow(x, y)) |
#define | cosf(x) ((float)cos(x)) |
#define | FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) |
#define | expf(x) ((float)exp(x)) |
#define | exp2(x) exp((x) * M_LN2) |
#define | exp2f(x) ((float)exp2(x)) |
#define | isinf(x) |
#define | isnan(x) |
#define | isfinite(x) |
#define | ldexpf(x, exp) ((float)ldexp(x, exp)) |
#define | llrint(x) ((long long)rint(x)) |
#define | llrintf(x) ((long long)rint(x)) |
#define | log2(x) (log(x) * 1.44269504088896340736) |
#define | log2f(x) ((float)log2(x)) |
#define | log10f(x) ((float)log10(x)) |
#define | sinf(x) ((float)sin(x)) |
Replacements for frequently missing libm functions
Definition in file libm.h.
#define isinf | ( | x | ) |
#define isnan | ( | x | ) |
#define isfinite | ( | x | ) |
|
static |
|
static |
Definition at line 61 of file libm.h.
Referenced by calculate_gamma(), config_output(), decode_spectrum_and_dequant(), draw_spatial(), filter_frame(), get_cm_factor(), get_scale(), power(), quantize_and_encode_band_cost_template(), and remap_log().
|
static |
Definition at line 68 of file libm.h.
Referenced by copysignl(), decfloat(), hexfloat(), and perform_compression().
erf function Algorithm taken from the Boost project, source: http://www.boost.org/doc/libs/1_46_1/boost/math/special_functions/erf.hpp Use, modification and distribution are subject to the Boost Software License, Version 1.0 (see notice below).
Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition at line 121 of file libm.h.
Referenced by bound(), ff_aac_adjust_common_pred(), and filter_dbl().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 366 of file libm.h.
Referenced by av_display_rotation_get(), check_stability(), config_output(), config_props(), decompose_transform(), decompose_zp2biquads(), distance(), draw_curves(), draw_response(), eval_expr(), freq_gain(), get_natural_factor(), get_response(), h264_metadata_handle_display_orientation(), mov_read_tkhd(), oscilloscope_config_input(), parse_points(), process_frame(), ps_tableinit(), ring2_test(), update_oscilloscope(), vectorscope16(), vectorscope8(), and video_audio_display().
|
static |
|
static |
|
static |
Definition at line 444 of file libm.h.
Referenced by aom_init(), ap_init(), apply_dependent_coupling_fixed(), apply_independent_coupling_fixed(), autocorr_calc(), combine_residual_frame(), comparef(), config_input(), dequant(), encode_init(), eval_expr(), ff_hevc_idct_32x32_lsx(), filter_frame(), frame_size(), get_rotation(), hevc_idct_32x32_msa(), hevc_idct_8x32_column_lsx(), hevc_idct_8x32_column_msa(), imdct_half_32(), imdct_half_64(), lpf(), mediacodec_init(), merge_channel_layouts_internal(), mov_write_sidx_tags(), noise_scale(), ps_tableinit(), ransac_update_num_iters(), read_global_param(), sbr_hf_apply_noise(), sbr_hf_assemble(), sbr_hf_inverse_filter(), sbr_sum_square_c(), scale_coefs(), sls_flags_filename_process(), subband_scale(), tta_filter_process_c(), ttaenc_filter_process_c(), vector_fmul_window_scaled_c(), and write_time().
|
static |
Definition at line 451 of file libm.h.
Referenced by bitreduction(), search_for_pns(), set_special_band_scalefactors(), and xvid_correct_framerate().
|
static |