Libav
Macros | Functions
vp8dsp.c File Reference
#include <string.h>
#include "libavcodec/avcodec.h"
#include "libavcodec/vp8dsp.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define PIXEL_STRIDE   16
 
#define randomize_buffers(src, dst, stride, coef)
 
#define SRC_BUF_STRIDE   32
 
#define SRC_BUF_SIZE   (((size << (size < 16)) + 5) * SRC_BUF_STRIDE)
 
#define src   (buf + 2 * SRC_BUF_STRIDE + 2 + 1)
 
#define randomize_buffers()
 
#define setpx(a, b, c)   buf[(a) + (b) * jstride] = av_clip_uint8(c)
 
#define setdx(a, b, c, d)   setpx(a, b, c - (d) + (rnd() % ((d) * 2 + 1)))
 
#define setdx2(a, b, o, c, d, e)   setpx(a, b, o = c + ((d) + (rnd() % (e))) * (c >= 128 ? -1 : 1))
 
#define randomize_buffers(buf, lineoff, str, force_hev)   randomize_loopfilter_buffers(lineoff, str, dir, flim_E, flim_I, hev_thresh, buf, force_hev)
 

Functions

static void dct4x4 (int16_t *coef)
 
static void wht4x4 (int16_t *coef)
 
static void check_idct (void)
 
static void check_idct_dc4 (void)
 
static void check_luma_dc_wht (void)
 
static void check_mc (void)
 
static void randomize_loopfilter_buffers (int lineoff, int str, int dir, int flim_E, int flim_I, int hev_thresh, uint8_t *buf, int force_hev)
 
static void fill_loopfilter_buffers (uint8_t *buf, ptrdiff_t stride, int w, int h)
 
static void check_loopfilter_16y (void)
 
static void check_loopfilter_8uv (void)
 
static void check_loopfilter_simple (void)
 
void checkasm_check_vp8dsp (void)
 

Macro Definition Documentation

◆ PIXEL_STRIDE

#define PIXEL_STRIDE   16

Definition at line 31 of file vp8dsp.c.

◆ randomize_buffers [1/3]

#define randomize_buffers (   src,
  dst,
  stride,
  coef 
)
Value:
do { \
int x, y; \
for (y = 0; y < 4; y++) { \
AV_WN32A((src) + y * (stride), rnd()); \
AV_WN32A((dst) + y * (stride), rnd()); \
for (x = 0; x < 4; x++) \
(coef)[y * 4 + x] = (src)[y * (stride) + x] - \
(dst)[y * (stride) + x]; \
} \
} while (0)
int stride
Definition: mace.c:144
#define src
Definition: vp8dsp.c:254
#define rnd()
Definition: checkasm.h:65

Definition at line 376 of file vp8dsp.c.

Referenced by check_idct(), check_idct_dc4(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), and check_mc().

◆ SRC_BUF_STRIDE

#define SRC_BUF_STRIDE   32

Definition at line 249 of file vp8dsp.c.

Referenced by check_mc().

◆ SRC_BUF_SIZE

#define SRC_BUF_SIZE   (((size << (size < 16)) + 5) * SRC_BUF_STRIDE)

Definition at line 250 of file vp8dsp.c.

◆ src

#define src   (buf + 2 * SRC_BUF_STRIDE + 2 + 1)

Definition at line 254 of file vp8dsp.c.

Referenced by apply_dependent_coupling(), apply_independent_coupling(), apply_unsharp(), av_frame_move_ref(), av_image_copy_to_buffer(), av_memcpy_backptr(), av_opt_get_dict_val(), av_packet_move_ref(), avfilter_link(), avg_no_rnd_vc1_chroma_mc4_c(), bfi_decode_frame(), bmp_decode_frame(), bmp_encode_frame(), bswap16Y_c(), cavs_idct8_add_c(), check_idct(), check_idct_dc4(), check_luma_dc_wht(), check_mc(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_unweighted_pred(), check_weighted_pred(), checkasm_check_h264qpel(), cllc_decode_frame(), cmp_direct_inline(), cmp_inline(), compand_delay(), compand_nodelay(), copy(), copy_block(), copy_block16(), copy_block2(), copy_block4(), copy_block8(), copy_cell(), copy_output(), copy_processed_frame(), deblocking_filter_CTB(), decode(), decode_0(), decode_block(), decode_bmv_frame(), decode_frame(), decode_init(), decode_p_frame(), decode_residual_spectrum(), denoise_depth(), denoise_spatial(), dequantization_float(), dequantization_int(), do_swizzle(), doTest(), encode_frame(), encode_rgb48_10bit(), encode_slice(), extract_even(), extract_even2(), extract_odd2(), ff_convert_dither(), ff_draw_horiz_band(), ff_emulated_edge_mc(), ff_frame_thread_init(), ff_h2645_extract_rbsp(), ff_h264_add_pixels4(), ff_h264_add_pixels8(), ff_h264_draw_horiz_band(), ff_h264_handle_aggregated_packet(), ff_h264_ref_picture(), ff_imdct15_uninit(), ff_ivi_inverse_haar_4x4(), ff_ivi_inverse_haar_8x8(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_jpegls_decode_picture(), ff_mjpeg_find_marker(), ff_rtmp_packet_dump(), ff_vc1_interp_mc(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_chroma4(), ff_vc1_mc_4mv_luma(), ffmal_copy_frame(), ffv1_decode_frame(), filter_frame(), find_slice_quant(), flashsv2_prime(), flush_put_bits(), get_dct8x8_allowed(), get_slice_data(), guess_mv(), h263_handle_packet(), horizontal_frame_pack(), hpel_motion(), hq_decode_frame(), hqa_decode_frame(), hqx_decode_frame(), hScale16To15_c(), hScale16To19_c(), hyscale(), imdct15_half(), interleaveBytes(), intra_pred(), ivi_output_plane(), ivi_process_empty_tile(), lag_decode_zero_run_line(), load_input_picture(), long_term_synth(), luma_mc(), main(), mct_decode(), mimic_decode_update_thread_context(), mix(), mix_1_to_2_fltp_flt_c(), motion_compensation(), mov_open_dref(), mov_rewrite_dvd_sub_extradata(), mszh_decomp(), nppscale_scale(), omx_encode_frame(), output_plane(), paf_audio_decode(), palToRgbWrapper(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcx_encode_frame(), planar_rgb16_to_uv(), planar_rgb16_to_y(), png_get_interlaced_row(), png_put_interlaced_row(), pred16x16_dc(), pred16x16_horizontal(), pred16x16_left_dc(), pred16x16_plane(), pred16x16_top_dc(), pred16x16_vertical(), pred4x4_127_dc(), pred4x4_128_dc(), pred4x4_129_dc(), pred4x4_dc(), pred4x4_down_left(), pred4x4_down_right(), pred4x4_horizontal(), pred4x4_horizontal_down(), pred4x4_horizontal_up(), pred4x4_left_dc(), pred4x4_top_dc(), pred4x4_vertical(), pred4x4_vertical_left(), pred4x4_vertical_right(), pred8x16_mad_cow_dc_0l0(), pred8x16_mad_cow_dc_0lt(), pred8x16_mad_cow_dc_l00(), pred8x16_mad_cow_dc_l0t(), pred8x8_mad_cow_dc_0l0(), pred8x8_mad_cow_dc_0lt(), pred8x8_mad_cow_dc_l00(), pred8x8_mad_cow_dc_l0t(), pred_angular(), pred_angular_0(), pred_angular_1(), pred_angular_2(), pred_angular_3(), pred_dc(), pred_planar(), prefetch_motion(), prores_fdct(), ps_add_squares_c(), rac_init(), ref_from_h264pic(), reorder_pixels(), resample_linear(), resample_nearest(), resample_one(), restore_tqb_pixels(), rgb15to16(), rgb15to16_c(), rgb15to32(), rgb15tobgr24(), rgb16to15(), rgb16to15_c(), rgb16to32(), rgb16tobgr24(), rgb24_to_yuv420p(), rgb24to15(), rgb24to15_c(), rgb24to16(), rgb24to16_c(), rgb24tobgr15(), rgb24tobgr15_c(), rgb24tobgr16(), rgb24tobgr16_c(), rgb24tobgr24(), rgb24tobgr32(), rgb24tobgr32_c(), rgb24toyv12(), rgb32to15(), rgb32to15_c(), rgb32to16(), rgb32to16_c(), rgb32tobgr15(), rgb32tobgr15_c(), rgb32tobgr16(), rgb32tobgr16_c(), rgb32tobgr24(), rgb32tobgr24_c(), rle_uncompress(), run_postproc(), rv40_adaptive_loop_filter(), sao_band_filter(), sao_band_filter_0(), sao_band_filter_1(), sao_band_filter_2(), sao_filter_CTB(), seq_decode_op1(), seq_decode_op2(), seq_decode_op3(), seq_unpack_rle_block(), sgi_rle_encode(), shrink22(), shrink44(), shuffle_bytes_2103(), svq1_decode_frame(), svq1_encode_plane(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq1_skip_block(), svq3_mc_dir_part(), tget(), tgv_decode_inter(), tmv_decode_frame(), to_meta_with_crop(), transform_4x4_luma(), uyvytoyuv420(), uyvytoyuv422(), uyvytoyv12(), v410_decode_frame(), vaapi_map_frame(), vaapi_unmap_frame(), vble_decode_frame(), vc1_inv_trans_4x4_c(), vc1_inv_trans_4x8_c(), vc1_inv_trans_8x4_c(), vc1_inv_trans_8x8_c(), vc1_unescape_buffer(), verify_md5(), vertical_frame_pack(), vp56_mc(), vp6_filter_diag2(), vp7_fade_frame(), vp8_mc_luma(), vp8_release_frame(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), yuv2yuyv422_1(), yuv420_bgr32(), yuv420_rgb32(), yuy2toyv12(), yuyvtoyuv420(), yuyvtoyuv422(), zmbv_decode_intra(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().

◆ randomize_buffers [2/3]

#define randomize_buffers ( )
Value:
do { \
int k; \
for (k = 0; k < SRC_BUF_SIZE; k += 4) { \
AV_WN32A(buf + k, rnd()); \
} \
} while (0)
#define SRC_BUF_SIZE
Definition: vp8dsp.c:250
#define rnd()
Definition: checkasm.h:65

Definition at line 376 of file vp8dsp.c.

◆ setpx

#define setpx (   a,
  b,
 
)    buf[(a) + (b) * jstride] = av_clip_uint8(c)

Definition at line 328 of file vp8dsp.c.

Referenced by randomize_loopfilter_buffers().

◆ setdx

#define setdx (   a,
  b,
  c,
 
)    setpx(a, b, c - (d) + (rnd() % ((d) * 2 + 1)))

Definition at line 330 of file vp8dsp.c.

Referenced by randomize_loopfilter_buffers().

◆ setdx2

#define setdx2 (   a,
  b,
  o,
  c,
  d,
 
)    setpx(a, b, o = c + ((d) + (rnd() % (e))) * (c >= 128 ? -1 : 1))

Definition at line 332 of file vp8dsp.c.

Referenced by randomize_loopfilter_buffers().

◆ randomize_buffers [3/3]

#define randomize_buffers (   buf,
  lineoff,
  str,
  force_hev 
)    randomize_loopfilter_buffers(lineoff, str, dir, flim_E, flim_I, hev_thresh, buf, force_hev)

Definition at line 376 of file vp8dsp.c.

Function Documentation

◆ dct4x4()

static void dct4x4 ( int16_t *  coef)
static

Definition at line 45 of file vp8dsp.c.

Referenced by check_idct(), check_idct_dc4(), and check_luma_dc_wht().

◆ wht4x4()

static void wht4x4 ( int16_t *  coef)
static

Definition at line 70 of file vp8dsp.c.

Referenced by check_luma_dc_wht().

◆ check_idct()

static void check_idct ( void  )
static

Definition at line 111 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ check_idct_dc4()

static void check_idct_dc4 ( void  )
static

Definition at line 156 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ check_luma_dc_wht()

static void check_luma_dc_wht ( void  )
static

Definition at line 199 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ check_mc()

static void check_mc ( void  )
static

Definition at line 265 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ randomize_loopfilter_buffers()

static void randomize_loopfilter_buffers ( int  lineoff,
int  str,
int  dir,
int  flim_E,
int  flim_I,
int  hev_thresh,
uint8_t buf,
int  force_hev 
)
static

Definition at line 334 of file vp8dsp.c.

◆ fill_loopfilter_buffers()

static void fill_loopfilter_buffers ( uint8_t buf,
ptrdiff_t  stride,
int  w,
int  h 
)
static

Definition at line 368 of file vp8dsp.c.

Referenced by check_loopfilter_16y(), check_loopfilter_8uv(), and check_loopfilter_simple().

◆ check_loopfilter_16y()

static void check_loopfilter_16y ( void  )
static

Definition at line 379 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ check_loopfilter_8uv()

static void check_loopfilter_8uv ( void  )
static

Definition at line 423 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ check_loopfilter_simple()

static void check_loopfilter_simple ( void  )
static

Definition at line 476 of file vp8dsp.c.

Referenced by checkasm_check_vp8dsp().

◆ checkasm_check_vp8dsp()

void checkasm_check_vp8dsp ( void  )

Definition at line 507 of file vp8dsp.c.