FFmpeg  4.3
Macros | Functions | Variables
vf_colorspace.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavfilter/colorspacedsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define W   64
 
#define H   64
 
#define randomize_buffers()
 
#define randomize_buffers()
 

Functions

static void check_yuv2yuv (void)
 
static void check_yuv2rgb (void)
 
static void check_rgb2yuv (void)
 
static void check_multiply3x3 (void)
 
void checkasm_check_colorspace (void)
 

Variables

static const char * format_string []
 
static const unsigned bpp_mask [] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }
 

Macro Definition Documentation

◆ W

#define W   64

Definition at line 28 of file vf_colorspace.c.

◆ H

#define H   64

Definition at line 29 of file vf_colorspace.c.

◆ randomize_buffers [1/2]

#define randomize_buffers ( )
Value:
do { \
unsigned mask = bpp_mask[idepth]; \
int n, m; \
int bpp = 1 + (!!idepth); \
int buf_size = W * H * bpp; \
for (m = 0; m < 3; m++) { \
int ss = m ? ss_w + ss_h : 0; \
int plane_sz = buf_size >> ss; \
for (n = 0; n < plane_sz; n += 4) { \
unsigned r = rnd() & mask; \
AV_WN32A(&src[m][n], r); \
} \
} \
} while (0)

Definition at line 184 of file vf_colorspace.c.

◆ randomize_buffers [2/2]

#define randomize_buffers ( )
Value:
do { \
int y, x, p; \
for (p = 0; p < 3; p++) { \
for (y = 0; y < H; y++) { \
for (x = 0; x < W; x++) { \
int r = rnd() & 0x7fff; \
r -= (32768 - 28672) >> 1; \
src[p][y * W + x] = r; \
} \
} \
} \
} while (0)

Definition at line 184 of file vf_colorspace.c.

Function Documentation

◆ check_yuv2yuv()

static void check_yuv2yuv ( void  )
static

Definition at line 53 of file vf_colorspace.c.

Referenced by checkasm_check_colorspace().

◆ check_yuv2rgb()

static void check_yuv2rgb ( void  )
static

Definition at line 121 of file vf_colorspace.c.

Referenced by checkasm_check_colorspace().

◆ check_rgb2yuv()

static void check_rgb2yuv ( void  )
static

Definition at line 198 of file vf_colorspace.c.

Referenced by checkasm_check_colorspace().

◆ check_multiply3x3()

static void check_multiply3x3 ( void  )
static

Definition at line 262 of file vf_colorspace.c.

Referenced by checkasm_check_colorspace().

◆ checkasm_check_colorspace()

void checkasm_check_colorspace ( void  )

Definition at line 308 of file vf_colorspace.c.

Variable Documentation

◆ format_string

const char* format_string[]
static
Initial value:
= {
"444", "422", "420"
}

Definition at line 47 of file vf_colorspace.c.

◆ bpp_mask

const unsigned bpp_mask[] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }
static

Definition at line 51 of file vf_colorspace.c.

W
#define W
Definition: vf_colorspace.c:28
H
#define H
Definition: vf_colorspace.c:29
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
ss
#define ss(width, name, subs,...)
Definition: cbs_vp9.c:261
rnd
#define rnd()
Definition: checkasm.h:107
mask
static const uint16_t mask[17]
Definition: lzw.c:38
src
#define src
Definition: vp8dsp.c:254
r
#define r
Definition: input.c:40
bpp_mask
static const unsigned bpp_mask[]
Definition: vf_colorspace.c:51
thread_data::p
int p
Definition: vf_nlmeans.c:340