FFmpeg
Loading...
Searching...
No Matches
h264dsp.c File Reference

H.264 / AVC / MPEG-4 part10 DSP functions. More...

#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "h264dsp.h"
#include "h264idct.h"
#include "startcode.h"
#include "libavutil/common.h"
#include "h264dsp_template.c"
#include "h264addpx_template.c"

Go to the source code of this file.

Macros

#define BIT_DEPTH   8
 
#define BIT_DEPTH   9
 
#define BIT_DEPTH   10
 
#define BIT_DEPTH   12
 
#define BIT_DEPTH   14
 
#define BIT_DEPTH   8
 
#define BIT_DEPTH   16
 
#define FUNC(a, depth)
 
#define SET_PIXSIZE_FUNCS(depth)
 
#define H264_DSP(depth)
 

Functions

av_cold void ff_h264dsp_init (H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
 

Detailed Description

H.264 / AVC / MPEG-4 part10 DSP functions.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Definition in file h264dsp.c.

Macro Definition Documentation

◆ BIT_DEPTH [1/7]

#define BIT_DEPTH   8

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [2/7]

#define BIT_DEPTH   9

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [3/7]

#define BIT_DEPTH   10

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [4/7]

#define BIT_DEPTH   12

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [5/7]

#define BIT_DEPTH   14

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [6/7]

#define BIT_DEPTH   8

Definition at line 38 of file h264dsp.c.

◆ BIT_DEPTH [7/7]

#define BIT_DEPTH   16

Definition at line 38 of file h264dsp.c.

◆ FUNC

#define FUNC ( a,
depth )
Value:
a ## _ ## depth ## _c
#define _
int a

◆ SET_PIXSIZE_FUNCS

#define SET_PIXSIZE_FUNCS ( depth)
Value:
c->luma_dc_dequant_idct = FUNC(ff_h264_luma_dc_dequant_idct, depth);\
if (chroma_format_idc <= 1)\
c->chroma_dc_dequant_idct = FUNC(ff_h264_chroma_dc_dequant_idct, depth);\
else\
c->chroma_dc_dequant_idct = FUNC(ff_h264_chroma422_dc_dequant_idct, depth);\
c->add_pixels4_clear = FUNC(ff_h264_add_pixels4, depth);\
c->add_pixels8_clear = FUNC(ff_h264_add_pixels8, depth)
#define FUNC(a)
static void FUNCC ff_h264_add_pixels4(uint8_t *_dst, int16_t *_src, ptrdiff_t stride)
static void FUNCC ff_h264_add_pixels8(uint8_t *_dst, int16_t *_src, ptrdiff_t stride)
static double c[64]

Referenced by ff_h264dsp_init().

◆ H264_DSP

#define H264_DSP ( depth)

Referenced by ff_h264dsp_init().

Function Documentation

◆ ff_h264dsp_init()

av_cold void ff_h264dsp_init ( H264DSPContext * c,
const int bit_depth,
const int chroma_format_idc )