Go to the documentation of this file.
32 #define INTERPOLATE_METHOD(name) \
33 static uint8_t name(float x, float y, const uint8_t *src, \
34 int width, int height, int stride, uint8_t def)
36 #define PIXEL(img, x, y, w, h, stride, def) \
37 ((x) < 0 || (y) < 0) ? (def) : \
38 (((x) >= (w) || (y) >= (h)) ? (def) : \
39 img[(x) + (y) * (stride)])
54 int x_c, x_f, y_c, y_f;
71 return (v1*(
x - x_f)*(y - y_f) + v2*((
x - x_f)*(y_c - y)) +
72 v3*(x_c -
x)*(y - y_f) + v4*((x_c -
x)*(y_c - y)));
81 int x_c, x_f, y_c, y_f;
98 f1 = 1 - sqrt((x_c -
x) * (y_c - y));
99 f2 = 1 - sqrt((x_c -
x) * (y - y_f));
100 f3 = 1 - sqrt((
x - x_f) * (y_c - y));
101 f4 = 1 - sqrt((
x - x_f) * (y - y_f));
102 return (v1 * f1 + v2 * f2 + v3 * f3 + v4 * f4) / (f1 + f2 + f3 + f4);
114 matrix[0] = scale_x * cos(angle);
115 matrix[1] = -sin(angle);
117 matrix[3] = -matrix[1];
118 matrix[4] = scale_y * cos(angle);
128 for (
i = 0;
i < 9;
i++)
135 for (
i = 0;
i < 9;
i++)
142 for (
i = 0;
i < 9;
i++)
147 int src_stride,
int dst_stride,
159 func = interpolate_nearest;
162 func = interpolate_bilinear;
165 func = interpolate_biquadratic;
171 for (y = 0; y <
height; y++) {
173 x_s =
x * matrix[0] + y * matrix[1] + matrix[2];
174 y_s =
x * matrix[3] + y * matrix[4] + matrix[5];
178 def =
src[y * src_stride +
x];
181 y_s = av_clipf(y_s, 0,
height - 1);
182 x_s = av_clipf(x_s, 0,
width - 1);
183 def =
src[(
int)y_s * src_stride + (
int)x_s];
191 def =
src[(
int)y_s * src_stride + (
int)x_s];
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
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
and forward the result(frame or status change) to the corresponding input. If nothing is possible
static av_always_inline av_const int avpriv_mirror(int x, int w)
static void interpolate(float *out, float v1, float v2, int size)
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code.
#define i(width, name, range_min, range_max)