FFmpeg
Macros | Functions
h264chroma.c File Reference
#include "config.h"
#include "libavutil/attributes.h"
#include "h264chroma.h"
#include "h264chroma_template.c"

Go to the source code of this file.

Macros

#define BIT_DEPTH   8
 
#define BIT_DEPTH   16
 
#define SET_CHROMA(depth)
 

Functions

av_cold void ff_h264chroma_init (H264ChromaContext *c, int bit_depth)
 

Macro Definition Documentation

◆ BIT_DEPTH [1/2]

#define BIT_DEPTH   8

Definition at line 27 of file h264chroma.c.

◆ BIT_DEPTH [2/2]

#define BIT_DEPTH   16

Definition at line 27 of file h264chroma.c.

◆ SET_CHROMA

#define SET_CHROMA (   depth)
Value:
c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_ ## depth ## _c; \
c->put_h264_chroma_pixels_tab[1] = put_h264_chroma_mc4_ ## depth ## _c; \
c->put_h264_chroma_pixels_tab[2] = put_h264_chroma_mc2_ ## depth ## _c; \
c->put_h264_chroma_pixels_tab[3] = put_h264_chroma_mc1_ ## depth ## _c; \
c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_ ## depth ## _c; \
c->avg_h264_chroma_pixels_tab[1] = avg_h264_chroma_mc4_ ## depth ## _c; \
c->avg_h264_chroma_pixels_tab[2] = avg_h264_chroma_mc2_ ## depth ## _c; \
c->avg_h264_chroma_pixels_tab[3] = avg_h264_chroma_mc1_ ## depth ## _c; \

Definition at line 31 of file h264chroma.c.

Function Documentation

◆ ff_h264chroma_init()

av_cold void ff_h264chroma_init ( H264ChromaContext c,
int  bit_depth 
)
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