Go to the documentation of this file.
1 /*
2  *
3  * This file is part of FFmpeg.
4  *
5  * FFmpeg is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * FFmpeg is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with FFmpeg; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
20 #include "config.h"
22 #include "libavutil/attributes.h"
23 #include "libavutil/cpu.h"
24 #include "libavutil/x86/cpu.h"
27 void ff_filter_3x3_sse4(uint8_t *dst, int width,
28  float rdiv, float bias, const int *const matrix,
29  const uint8_t *c[], int peak, int radius,
30  int dstride, int stride, int size);
33 {
34 #if ARCH_X86_64
35  int i;
37  for (i = 0; i < 4; i++) {
38  if (s->mode[i] == MATRIX_SQUARE) {
39  if (s->matrix_length[i] == 9 && s->depth == 8) {
40  if (EXTERNAL_SSE4(cpu_flags))
42  }
43  }
44  }
45 #endif
46 }
static atomic_int cpu_flags
Definition: cpu.c:50
Macro definitions for various function/variable attributes.
#define EXTERNAL_SSE4(flags)
Definition: cpu.h:68
#define av_cold
Definition: attributes.h:88
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
ptrdiff_t size
Definition: opengl_enc.c:100
#define width
void(* filter[4])(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size)
Definition: convolution.h:57
#define s(width, name)
Definition: cbs_vp9.c:257
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition: cpu.c:95
void ff_filter_3x3_sse4(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size)
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:104
av_cold void ff_convolution_init_x86(ConvolutionContext *s)
int i
Definition: input.c:407