Go to the documentation of this file.
37 uint64_t accu = 0,
round;
38 uint64_t accu0 = 0, accu1 = 0, accu2 = 0, accu3 = 0;
43 for (
i = 0;
i < n;
i += 2) {
44 accu0 += (int64_t)
x[
i + 0][0] *
x[
i + 0][0];
45 accu1 += (int64_t)
x[
i + 0][1] *
x[
i + 0][1];
46 accu2 += (int64_t)
x[
i + 1][0] *
x[
i + 1][0];
47 accu3 += (int64_t)
x[
i + 1][1] *
x[
i + 1][1];
48 if ((accu0|accu1|accu2|accu3) > UINT64_MAX - INT32_MIN*(int64_t)INT32_MIN ||
i+2>=n) {
53 while ((accu0|accu1|accu2|accu3) > (UINT64_MAX - accu) >> 2) {
61 accu += accu0 + accu1 + accu2 + accu3;
62 accu0 = accu1 = accu2 = accu3 = 0;
71 while (
u < 0x80000000U) {
78 round = 1ULL << (nz-1);
79 u = ((accu +
round) >> nz);
89 for (
i = 1;
i < 64;
i += 2)
98 for (k = 1; k < 32; k++) {
99 z[64+2*k ] = -z[64 - k];
100 z[64+2*k+1] = z[ k + 1];
107 for (k = 0; k < 32; k++) {
116 for (
i = 0;
i < 32;
i++) {
117 v[
i] = (
src[63 - 2*
i ] + 0x10) >> 5;
118 v[63 -
i] = (-
src[63 - 2*
i - 1] + 0x10) >> 5;
126 int i = (
int)(accu >> 32);
131 while (
FFABS(
i) < 0x40000000) {
140 mant = (mant + 0x40LL)>>7;
149 int64_t real_sum, imag_sum;
150 int64_t accu_re = 0, accu_im = 0;
153 for (
i = 1;
i < 38;
i++) {
154 accu_re += (uint64_t)
x[
i][0] *
x[
i+lag][0];
155 accu_re += (uint64_t)
x[
i][1] *
x[
i+lag][1];
156 accu_im += (uint64_t)
x[
i][0] *
x[
i+lag][1];
157 accu_im -= (uint64_t)
x[
i][1] *
x[
i+lag][0];
163 accu_re += (uint64_t)
x[ 0][0] *
x[lag][0];
164 accu_re += (uint64_t)
x[ 0][1] *
x[lag][1];
165 accu_im += (uint64_t)
x[ 0][0] *
x[lag][1];
166 accu_im -= (uint64_t)
x[ 0][1] *
x[lag][0];
174 accu_re += (uint64_t)
x[38][0] *
x[39][0];
175 accu_re += (uint64_t)
x[38][1] *
x[39][1];
176 accu_im += (uint64_t)
x[38][0] *
x[39][1];
177 accu_im -= (uint64_t)
x[38][1] *
x[39][0];
183 for (
i = 1;
i < 38;
i++) {
184 accu_re += (uint64_t)
x[
i][0] *
x[
i][0];
185 accu_re += (uint64_t)
x[
i][1] *
x[
i][1];
188 accu_re += (uint64_t)
x[ 0][0] *
x[ 0][0];
189 accu_re += (uint64_t)
x[ 0][1] *
x[ 0][1];
194 accu_re += (uint64_t)
x[38][0] *
x[38][0];
195 accu_re += (uint64_t)
x[38][1] *
x[38][1];
209 const int alpha0[2],
const int alpha1[2],
210 int bw,
int start,
int end)
216 accu = (int64_t)alpha0[0] * bw;
217 alpha[2] = (
int)((accu + 0x40000000) >> 31);
218 accu = (int64_t)alpha0[1] * bw;
219 alpha[3] = (
int)((accu + 0x40000000) >> 31);
220 accu = (int64_t)bw * bw;
221 bw = (
int)((accu + 0x40000000) >> 31);
222 accu = (int64_t)alpha1[0] * bw;
223 alpha[0] = (
int)((accu + 0x40000000) >> 31);
224 accu = (int64_t)alpha1[1] * bw;
225 alpha[1] = (
int)((accu + 0x40000000) >> 31);
227 for (
i = start;
i <
end;
i++) {
228 accu = (int64_t)X_low[
i][0] * 0x20000000;
229 accu += (int64_t)X_low[
i - 2][0] *
alpha[0];
230 accu -= (int64_t)X_low[
i - 2][1] *
alpha[1];
231 accu += (int64_t)X_low[
i - 1][0] *
alpha[2];
232 accu -= (int64_t)X_low[
i - 1][1] *
alpha[3];
233 X_high[
i][0] = (
int)((accu + 0x10000000) >> 29);
235 accu = (int64_t)X_low[
i][1] * 0x20000000;
236 accu += (int64_t)X_low[
i - 2][1] *
alpha[0];
237 accu += (int64_t)X_low[
i - 2][0] *
alpha[1];
238 accu += (int64_t)X_low[
i - 1][1] *
alpha[2];
239 accu += (int64_t)X_low[
i - 1][0] *
alpha[3];
240 X_high[
i][1] = (
int)((accu + 0x10000000) >> 29);
245 const SoftFloat *g_filt,
int m_max, intptr_t ixh)
250 for (m = 0; m < m_max; m++) {
251 if (22 - g_filt[m].
exp < 61) {
252 int64_t
r = 1LL << (22-g_filt[m].
exp);
253 accu = (int64_t)X_high[m][ixh][0] * ((g_filt[m].mant + 0x40)>>7);
254 Y[m][0] = (
int)((accu +
r) >> (23-g_filt[m].
exp));
256 accu = (int64_t)X_high[m][ixh][1] * ((g_filt[m].mant + 0x40)>>7);
257 Y[m][1] = (
int)((accu +
r) >> (23-g_filt[m].
exp));
272 for (m = 0; m < m_max; m++) {
273 unsigned y0 =
Y[m][0];
274 unsigned y1 =
Y[m][1];
283 }
else if (
shift < 30) {
296 }
else if (
shift < 30) {
299 accu = (int64_t)q_filt[m].mant * ff_sbr_noise_table_fixed[
noise][0];
300 tmp = (
int)((accu + 0x40000000) >> 31);
303 accu = (int64_t)q_filt[m].mant * ff_sbr_noise_table_fixed[
noise][1];
304 tmp = (
int)((accu + 0x40000000) >> 31);
310 phi_sign1 = -phi_sign1;
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
#define u(width, name, range_min, range_max)
static void sbr_hf_g_filt_c(int(*Y)[2], const int(*X_high)[40][2], const SoftFloat *g_filt, int m_max, intptr_t ixh)
static av_cold int end(AVCodecContext *avctx)
static void sbr_hf_gen_c(int(*X_high)[2], const int(*X_low)[2], const int alpha0[2], const int alpha1[2], int bw, int start, int end)
static void sbr_autocorrelate_c(const int x[40][2], SoftFloat phi[3][2][2])
static av_always_inline SoftFloat autocorr_calc(int64_t accu)
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
static av_always_inline void autocorrelate(const int x[40][2], SoftFloat phi[3][2][2], int lag)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void sbr_qmf_post_shuffle_c(int W[32][2], const int *z)
static SoftFloat sbr_sum_square_c(int(*x)[2], int n)
static av_always_inline int sbr_hf_apply_noise(int(*Y)[2], const SoftFloat *s_m, const SoftFloat *q_filt, int noise, int phi_sign0, int phi_sign1, int m_max)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static void sbr_neg_odd_64_c(int *x)
#define i(width, name, range_min, range_max)
static av_always_inline av_const double round(double x)
static av_const SoftFloat av_int2sf(int v, int frac_bits)
Converts a mantisse and exponent to a SoftFloat.
static void sbr_qmf_pre_shuffle_c(int *z)
static int noise(AVBSFContext *ctx, AVPacket *pkt)
static void sbr_qmf_deint_neg_c(int *v, const int *src)
static int shift(int a, int b)
static const int16_t alpha[]