FFmpeg
Macros | Functions
cavsdsp.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/cavsdsp.h"
#include "libavcodec/idctdsp.h"
#include "constants.h"
#include "fpel.h"
#include "idctdsp.h"
#include "config.h"

Go to the source code of this file.

Macros

#define DSPFUNC(PFX, IDX, NUM, EXT)
 

Functions

static av_cold void cavsdsp_init_mmx (CAVSDSPContext *c, AVCodecContext *avctx)
 
av_cold void ff_cavsdsp_init_x86 (CAVSDSPContext *c, AVCodecContext *avctx)
 

Macro Definition Documentation

◆ DSPFUNC

#define DSPFUNC (   PFX,
  IDX,
  NUM,
  EXT 
)
Value:
c->PFX ## _cavs_qpel_pixels_tab[IDX][ 2] = PFX ## _cavs_qpel ## NUM ## _mc20_ ## EXT; \
c->PFX ## _cavs_qpel_pixels_tab[IDX][ 4] = PFX ## _cavs_qpel ## NUM ## _mc01_ ## EXT; \
c->PFX ## _cavs_qpel_pixels_tab[IDX][ 8] = PFX ## _cavs_qpel ## NUM ## _mc02_ ## EXT; \
c->PFX ## _cavs_qpel_pixels_tab[IDX][12] = PFX ## _cavs_qpel ## NUM ## _mc03_ ## EXT; \

Definition at line 395 of file cavsdsp.c.

Function Documentation

◆ cavsdsp_init_mmx()

static av_cold void cavsdsp_init_mmx ( CAVSDSPContext c,
AVCodecContext avctx 
)
static

Definition at line 381 of file cavsdsp.c.

Referenced by ff_cavsdsp_init_x86().

◆ ff_cavsdsp_init_x86()

av_cold void ff_cavsdsp_init_x86 ( CAVSDSPContext c,
AVCodecContext avctx 
)

Definition at line 430 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

c
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