FFmpeg
|
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "checkasm.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/intfloat.h"
#include "libavutil/random_seed.h"
Go to the source code of this file.
Data Structures | |
struct | CheckasmFuncVersion |
struct | CheckasmFunc |
Macros | |
#define | COLOR_RED 1 |
#define | COLOR_GREEN 2 |
#define | COLOR_YELLOW 3 |
#define | isatty(fd) 1 |
#define | is_red(f) ((f) && !(f)->color) |
Functions | |
static int | is_negative (union av_intfloat32 u) |
int | float_near_ulp (float a, float b, unsigned max_ulp) |
int | float_near_ulp_array (const float *a, const float *b, unsigned max_ulp, unsigned len) |
int | float_near_abs_eps (float a, float b, float eps) |
int | float_near_abs_eps_array (const float *a, const float *b, float eps, unsigned len) |
int | float_near_abs_eps_ulp (float a, float b, float eps, unsigned max_ulp) |
int | float_near_abs_eps_array_ulp (const float *a, const float *b, float eps, unsigned max_ulp, unsigned len) |
static void | color_printf (int color, const char *fmt,...) |
static void | destroy_func_tree (CheckasmFunc *f) |
static void * | checkasm_malloc (size_t size) |
static const char * | cpu_suffix (int cpu) |
static int | cmp_func_names (const char *a, const char *b) |
static CheckasmFunc * | rotate_tree (CheckasmFunc *f, int dir) |
static void | balance_tree (CheckasmFunc **root) |
static CheckasmFunc * | get_func (CheckasmFunc **root, const char *name) |
static void | check_cpu_flag (const char *name, int flag) |
static void | print_cpu_name (void) |
int | main (int argc, char *argv[]) |
void * | checkasm_check_func (void *func, const char *name,...) |
int | checkasm_bench_func (void) |
void | checkasm_fail_func (const char *msg,...) |
void | checkasm_update_bench (int iterations, uint64_t cycles) |
void | checkasm_report (const char *name,...) |
Variables | |
struct { | |
const char * name | |
void(* func )(void) | |
} | tests [] |
struct { | |
const char * name | |
const char * suffix | |
int flag | |
} | cpus [] |
struct { | |
CheckasmFunc * funcs | |
CheckasmFunc * current_func | |
CheckasmFuncVersion * current_func_ver | |
const char * current_test_name | |
const char * bench_pattern | |
int bench_pattern_len | |
int num_checked | |
int num_failed | |
int nop_time | |
int cpu_flag | |
const char * cpu_flag_name | |
} | state |
AVLFG | checkasm_lfg |
#define COLOR_RED 1 |
Definition at line 43 of file checkasm.c.
Referenced by checkasm_report().
#define COLOR_GREEN 2 |
Definition at line 44 of file checkasm.c.
Referenced by checkasm_report().
#define COLOR_YELLOW 3 |
Definition at line 45 of file checkasm.c.
Referenced by print_cpu_name().
#define isatty | ( | fd | ) | 1 |
Definition at line 53 of file checkasm.c.
Referenced by av_log_default_callback(), check_color_terminal(), and color_printf().
#define is_red | ( | f | ) | ((f) && !(f)->color) |
Definition at line 416 of file checkasm.c.
Referenced by balance_tree().
|
static |
Definition at line 189 of file checkasm.c.
Referenced by float_near_ulp().
int float_near_ulp | ( | float | a, |
float | b, | ||
unsigned | max_ulp | ||
) |
Definition at line 194 of file checkasm.c.
Referenced by float_near_abs_eps_ulp(), and float_near_ulp_array().
int float_near_ulp_array | ( | const float * | a, |
const float * | b, | ||
unsigned | max_ulp, | ||
unsigned | len | ||
) |
Definition at line 212 of file checkasm.c.
Referenced by checkasm_check_fmtconvert().
int float_near_abs_eps | ( | float | a, |
float | b, | ||
float | eps | ||
) |
Definition at line 224 of file checkasm.c.
Referenced by float_near_abs_eps_array(), and float_near_abs_eps_ulp().
int float_near_abs_eps_array | ( | const float * | a, |
const float * | b, | ||
float | eps, | ||
unsigned | len | ||
) |
Definition at line 231 of file checkasm.c.
int float_near_abs_eps_ulp | ( | float | a, |
float | b, | ||
float | eps, | ||
unsigned | max_ulp | ||
) |
Definition at line 243 of file checkasm.c.
Referenced by checkasm_check_synth_filter(), and float_near_abs_eps_array_ulp().
int float_near_abs_eps_array_ulp | ( | const float * | a, |
const float * | b, | ||
float | eps, | ||
unsigned | max_ulp, | ||
unsigned | len | ||
) |
Definition at line 248 of file checkasm.c.
|
static |
Definition at line 261 of file checkasm.c.
Referenced by checkasm_report(), and print_cpu_name().
|
static |
Definition at line 304 of file checkasm.c.
Referenced by checkasm_malloc(), and main().
|
static |
Definition at line 321 of file checkasm.c.
Referenced by checkasm_check_func(), and get_func().
|
static |
Definition at line 333 of file checkasm.c.
Referenced by checkasm_fail_func().
|
static |
Definition at line 391 of file checkasm.c.
Referenced by get_func().
|
static |
Definition at line 406 of file checkasm.c.
Referenced by balance_tree().
|
static |
Definition at line 419 of file checkasm.c.
Referenced by get_func().
|
static |
Definition at line 435 of file checkasm.c.
Referenced by checkasm_check_func().
|
static |
Definition at line 460 of file checkasm.c.
Referenced by main().
Definition at line 481 of file checkasm.c.
Referenced by checkasm_fail_func(), and checkasm_report().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 489 of file checkasm.c.
Definition at line 547 of file checkasm.c.
int checkasm_bench_func | ( | void | ) |
Definition at line 594 of file checkasm.c.
void checkasm_fail_func | ( | const char * | msg, |
... | |||
) |
Definition at line 601 of file checkasm.c.
void checkasm_update_bench | ( | int | iterations, |
uint64_t | cycles | ||
) |
Definition at line 619 of file checkasm.c.
void checkasm_report | ( | const char * | name, |
... | |||
) |
Definition at line 626 of file checkasm.c.
const char* name |
Definition at line 64 of file checkasm.c.
Referenced by check_cpu_flag().
Definition at line 65 of file checkasm.c.
Referenced by checkasm_check_func(), and main().
const { ... } tests[] |
Referenced by check_cpu_flag(), checkasm_check_h264pred(), and main().
const char* suffix |
Definition at line 114 of file checkasm.c.
Referenced by coeff_abs_level_remaining_decode(), ff_hevc_hls_residual_coding(), fmt_bytecount(), and lavfi_read_header().
int flag |
Definition at line 115 of file checkasm.c.
Referenced by adpcm_decode_frame(), av_opt_flag_is_set(), av_vorbis_parse_frame_flags(), bit_allocation(), cinepak_decode_codebook(), cinepak_decode_vectors(), cpu_suffix(), decode_bmv_frame(), decode_channel_wordlen(), decode_registered_user_data_afd(), decode_registered_user_data_closed_caption(), epic_decode_run_length(), find_and_decode_index(), hq_decode_mb(), hqa_decode_mb(), hqx_decode_422(), hqx_decode_422a(), hqx_decode_444(), hqx_decode_444a(), imc_decode_block(), initFilter(), main(), mark_ref(), old_codec1(), read_header(), read_huffman_tables(), set_af_flag(), set_disposition_bits(), sws_init_context(), vorbis_parse_setup_hdr_codebooks(), write_index(), and xan_wc3_decode_frame().
const { ... } cpus[] |
Referenced by cpu_suffix(), and main().
CheckasmFunc* funcs |
Definition at line 172 of file checkasm.c.
Referenced by filter_frame(), init_axis_color(), and init_volume().
CheckasmFunc* current_func |
Definition at line 173 of file checkasm.c.
CheckasmFuncVersion* current_func_ver |
Definition at line 174 of file checkasm.c.
const char* current_test_name |
Definition at line 175 of file checkasm.c.
const char* bench_pattern |
Definition at line 176 of file checkasm.c.
int bench_pattern_len |
Definition at line 177 of file checkasm.c.
int num_checked |
Definition at line 178 of file checkasm.c.
int num_failed |
Definition at line 179 of file checkasm.c.
int nop_time |
Definition at line 180 of file checkasm.c.
int cpu_flag |
Definition at line 181 of file checkasm.c.
Referenced by main().
const char* cpu_flag_name |
Definition at line 182 of file checkasm.c.
struct { ... } state |
Referenced by adx_parse(), apng_probe(), av_lzo1x_decode(), av_rc4_crypt(), av_rc4_init(), avi_read_packet(), bfi_read_packet(), bmp_parse(), cavs_find_frame_end(), check_cpu_flag(), checkasm_bench_func(), checkasm_check_func(), checkasm_fail_func(), checkasm_malloc(), checkasm_report(), checkasm_update_bench(), convert_samples(), dca_find_frame_end(), decode_cabac_intra_mb_type(), decode_line(), decode_slice_header(), delta_decode(), dnxhd_find_frame_end(), dpx_parse(), dts_probe(), dv_probe(), dv_read_header(), dxv_decompress_dxt1(), dxv_decompress_dxt5(), encode_frame(), encode_line(), encode_picture_ls(), encode_slice_header(), ff_dither_alloc(), ff_h263_find_frame_end(), ff_jpegls_decode_picture(), ff_mpeg1_find_frame_end(), ff_mpeg4_find_frame_end(), ff_mpeg4video_split(), ff_rtp_send_h263_rfc2190(), ff_spdif_probe(), ff_spdif_read_packet(), filter_frame(), find_any_startcode(), find_frame_end(), find_group3_syncmarker(), find_next_start_code(), find_start_code(), get_cabac_inline(), get_rac(), h261_find_frame_end(), h264_find_frame_end(), h264_split(), iterative_me(), jpeg_probe(), latm_find_frame_end(), libAVFilter_GetState(), libAVFilter_Pause(), libAVFilter_Run(), libAVFilter_Stop(), libgsm_encode_frame(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), main(), mlp_filter_channel(), mpegaudio_parse(), mpegts_write_packet_internal(), mpegvideo_split(), mxf_parse_h264_frame(), nc_read_packet(), noise(), opus_find_frame_end(), parse_adaptation_sets(), parse_nal_units(), parse_presentation_segment(), print_cpu_name(), pulse_context_wait(), pulse_read_header(), pulse_stream_wait(), put_rac(), read_extra_header(), read_header(), read_quant_table(), rm_sync(), vc1_split(), write_extradata(), write_header(), and write_quant_table().
AVLFG checkasm_lfg |
Definition at line 186 of file checkasm.c.