FFmpeg  4.3
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)

Definition at line 376 of file vp8dsp.c.

◆ SRC_BUF_STRIDE

#define SRC_BUF_STRIDE   32

Definition at line 249 of file vp8dsp.c.

◆ 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)
Examples
filter_audio.c.

Definition at line 254 of file vp8dsp.c.

◆ 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)

Definition at line 376 of file vp8dsp.c.

◆ setpx

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

Definition at line 328 of file vp8dsp.c.

◆ setdx

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

Definition at line 330 of file vp8dsp.c.

◆ 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.

◆ 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(), check_idct_multiple(), 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.

stride
int stride
Definition: mace.c:144
x
FFmpeg Automated Testing Environment ************************************Introduction Using FATE from your FFmpeg source directory Submitting the results to the FFmpeg result aggregation server Uploading new samples to the fate suite FATE makefile targets and variables Makefile targets Makefile variables Examples Introduction **************FATE is an extended regression suite on the client side and a means for results aggregation and presentation on the server side The first part of this document explains how you can use FATE from your FFmpeg source directory to test your ffmpeg binary The second part describes how you can run FATE to submit the results to FFmpeg’s FATE server In any way you can have a look at the publicly viewable FATE results by visiting this as it can be seen if some test on some platform broke with their recent contribution This usually happens on the platforms the developers could not test on The second part of this document describes how you can run FATE to submit your results to FFmpeg’s FATE server If you want to submit your results be sure to check that your combination of OS and compiler is not already listed on the above mentioned website In the third part you can find a comprehensive listing of FATE makefile targets and variables Using FATE from your FFmpeg source directory **********************************************If you want to run FATE on your machine you need to have the samples in place You can get the samples via the build target fate rsync Use this command from the top level source this will cause FATE to fail NOTE To use a custom wrapper to run the pass ‘ target exec’ to ‘configure’ or set the TARGET_EXEC Make variable Submitting the results to the FFmpeg result aggregation server ****************************************************************To submit your results to the server you should run fate through the shell script ‘tests fate sh’ from the FFmpeg sources This script needs to be invoked with a configuration file as its first argument tests fate sh path to fate_config A configuration file template with comments describing the individual configuration variables can be found at ‘doc fate_config sh template’ Create a configuration that suits your based on the configuration template The ‘slot’ configuration variable can be any string that is not yet but it is suggested that you name it adhering to the following pattern ‘ARCH OS COMPILER COMPILER VERSION’ The configuration file itself will be sourced in a shell therefore all shell features may be used This enables you to setup the environment as you need it for your build For your first test runs the ‘fate_recv’ variable should be empty or commented out This will run everything as normal except that it will omit the submission of the results to the server The following files should be present in $workdir as specified in the configuration it may help to try out the ‘ssh’ command with one or more ‘ v’ options You should get detailed output concerning your SSH configuration and the authentication process The only thing left is to automate the execution of the fate sh script and the synchronisation of the samples directory Uploading new samples to the fate suite *****************************************If you need a sample uploaded send a mail to samples request This is for developers who have an account on the fate suite server If you upload new please make sure they are as small as space on each network bandwidth and so on benefit from smaller test cases Also keep in mind older checkouts use existing sample that means in practice generally do not remove or overwrite files as it likely would break older checkouts or releases Also all needed samples for a commit should be ideally before the push If you need an account for frequently uploading samples or you wish to help others by doing that send a mail to ffmpeg devel rsync vauL Duo x
Definition: fate.txt:150
rnd
#define rnd()
Definition: checkasm.h:107
src
#define src
Definition: vp8dsp.c:254
SRC_BUF_SIZE
#define SRC_BUF_SIZE
Definition: vp8dsp.c:250