FFmpeg
Macros | Functions | Variables
h264pred_template.c File Reference
#include "libavutil/intreadwrite.h"
#include "mathops.h"
#include "bit_depth_template.c"

Go to the source code of this file.

Macros

#define LOAD_TOP_RIGHT_EDGE
 
#define LOAD_DOWN_LEFT_EDGE
 
#define LOAD_LEFT_EDGE
 
#define LOAD_TOP_EDGE
 
#define PREDICT_16x16_DC(v)
 
#define PRED16x16_X(n, v)
 
#define PRED8x8_X(n, v)
 
#define SRC(x, y)   src[(x)+(y)*stride]
 
#define PL(y)   const int l##y = (SRC(-1,y-1) + 2*SRC(-1,y) + SRC(-1,y+1) + 2) >> 2;
 
#define PREDICT_8x8_LOAD_LEFT
 
#define PT(x)   const int t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;
 
#define PREDICT_8x8_LOAD_TOP
 
#define PTR(x)   t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;
 
#define PREDICT_8x8_LOAD_TOPRIGHT
 
#define PREDICT_8x8_LOAD_TOPLEFT   const int lt = (SRC(-1,0) + 2*SRC(-1,-1) + SRC(0,-1) + 2) >> 2
 
#define PREDICT_8x8_DC(v)
 
#define ROW(y)
 

Functions

static void FUNCC() pred4x4_vertical (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_horizontal (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_left_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_top_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_128_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_127_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_129_dc (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_down_right (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_down_left (uint8_t *_src, const uint8_t *_topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_vertical_right (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_vertical_left (uint8_t *_src, const uint8_t *_topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_horizontal_up (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_horizontal_down (uint8_t *_src, const uint8_t *topright, ptrdiff_t _stride)
 
static void FUNCC() pred16x16_vertical (uint8_t *_src, ptrdiff_t _stride)
 
static void FUNCC() pred16x16_horizontal (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred16x16_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred16x16_left_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred16x16_top_dc (uint8_t *_src, ptrdiff_t stride)
 
 PRED16x16_X (127,(1<<(BIT_DEPTH-1)) -1) PRED16x16_X(128
 
 for (j=16;j >0;--j)
 
static void FUNCC() pred16x16_plane (uint8_t *src, ptrdiff_t stride)
 
static void FUNCC() pred8x8_vertical (uint8_t *_src, ptrdiff_t _stride)
 
static void FUNCC() pred8x16_vertical (uint8_t *_src, ptrdiff_t _stride)
 
static void FUNCC() pred8x8_horizontal (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred8x16_horizontal (uint8_t *_src, ptrdiff_t stride)
 
 PRED8x8_X (127,(1<<(BIT_DEPTH-1)) -1) PRED8x8_X(128
 
 for (i=0;i< 4;i++)
 
static void FUNCC() pred8x16_left_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred8x8_top_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred8x16_top_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred8x8_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNCC() pred8x16_dc (uint8_t *_src, ptrdiff_t stride)
 
static void FUNC() pred8x8_mad_cow_dc_l0t (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x16_mad_cow_dc_l0t (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x8_mad_cow_dc_0lt (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x16_mad_cow_dc_0lt (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x8_mad_cow_dc_l00 (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x16_mad_cow_dc_l00 (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x8_mad_cow_dc_0l0 (uint8_t *src, ptrdiff_t stride)
 
static void FUNC() pred8x16_mad_cow_dc_0l0 (uint8_t *src, ptrdiff_t stride)
 
static void FUNCC() pred8x8_plane (uint8_t *_src, ptrdiff_t _stride)
 
static void FUNCC() pred8x16_plane (uint8_t *_src, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_128_dc (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_left_dc (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_top_dc (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_dc (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_horizontal (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_vertical (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_down_left (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_down_right (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_vertical_right (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_horizontal_down (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_vertical_left (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_horizontal_up (uint8_t *_src, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_vertical_filter_add (uint8_t *_src, int16_t *_block, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred8x8l_horizontal_filter_add (uint8_t *_src, int16_t *_block, int has_topleft, int has_topright, ptrdiff_t _stride)
 
static void FUNCC() pred4x4_vertical_add (uint8_t *_pix, int16_t *_block, ptrdiff_t stride)
 
static void FUNCC() pred4x4_horizontal_add (uint8_t *_pix, int16_t *_block, ptrdiff_t stride)
 
static void FUNCC() pred8x8l_vertical_add (uint8_t *_pix, int16_t *_block, ptrdiff_t stride)
 
static void FUNCC() pred8x8l_horizontal_add (uint8_t *_pix, int16_t *_block, ptrdiff_t stride)
 
static void FUNCC() pred16x16_vertical_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 
static void FUNCC() pred16x16_horizontal_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 
static void FUNCC() pred8x8_vertical_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 
static void FUNCC() pred8x16_vertical_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 
static void FUNCC() pred8x8_horizontal_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 
static void FUNCC() pred8x16_horizontal_add (uint8_t *pix, const int *block_offset, int16_t *block, ptrdiff_t stride)
 

Variables

<<(BIT_DEPTH-1))+0) PRED16x16_X(129,(1<<(BIT_DEPTH-1))+1) static inline void FUNCC(pred16x16_plane_compat)(uint8_t *_src, ptrdiff_t _stride, const int svq3, const int rv40) { int i, j, k;int a;INIT_CLIP pixel *src=(pixel *) _src;int stride=_stride >>(sizeof(pixel) -1);const pixel *const src0=src+7-stride;const pixel *src1=src+8 *stride-1;const pixel *src2=src1-2 *stride;int H=src0[1] - src0[-1];int V=src1[0] - src2[0];for(k=2;k<=8;++k) { src1+=stride;src2 -=stride;H+=k *(src0[k] - src0[-k]);V+=k *(src1[0] - src2[0]);} if(svq3){ H=(5 *(H/4))/16;V=(5 *(V/4))/16;i=H;H=V;V=i;}else if(rv40){ H=(H+(H >> V = ( V + (V>>2) ) >> 4
 
 else
 
 a = 16*(src1[0] + src2[16] + 1) - 7*(V+H)
 
<<(BIT_DEPTH-1))+0) PRED8x8_X(129,(1<<(BIT_DEPTH-1))+1) static void FUNCC(pred8x16_128_dc)(uint8_t *_src, ptrdiff_t stride) { FUNCC(pred8x8_128_dc)(_src, stride);FUNCC(pred8x8_128_dc)(_src+8 *stride, stride);} static void FUNCC(pred8x8_left_dc)(uint8_t *_src, ptrdiff_t stride) { int i;int dc0, dc2;pixel4 dc0splat, dc2splat;pixel *src=(pixel *) _src;stride >>=sizeof(pixel) -1;dc0=dc2=0;for(i=0;i< 4;i++){ dc0+=src[-1+i *stride];dc2+=src[-1+(i+4) *stride];} dc0splat=PIXEL_SPLAT_X4((dc0+2)>> dc2splat = PIXEL_SPLAT_X4((dc2 + 2)>>2)
 

Detailed Description

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

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

Definition in file h264pred_template.c.

Macro Definition Documentation

◆ LOAD_TOP_RIGHT_EDGE

#define LOAD_TOP_RIGHT_EDGE
Value:
const unsigned av_unused t4 = topright[0];\
const unsigned av_unused t5 = topright[1];\
const unsigned av_unused t6 = topright[2];\
const unsigned av_unused t7 = topright[3];\

Definition at line 141 of file h264pred_template.c.

◆ LOAD_DOWN_LEFT_EDGE

#define LOAD_DOWN_LEFT_EDGE
Value:
const unsigned av_unused l4 = src[-1+4*stride];\
const unsigned av_unused l5 = src[-1+5*stride];\
const unsigned av_unused l6 = src[-1+6*stride];\
const unsigned av_unused l7 = src[-1+7*stride];\

Definition at line 147 of file h264pred_template.c.

◆ LOAD_LEFT_EDGE

#define LOAD_LEFT_EDGE
Value:
const unsigned av_unused l0 = src[-1+0*stride];\
const unsigned av_unused l1 = src[-1+1*stride];\
const unsigned av_unused l2 = src[-1+2*stride];\
const unsigned av_unused l3 = src[-1+3*stride];\

Definition at line 153 of file h264pred_template.c.

◆ LOAD_TOP_EDGE

#define LOAD_TOP_EDGE
Value:
const unsigned av_unused t0 = src[ 0-1*stride];\
const unsigned av_unused t1 = src[ 1-1*stride];\
const unsigned av_unused t2 = src[ 2-1*stride];\
const unsigned av_unused t3 = src[ 3-1*stride];\

Definition at line 159 of file h264pred_template.c.

◆ PREDICT_16x16_DC

#define PREDICT_16x16_DC (   v)
Value:
for(i=0; i<16; i++){\
AV_WN4PA(src+ 0, v);\
AV_WN4PA(src+ 4, v);\
AV_WN4PA(src+ 8, v);\
AV_WN4PA(src+12, v);\
src += stride;\
}

Definition at line 363 of file h264pred_template.c.

◆ PRED16x16_X

#define PRED16x16_X (   n,
 
)
Value:
static void FUNCC(pred16x16_##n##_dc)(uint8_t *_src, ptrdiff_t stride)\
{\
int i;\
pixel *src = (pixel*)_src;\
stride >>= sizeof(pixel)-1;\
PREDICT_16x16_DC(PIXEL_SPLAT_X4(v));\
}

Definition at line 421 of file h264pred_template.c.

◆ PRED8x8_X

#define PRED8x8_X (   n,
 
)
Value:
static void FUNCC(pred8x8_##n##_dc)(uint8_t *_src, ptrdiff_t stride)\
{\
int i;\
const pixel4 a = PIXEL_SPLAT_X4(v);\
pixel *src = (pixel*)_src;\
stride >>= sizeof(pixel)-1;\
for(i=0; i<8; i++){\
AV_WN4PA(((pixel4*)(src+i*stride))+0, a);\
AV_WN4PA(((pixel4*)(src+i*stride))+1, a);\
}\
}

Definition at line 541 of file h264pred_template.c.

◆ SRC

#define SRC (   x,
 
)    src[(x)+(y)*stride]

Definition at line 847 of file h264pred_template.c.

◆ PL

#define PL (   y)    const int l##y = (SRC(-1,y-1) + 2*SRC(-1,y) + SRC(-1,y+1) + 2) >> 2;

Definition at line 848 of file h264pred_template.c.

◆ PREDICT_8x8_LOAD_LEFT

#define PREDICT_8x8_LOAD_LEFT
Value:
const int l0 = ((has_topleft ? SRC(-1,-1) : SRC(-1,0)) \
+ 2*SRC(-1,0) + SRC(-1,1) + 2) >> 2; \
PL(1) PL(2) PL(3) PL(4) PL(5) PL(6) \
const int l7 av_unused = (SRC(-1,6) + 3*SRC(-1,7) + 2) >> 2

Definition at line 850 of file h264pred_template.c.

◆ PT

#define PT (   x)    const int t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;

Definition at line 856 of file h264pred_template.c.

◆ PREDICT_8x8_LOAD_TOP

#define PREDICT_8x8_LOAD_TOP
Value:
const int t0 = ((has_topleft ? SRC(-1,-1) : SRC(0,-1)) \
+ 2*SRC(0,-1) + SRC(1,-1) + 2) >> 2; \
PT(1) PT(2) PT(3) PT(4) PT(5) PT(6) \
const int t7 av_unused = ((has_topright ? SRC(8,-1) : SRC(7,-1)) \
+ 2*SRC(7,-1) + SRC(6,-1) + 2) >> 2

Definition at line 858 of file h264pred_template.c.

◆ PTR

#define PTR (   x)    t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;

Definition at line 865 of file h264pred_template.c.

◆ PREDICT_8x8_LOAD_TOPRIGHT

#define PREDICT_8x8_LOAD_TOPRIGHT
Value:
int t8, t9, t10, t11, t12, t13, t14, t15; \
if(has_topright) { \
PTR(8) PTR(9) PTR(10) PTR(11) PTR(12) PTR(13) PTR(14) \
t15 = (SRC(14,-1) + 3*SRC(15,-1) + 2) >> 2; \
} else t8=t9=t10=t11=t12=t13=t14=t15= SRC(7,-1);

Definition at line 867 of file h264pred_template.c.

◆ PREDICT_8x8_LOAD_TOPLEFT

#define PREDICT_8x8_LOAD_TOPLEFT   const int lt = (SRC(-1,0) + 2*SRC(-1,-1) + SRC(0,-1) + 2) >> 2

Definition at line 874 of file h264pred_template.c.

◆ PREDICT_8x8_DC

#define PREDICT_8x8_DC (   v)
Value:
int y; \
for( y = 0; y < 8; y++ ) { \
AV_WN4PA(((pixel4*)src)+0, v); \
AV_WN4PA(((pixel4*)src)+1, v); \
src += stride; \
}

Definition at line 877 of file h264pred_template.c.

◆ ROW

#define ROW (   y)
Value:
a = PIXEL_SPLAT_X4(l##y); \
AV_WN4PA(src+y*stride, a); \
AV_WN4PA(src+y*stride+4, a);

Function Documentation

◆ pred4x4_vertical()

static void FUNCC() pred4x4_vertical ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 34 of file h264pred_template.c.

◆ pred4x4_horizontal()

static void FUNCC() pred4x4_horizontal ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 47 of file h264pred_template.c.

◆ pred4x4_dc()

static void FUNCC() pred4x4_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 58 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_l0t(), and pred8x8_mad_cow_dc_l0t().

◆ pred4x4_left_dc()

static void FUNCC() pred4x4_left_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 73 of file h264pred_template.c.

◆ pred4x4_top_dc()

static void FUNCC() pred4x4_top_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 87 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0lt(), and pred8x8_mad_cow_dc_0lt().

◆ pred4x4_128_dc()

static void FUNCC() pred4x4_128_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

◆ pred4x4_127_dc()

static void FUNCC() pred4x4_127_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 114 of file h264pred_template.c.

◆ pred4x4_129_dc()

static void FUNCC() pred4x4_129_dc ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 127 of file h264pred_template.c.

◆ pred4x4_down_right()

static void FUNCC() pred4x4_down_right ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 165 of file h264pred_template.c.

◆ pred4x4_down_left()

static void FUNCC() pred4x4_down_left ( uint8_t *  _src,
const uint8_t *  _topright,
ptrdiff_t  _stride 
)
static

Definition at line 192 of file h264pred_template.c.

◆ pred4x4_vertical_right()

static void FUNCC() pred4x4_vertical_right ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 220 of file h264pred_template.c.

◆ pred4x4_vertical_left()

static void FUNCC() pred4x4_vertical_left ( uint8_t *  _src,
const uint8_t *  _topright,
ptrdiff_t  _stride 
)
static

Definition at line 248 of file h264pred_template.c.

◆ pred4x4_horizontal_up()

static void FUNCC() pred4x4_horizontal_up ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 276 of file h264pred_template.c.

◆ pred4x4_horizontal_down()

static void FUNCC() pred4x4_horizontal_down ( uint8_t *  _src,
const uint8_t *  topright,
ptrdiff_t  _stride 
)
static

Definition at line 301 of file h264pred_template.c.

◆ pred16x16_vertical()

static void FUNCC() pred16x16_vertical ( uint8_t *  _src,
ptrdiff_t  _stride 
)
static

Definition at line 329 of file h264pred_template.c.

◆ pred16x16_horizontal()

static void FUNCC() pred16x16_horizontal ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 347 of file h264pred_template.c.

◆ pred16x16_dc()

static void FUNCC() pred16x16_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 372 of file h264pred_template.c.

◆ pred16x16_left_dc()

static void FUNCC() pred16x16_left_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 391 of file h264pred_template.c.

◆ pred16x16_top_dc()

static void FUNCC() pred16x16_top_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 406 of file h264pred_template.c.

◆ PRED16x16_X()

PRED16x16_X ( 127  ,
(1<<(BIT_DEPTH-1)) -  1 
)

◆ for() [1/2]

for ( = 16; j,
0;--  j 
)
Examples
encode_audio.c, filter_audio.c, and muxing.c.

Definition at line 469 of file h264pred_template.c.

Referenced by aac_encode_frame(), ac3_decode_frame(), ac3_decode_transform_coeffs_ch(), activate(), add_frame_default(), addroi_filter_frame(), adpcm_decode_frame(), alloc_frame(), alloc_picture(), ape_decode_frame(), apng_do_inverse_blend(), apply_filter(), apply_window_and_mdct(), asf_read_header(), audio_read_packet(), av_hmac_final(), av_hmac_init(), av_image_fill_plane_sizes(), av_pix_fmt_count_planes(), avcodec_default_get_format(), avpriv_solve_lls(), bfi_decode_frame(), bidirectional_obmc(), bmv_aud_decode_frame(), build_table(), calc_masking(), calc_precision(), cdg_load_palette(), cfhd_decode(), cfhd_encode_close(), choose_rct_params(), chs_filter_band_data(), chs_parse_header(), cleanup_redundant_layouts(), clv_decode_frame(), cng_decode_frame(), colorcontrast_slice16(), colorcontrast_slice16p(), colorcorrect_slice16(), colorizey_slice16(), compute_frame_rms(), compute_frame_std_dev(), compute_stereo(), config_input(), config_input_ref(), config_output(), convert_coeffs(), copy_frame_default(), decode_block(), decode_element(), decode_fint(), decode_frame(), decode_frame_header(), decode_kfrm(), decode_mad1_24(), decode_mode(), decode_packet(), decode_raw_intra(), decode_residual_spectrum(), decode_rgbxi(), decode_tag(), decode_ybr10i(), decode_yry10i(), decompress_texture_thread(), decorrelate(), deint_vaapi_filter_frame(), do_identity(), do_psnr(), draw_axis_rgb(), draw_gradients_slice(), draw_gradients_slice16(), draw_legend(), draw_vtext(), drawtext(), dss_sp_update_state(), encode_frame(), encode_headers(), encode_init(), encode_mode(), encode_tile(), envelope_instant16(), envelope_peak16(), epic_jb_decode_tile(), evrc_decode_frame(), evrc_decode_init(), exposure_slice(), extract_lltask_from_task(), fastaudio_init(), feed(), ff_atrac_gain_compensation(), ff_celt_quant_bands(), ff_dca_core_filter_fixed(), ff_dca_xll_filter_frame(), ff_draw_horiz_band(), ff_framequeue_skip_samples(), ff_h264_decode_mb_cabac(), ff_h264_draw_horiz_band(), ff_h264_execute_decode_slices(), ff_hevc_frame_nb_refs(), ff_hevc_hls_residual_coding(), ff_jpegls_decode_picture(), ff_jpegls_init_state(), ff_mjpeg_decode_dht(), ff_mjpeg_receive_frame(), ff_mjpegenc_huffman_compute_bits(), ff_mpeg4_pred_ac(), ff_opus_psy_postencode_update(), ff_qsv_enc_init(), ff_qsvvpp_create(), ff_rv34_decode_frame(), fft_channel(), fill_frame(), fill_picture(), fill_picture_parameters(), fill_quantization_matrices(), fill_scaling_lists(), fill_yuv_image(), filter16_brng(), filter16_tout(), filter16_vrep(), filter_2_1(), filter_5_0_side(), filter_channel(), filter_channels(), filter_frame(), filter_frame_fixed(), filter_frame_float(), filter_surround(), find_min_max(), find_peak_magnitude(), fix_transparency(), flashsv_decode_frame(), flip_swap_frame(), flush_buffer(), free_buffers(), generate_intervals(), generate_joint_tables(), get_fcb_param(), get_input(), get_output(), gif_fill(), gif_fill_rect(), gif_read_image(), h264_export_frame_props(), horizontal_frame_pack(), idcin_decode_init(), idraw_vtext(), imc_decode_block(), imc_decode_init(), init_image(), init_mv_table(), input_to_sample_buffer(), interpolate(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA_16(), ipvideo_decode_block_opcode_0xB_16(), ipvideo_decode_block_opcode_0xC_16(), ipvideo_decode_block_opcode_0xD_16(), lavfi_read_header(), libcodec2_decode(), libgsm_decode_frame(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopus_decode(), lut_packed_16bits(), lut_planar_16bits(), m101_decode_frame(), magy_decode_slice10(), magy_huffman_compute_bits(), main(), margins_borders16(), margins_borders8(), mclms_update(), mirror_borders16(), mix(), monochrome_slice16(), movie_common_init(), mss4_decode_image_block(), mss4_update_dc_cache(), msvideo1_decode_16bit(), mxf_compute_ptses_fake_index(), mxf_read_close(), nlmeans_slice(), nvdec_hevc_start_frame(), nvdec_vp9_start_frame(), opencl_get_buffer(), opus_encode_frame(), paf_audio_decode(), parse_gradient(), parse_high_res_grid(), parse_indices(), pcm_decode_frame(), perform_compression(), perform_dc_correction(), pitch_sharpening(), piz_uncompress(), plot_freqs(), plot_spectrum_column(), pnm_decode_frame(), pnm_encode_frame(), postfilter(), print_audio_bytes(), process_callback(), process_channels(), psy_channel(), push_single_pic(), qdm2_decode_fft_packets(), qdm2_decode_frame(), qsv_init_opaque_alloc(), query_formats(), ra288_decode_frame(), read_in_data(), read_old_huffman_tables(), read_packet(), read_scalefactors(), reflect_borders16(), reinit_tables(), request_frame(), restore_tqb_pixels(), run_channel_fft(), s302m_decode_frame(), s302m_encode2_frame(), sample_noise_block(), scale_internal(), search_for_quantizers_twoloop(), set_ct_depth(), set_side_data(), setup_pps(), setup_qtables(), shorten_decode_frame(), smc_encode_stream(), smear_borders16(), speex_decode_frame(), sub2video_copy_rect(), sws_init_context(), sws_sumVec(), synth_superframe(), tak_decode_frame(), temperature_slice16(), temperature_slice16p(), try_push_frame(), tta_decode_frame(), txd_decode_frame(), unsharp_opencl_make_filter_params(), use_normal_update_speed(), v410_encode_frame(), vaapi_encode_h265_init_sequence_params(), vaapi_encode_make_row_slice(), vaapi_encode_mjpeg_write_extra_buffer(), vaapi_encode_vp8_write_quant_table(), vaapi_encode_vp9_init_picture_params(), vaapi_hevc_start_frame(), vaapi_mjpeg_decode_slice(), vaapi_vp8_start_frame(), vcr1_decode_frame(), vdpau_vp9_start_frame(), vectorscope8(), vibrance_slice16(), vibrance_slice16p(), vmdvideo_decode_init(), vorbis_encode_frame(), vp56_parse_mb_type_models(), wavesynth_decode(), weave_slice(), wrap_borders16(), write_palette(), wv_dsd_reset(), xavs2_copy_frame_with_shift(), xwd_decode_frame(), y216_decode_frame(), yop_decode_frame(), and zerocodec_decode_frame().

◆ pred16x16_plane()

static void FUNCC() pred16x16_plane ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 483 of file h264pred_template.c.

◆ pred8x8_vertical()

static void FUNCC() pred8x8_vertical ( uint8_t *  _src,
ptrdiff_t  _stride 
)
static

Definition at line 488 of file h264pred_template.c.

◆ pred8x16_vertical()

static void FUNCC() pred8x16_vertical ( uint8_t *  _src,
ptrdiff_t  _stride 
)
static

Definition at line 502 of file h264pred_template.c.

◆ pred8x8_horizontal()

static void FUNCC() pred8x8_horizontal ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 516 of file h264pred_template.c.

◆ pred8x16_horizontal()

static void FUNCC() pred8x16_horizontal ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 529 of file h264pred_template.c.

◆ PRED8x8_X()

PRED8x8_X ( 127  ,
(1<<(BIT_DEPTH-1)) -  1 
)

◆ for() [2/2]

for ( )

Definition at line 580 of file h264pred_template.c.

◆ pred8x16_left_dc()

static void FUNCC() pred8x16_left_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 590 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0l0(), and pred8x16_mad_cow_dc_l00().

◆ pred8x8_top_dc()

static void FUNCC() pred8x8_top_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 596 of file h264pred_template.c.

Referenced by pred8x8_mad_cow_dc_l0t().

◆ pred8x16_top_dc()

static void FUNCC() pred8x16_top_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 622 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_l0t().

◆ pred8x8_dc()

static void FUNCC() pred8x8_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 644 of file h264pred_template.c.

Referenced by pred8x8_mad_cow_dc_0lt().

◆ pred8x16_dc()

static void FUNCC() pred8x16_dc ( uint8_t *  _src,
ptrdiff_t  stride 
)
static

Definition at line 673 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0lt().

◆ pred8x8_mad_cow_dc_l0t()

static void FUNC() pred8x8_mad_cow_dc_l0t ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 717 of file h264pred_template.c.

◆ pred8x16_mad_cow_dc_l0t()

static void FUNC() pred8x16_mad_cow_dc_l0t ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 723 of file h264pred_template.c.

◆ pred8x8_mad_cow_dc_0lt()

static void FUNC() pred8x8_mad_cow_dc_0lt ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 729 of file h264pred_template.c.

◆ pred8x16_mad_cow_dc_0lt()

static void FUNC() pred8x16_mad_cow_dc_0lt ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 735 of file h264pred_template.c.

◆ pred8x8_mad_cow_dc_l00()

static void FUNC() pred8x8_mad_cow_dc_l00 ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 741 of file h264pred_template.c.

◆ pred8x16_mad_cow_dc_l00()

static void FUNC() pred8x16_mad_cow_dc_l00 ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 748 of file h264pred_template.c.

◆ pred8x8_mad_cow_dc_0l0()

static void FUNC() pred8x8_mad_cow_dc_0l0 ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 755 of file h264pred_template.c.

◆ pred8x16_mad_cow_dc_0l0()

static void FUNC() pred8x16_mad_cow_dc_0l0 ( uint8_t *  src,
ptrdiff_t  stride 
)
static

Definition at line 762 of file h264pred_template.c.

◆ pred8x8_plane()

static void FUNCC() pred8x8_plane ( uint8_t *  _src,
ptrdiff_t  _stride 
)
static

Definition at line 769 of file h264pred_template.c.

◆ pred8x16_plane()

static void FUNCC() pred8x16_plane ( uint8_t *  _src,
ptrdiff_t  _stride 
)
static

Definition at line 805 of file h264pred_template.c.

◆ pred8x8l_128_dc()

static void FUNCC() pred8x8l_128_dc ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 885 of file h264pred_template.c.

◆ pred8x8l_left_dc()

static void FUNCC() pred8x8l_left_dc ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 893 of file h264pred_template.c.

◆ pred8x8l_top_dc()

static void FUNCC() pred8x8l_top_dc ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 903 of file h264pred_template.c.

◆ pred8x8l_dc()

static void FUNCC() pred8x8l_dc ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 913 of file h264pred_template.c.

◆ pred8x8l_horizontal()

static void FUNCC() pred8x8l_horizontal ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 925 of file h264pred_template.c.

◆ pred8x8l_vertical()

static void FUNCC() pred8x8l_vertical ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 939 of file h264pred_template.c.

◆ pred8x8l_down_left()

static void FUNCC() pred8x8l_down_left ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 963 of file h264pred_template.c.

◆ pred8x8l_down_right()

static void FUNCC() pred8x8l_down_right ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 986 of file h264pred_template.c.

◆ pred8x8l_vertical_right()

static void FUNCC() pred8x8l_vertical_right ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1010 of file h264pred_template.c.

◆ pred8x8l_horizontal_down()

static void FUNCC() pred8x8l_horizontal_down ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1041 of file h264pred_template.c.

◆ pred8x8l_vertical_left()

static void FUNCC() pred8x8l_vertical_left ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1072 of file h264pred_template.c.

◆ pred8x8l_horizontal_up()

static void FUNCC() pred8x8l_horizontal_up ( uint8_t *  _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1102 of file h264pred_template.c.

◆ pred8x8l_vertical_filter_add()

static void FUNCC() pred8x8l_vertical_filter_add ( uint8_t *  _src,
int16_t *  _block,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1128 of file h264pred_template.c.

◆ pred8x8l_horizontal_filter_add()

static void FUNCC() pred8x8l_horizontal_filter_add ( uint8_t *  _src,
int16_t *  _block,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 1164 of file h264pred_template.c.

◆ pred4x4_vertical_add()

static void FUNCC() pred4x4_vertical_add ( uint8_t *  _pix,
int16_t *  _block,
ptrdiff_t  stride 
)
static

◆ pred4x4_horizontal_add()

static void FUNCC() pred4x4_horizontal_add ( uint8_t *  _pix,
int16_t *  _block,
ptrdiff_t  stride 
)
static

◆ pred8x8l_vertical_add()

static void FUNCC() pred8x8l_vertical_add ( uint8_t *  _pix,
int16_t *  _block,
ptrdiff_t  stride 
)
static

Definition at line 1251 of file h264pred_template.c.

◆ pred8x8l_horizontal_add()

static void FUNCC() pred8x8l_horizontal_add ( uint8_t *  _pix,
int16_t *  _block,
ptrdiff_t  stride 
)
static

Definition at line 1276 of file h264pred_template.c.

◆ pred16x16_vertical_add()

static void FUNCC() pred16x16_vertical_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1300 of file h264pred_template.c.

◆ pred16x16_horizontal_add()

static void FUNCC() pred16x16_horizontal_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1309 of file h264pred_template.c.

◆ pred8x8_vertical_add()

static void FUNCC() pred8x8_vertical_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1319 of file h264pred_template.c.

◆ pred8x16_vertical_add()

static void FUNCC() pred8x16_vertical_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1327 of file h264pred_template.c.

◆ pred8x8_horizontal_add()

static void FUNCC() pred8x8_horizontal_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1337 of file h264pred_template.c.

◆ pred8x16_horizontal_add()

static void FUNCC() pred8x16_horizontal_add ( uint8_t *  pix,
const int block_offset,
int16_t *  block,
ptrdiff_t  stride 
)
static

Definition at line 1346 of file h264pred_template.c.

Variable Documentation

◆ V

V = ( V + (V>>2) ) >> 4

Definition at line 462 of file h264pred_template.c.

Referenced by for(), pred8x16_plane(), and pred8x8_plane().

◆ else

else
Initial value:
{
H = ( 5*H+32 ) >> 6

Definition at line 463 of file h264pred_template.c.

◆ a

a = 16*(src1[0] + src2[16] + 1) - 7*(V+H)

◆ dc2splat

<<(BIT_DEPTH-1))+0) PRED8x8_X(129, (1<<(BIT_DEPTH-1))+1) static void FUNCC(pred8x16_128_dc)(uint8_t *_src, ptrdiff_t stride) { FUNCC(pred8x8_128_dc)(_src, stride); FUNCC(pred8x8_128_dc)(_src+8*stride, stride); } static void FUNCC(pred8x8_left_dc)(uint8_t *_src, ptrdiff_t stride) { int i; int dc0, dc2; pixel4 dc0splat, dc2splat; pixel *src = (pixel*)_src; stride >>= sizeof(pixel)-1; dc0=dc2=0; for(i=0;i<4; i++){ dc0+= src[-1+i*stride]; dc2+= src[-1+(i+4)*stride]; } dc0splat = PIXEL_SPLAT_X4((dc0 + 2)>> dc2splat = PIXEL_SPLAT_X4((dc2 + 2)>>2)

Definition at line 578 of file h264pred_template.c.

Referenced by pred8x16_dc(), and pred8x8_dc().

PT
#define PT(x)
Definition: h264pred_template.c:856
stride
int stride
Definition: mace.c:144
av_unused
#define av_unused
Definition: attributes.h:131
t0
#define t0
Definition: regdef.h:28
t1
#define t1
Definition: regdef.h:29
t10
#define t10
Definition: regdef.h:55
pixel4
#define pixel4
Definition: bit_depth_template.c:83
t15
static int t15(InterplayACMContext *s, unsigned ind, unsigned col)
Definition: interplayacm.c:335
a
a
Definition: h264pred_template.c:468
t7
#define t7
Definition: regdef.h:35
PIXEL_SPLAT_X4
#define PIXEL_SPLAT_X4(x)
Definition: bit_depth_template.c:96
t5
#define t5
Definition: regdef.h:33
pixel
uint8_t pixel
Definition: tiny_ssim.c:42
t6
#define t6
Definition: regdef.h:34
src
#define src
Definition: vp8dsp.c:255
FUNCC
#define FUNCC(a)
Definition: bit_depth_template.c:105
t11
#define t11
Definition: regdef.h:56
t12
#define t12
Definition: regdef.h:58
t8
#define t8
Definition: regdef.h:53
PL
#define PL(y)
Definition: h264pred_template.c:848
H
#define H
Definition: pixlet.c:39
SRC
#define SRC(x, y)
Definition: h264pred_template.c:847
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:271
t4
#define t4
Definition: regdef.h:32
t3
#define t3
Definition: regdef.h:31
t2
#define t2
Definition: regdef.h:30
else
else
Definition: h264pred_template.c:463
t9
#define t9
Definition: regdef.h:54
PTR
#define PTR(x)
Definition: h264pred_template.c:865