h264pred_template.c File Reference

H.264 / AVC / MPEG4 part10 prediction functions. More...

#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
 
<<(BIT_DEPTH-1))+0) PRED8x8_X(129,(1
<<(BIT_DEPTH-1))+1)
staticvoidFUNCC(pred8x16_128_dc)(uint8_t
*_src, ptrdiff_tstride){FUNCC(pred8x8_128_dc)(_src,
stride);FUNCC(pred8x8_128_dc)(_src+8
*stride, stride);}staticvoidFUNCC(pred8x8_left_dc)(uint8_t
*_src, ptrdiff_tstride){inti;intdc0,
dc2;pixel4dc0splat, dc2splat;pixel
*src=(pixel *) _src;stride/=sizeof(pixel);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)>
>2);dc2splat=PIXEL_SPLAT_X4((dc2+2)>> 
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() pred4x4_vertical_add (uint8_t *_pix, const DCTELEM *_block, ptrdiff_t stride)
 
static void FUNCC() pred4x4_horizontal_add (uint8_t *_pix, const DCTELEM *_block, ptrdiff_t stride)
 
static void FUNCC() pred8x8l_vertical_add (uint8_t *_pix, const DCTELEM *_block, ptrdiff_t stride)
 
static void FUNCC() pred8x8l_horizontal_add (uint8_t *_pix, const DCTELEM *_block, ptrdiff_t stride)
 
static void FUNCC() pred16x16_vertical_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 
static void FUNCC() pred16x16_horizontal_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 
static void FUNCC() pred8x8_vertical_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 
static void FUNCC() pred8x16_vertical_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 
static void FUNCC() pred8x8_horizontal_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 
static void FUNCC() pred8x16_horizontal_add (uint8_t *pix, const int *block_offset, const DCTELEM *block, ptrdiff_t stride)
 

Variables

<<(BIT_DEPTH-1))+0)
PRED16x16_X(129,(1<<(BIT_DEPTH-1))+1)
staticinlinevoidFUNCC(pred16x16_plane_compat)(uint8_t
*_src, ptrdiff_t_stride,
constintsvq3, constintrv40){inti,
j, k;inta;INIT_CLIPpixel *src=(pixel
*) _src;intstride=_stride/sizeof(pixel);constpixel
*constsrc0=src+7-stride;constpixel
*src1=src+8 *stride-1;constpixel
*src2=src1-2 *stride;intH=src0[1]-src0[-1];intV=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;}elseif(rv40){H=(H+(H >>2))>> 
V = ( V + (V>>2) ) >> 4
 
 else
 
 a = 16*(src1[0] + src2[16] + 1) - 7*(V+H)
 

Detailed Description

H.264 / AVC / MPEG4 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

#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];\
int stride
Definition: mace.c:144

Definition at line 145 of file h264pred_template.c.

Referenced by pred4x4_down_left_rv40_c(), pred4x4_horizontal_up_rv40_c(), and pred4x4_vertical_left_rv40_c().

#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];\
int stride
Definition: mace.c:144
#define t0
Definition: regdef.h:28
#define t1
Definition: regdef.h:29
#define t3
Definition: regdef.h:31
#define t2
Definition: regdef.h:30

Definition at line 157 of file h264pred_template.c.

Referenced by pred4x4_down_left(), pred4x4_down_left_rv40_c(), pred4x4_down_left_rv40_nodown_c(), pred4x4_down_left_svq3_c(), pred4x4_down_right(), pred4x4_horizontal_down(), pred4x4_horizontal_up_rv40_c(), pred4x4_horizontal_up_rv40_nodown_c(), pred4x4_vertical_left(), pred4x4_vertical_left_rv40(), pred4x4_vertical_left_vp8_c(), pred4x4_vertical_right(), and pred4x4_vertical_vp8_c().

#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];\
#define t7
Definition: regdef.h:35
#define t5
Definition: regdef.h:33
#define t6
Definition: regdef.h:34
#define t4
Definition: regdef.h:32

Definition at line 139 of file h264pred_template.c.

Referenced by pred4x4_down_left(), pred4x4_down_left_rv40_c(), pred4x4_down_left_rv40_nodown_c(), pred4x4_horizontal_up_rv40_c(), pred4x4_horizontal_up_rv40_nodown_c(), pred4x4_vertical_left(), pred4x4_vertical_left_rv40(), pred4x4_vertical_left_vp8_c(), and pred4x4_vertical_vp8_c().

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

Definition at line 845 of file h264pred_template.c.

#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);\
}
int stride
Definition: mace.c:144
uint8_t
#define pixel
#define PREDICT_16x16_DC(v)
#define FUNCC(a)
#define PIXEL_SPLAT_X4(x)

Definition at line 419 of file h264pred_template.c.

#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);\
for(i=0; i<8; i++){\
AV_WN4PA(((pixel4*)(src+i*stride))+0, a);\
AV_WN4PA(((pixel4*)(src+i*stride))+1, a);\
}\
}
#define pixel4
int stride
Definition: mace.c:144
uint8_t
#define pixel
#define AV_WN4PA
#define FUNCC(a)
for(j=16;j >0;--j)
#define PIXEL_SPLAT_X4(x)

Definition at line 539 of file h264pred_template.c.

#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;\
}
int stride
Definition: mace.c:144
#define AV_WN4PA

Definition at line 361 of file h264pred_template.c.

Referenced by pred16x16_dc(), pred16x16_left_dc(), and pred16x16_top_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; \
}
#define pixel4
int stride
Definition: mace.c:144
#define AV_WN4PA
for(j=16;j >0;--j)

Definition at line 874 of file h264pred_template.c.

Referenced by pred8x8l_128_dc(), pred8x8l_dc(), pred8x8l_left_dc(), and pred8x8l_top_dc().

#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
#define PL(y)
#define SRC(x, y)

Definition at line 847 of file h264pred_template.c.

Referenced by pred8x8l_dc(), pred8x8l_down_right(), pred8x8l_horizontal(), pred8x8l_horizontal_down(), pred8x8l_horizontal_up(), pred8x8l_left_dc(), and pred8x8l_vertical_right().

#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
#define t7
Definition: regdef.h:35
#define t0
Definition: regdef.h:28
#define PT(x)
#define SRC(x, y)

Definition at line 855 of file h264pred_template.c.

Referenced by pred8x8l_dc(), pred8x8l_down_left(), pred8x8l_down_right(), pred8x8l_horizontal_down(), pred8x8l_top_dc(), pred8x8l_vertical(), pred8x8l_vertical_left(), and pred8x8l_vertical_right().

#define PREDICT_8x8_LOAD_TOPLEFT   const int lt = (SRC(-1,0) + 2*SRC(-1,-1) + SRC(0,-1) + 2) >> 2
#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);
#define t9
Definition: regdef.h:54
#define t8
Definition: regdef.h:53
#define t12
Definition: regdef.h:58
#define t11
Definition: regdef.h:56
#define PTR(x)
#define t10
Definition: regdef.h:55
#define SRC(x, y)
if(!(ptr_align%ac->ptr_align)&&samples_align >=aligned_len)

Definition at line 864 of file h264pred_template.c.

Referenced by pred8x8l_down_left(), and pred8x8l_vertical_left().

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

Definition at line 853 of file h264pred_template.c.

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

Definition at line 862 of file h264pred_template.c.

#define ROW (   y)
Value:
a = PIXEL_SPLAT_X4(l##y); \
AV_WN4PA(src+y*stride, a); \
AV_WN4PA(src+y*stride+4, a);
int stride
Definition: mace.c:144
#define AV_WN4PA
#define PIXEL_SPLAT_X4(x)

Referenced by pred8x8l_horizontal().

Function Documentation

for ( = 16; j,
0;--  j 
)
Examples:
libavformat/output-example.c.

Definition at line 467 of file h264pred_template.c.

Referenced by ac3_decode_frame(), ac3_decode_transform_coeffs_ch(), add_frame_default(), adpcm_decode_frame(), adpcm_encode_frame(), ape_decode_frame(), apply_window_and_mdct(), audio_read_packet(), av_image_fill_pointers(), av_solve_lls(), bfi_decode_frame(), bmv_aud_decode_frame(), build_frame_code(), cdg_load_palette(), cng_decode_frame(), compute_stereo(), copy_frame_default(), dca_decode_frame(), dca_parse_audio_coding_header(), decode_block(), decode_element(), decode_frame(), decode_subframe(), decode_tag(), decorrelate(), dnxhd_unquantize_c(), encode_init(), ff_draw_horiz_band(), ff_h264_decode_mb_cabac(), ff_rv34_decode_frame(), ffv1_encode_init(), fill_quantization_matrices(), fill_scaling_lists(), fill_yuv_image(), filter_frame(), flashsv_decode_frame(), generate_joint_tables(), idcin_decode_init(), imc_decode_block(), imc_decode_init(), init_image(), 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(), lag_decode_frame(), libgsm_decode_frame(), libopenjpeg_copy_packed16(), libopenjpeg_copy_unpacked16(), mclms_predict(), mclms_update(), mss4_decode_image_block(), mss4_update_dc_cache(), msvideo1_decode_16bit(), mxf_compute_ptses_fake_index(), mxf_get_sorted_table_segments(), mxf_read_close(), pack_yuv(), pcm_decode_frame(), pitch_sharpening(), pnm_decode_frame(), process_callback(), qdm2_decode_fft_packets(), qdm2_decode_frame(), qmf_32_subbands(), recheck_discard_flags(), s302m_decode_frame(), shorten_decode_frame(), sws_diffVec(), sws_init_context(), sws_sumVec(), synth_superframe(), tak_decode_frame(), tta_decode_frame(), txd_decode_frame(), use_normal_update_speed(), v410_decode_frame(), v410_encode_frame(), vcr1_decode_frame(), vmdvideo_decode_init(), vorbis_encode_frame(), vp56_parse_mb_type_models(), xwd_decode_frame(), yop_decode_frame(), and zerocodec_decode_frame().

for ( )

Definition at line 578 of file h264pred_template.c.

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

Definition at line 370 of file h264pred_template.c.

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

Definition at line 345 of file h264pred_template.c.

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

Definition at line 1225 of file h264pred_template.c.

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

Definition at line 389 of file h264pred_template.c.

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

Definition at line 481 of file h264pred_template.c.

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

Definition at line 404 of file h264pred_template.c.

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

Definition at line 327 of file h264pred_template.c.

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

Definition at line 1216 of file h264pred_template.c.

PRED16x16_X ( 127  ,
(1<<(BIT_DEPTH-1))-  1 
)
static void FUNCC() pred4x4_127_dc ( uint8_t _src,
const uint8_t topright,
ptrdiff_t  _stride 
)
static

Definition at line 112 of file h264pred_template.c.

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

Definition at line 125 of file h264pred_template.c.

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

Definition at line 56 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_l0t(), and pred8x8_mad_cow_dc_l0t().

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

Definition at line 190 of file h264pred_template.c.

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

Definition at line 163 of file h264pred_template.c.

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

Definition at line 45 of file h264pred_template.c.

static void FUNCC() pred4x4_horizontal_add ( uint8_t _pix,
const DCTELEM _block,
ptrdiff_t  stride 
)
static
static void FUNCC() pred4x4_horizontal_down ( uint8_t _src,
const uint8_t topright,
ptrdiff_t  _stride 
)
static

Definition at line 299 of file h264pred_template.c.

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

Definition at line 274 of file h264pred_template.c.

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

Definition at line 71 of file h264pred_template.c.

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

Definition at line 85 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0lt(), and pred8x8_mad_cow_dc_0lt().

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

Definition at line 32 of file h264pred_template.c.

static void FUNCC() pred4x4_vertical_add ( uint8_t _pix,
const DCTELEM _block,
ptrdiff_t  stride 
)
static
static void FUNCC() pred4x4_vertical_left ( uint8_t _src,
const uint8_t _topright,
ptrdiff_t  _stride 
)
static

Definition at line 246 of file h264pred_template.c.

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

Definition at line 218 of file h264pred_template.c.

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

Definition at line 671 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0lt().

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

Definition at line 527 of file h264pred_template.c.

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

Definition at line 1262 of file h264pred_template.c.

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

Definition at line 588 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_0l0(), and pred8x16_mad_cow_dc_l00().

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

Definition at line 759 of file h264pred_template.c.

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

Definition at line 732 of file h264pred_template.c.

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

Definition at line 745 of file h264pred_template.c.

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

Definition at line 720 of file h264pred_template.c.

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

Definition at line 802 of file h264pred_template.c.

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

Definition at line 620 of file h264pred_template.c.

Referenced by pred8x16_mad_cow_dc_l0t().

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

Definition at line 500 of file h264pred_template.c.

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

Definition at line 1243 of file h264pred_template.c.

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

Definition at line 642 of file h264pred_template.c.

Referenced by pred8x8_mad_cow_dc_0lt().

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

Definition at line 514 of file h264pred_template.c.

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

Definition at line 1253 of file h264pred_template.c.

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

Definition at line 752 of file h264pred_template.c.

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

Definition at line 726 of file h264pred_template.c.

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

Definition at line 738 of file h264pred_template.c.

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

Definition at line 714 of file h264pred_template.c.

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

Definition at line 766 of file h264pred_template.c.

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

Definition at line 594 of file h264pred_template.c.

Referenced by pred8x8_mad_cow_dc_l0t().

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

Definition at line 486 of file h264pred_template.c.

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

Definition at line 1235 of file h264pred_template.c.

PRED8x8_X ( 127  ,
(1<<(BIT_DEPTH-1))-  1 
)
static void FUNCC() pred8x8l_128_dc ( uint8_t _src,
int  has_topleft,
int  has_topright,
ptrdiff_t  _stride 
)
static

Definition at line 882 of file h264pred_template.c.

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

Definition at line 910 of file h264pred_template.c.

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

Definition at line 960 of file h264pred_template.c.

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

Definition at line 983 of file h264pred_template.c.

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

Definition at line 922 of file h264pred_template.c.

static void FUNCC() pred8x8l_horizontal_add ( uint8_t _pix,
const DCTELEM _block,
ptrdiff_t  stride 
)
static

Definition at line 1194 of file h264pred_template.c.

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

Definition at line 1038 of file h264pred_template.c.

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

Definition at line 1099 of file h264pred_template.c.

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

Definition at line 890 of file h264pred_template.c.

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

Definition at line 900 of file h264pred_template.c.

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

Definition at line 936 of file h264pred_template.c.

static void FUNCC() pred8x8l_vertical_add ( uint8_t _pix,
const DCTELEM _block,
ptrdiff_t  stride 
)
static

Definition at line 1171 of file h264pred_template.c.

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

Definition at line 1069 of file h264pred_template.c.

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

Definition at line 1007 of file h264pred_template.c.

Variable Documentation

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

Definition at line 466 of file h264pred_template.c.

Referenced by a64_compress_colram(), a64multi_init_encoder(), abs_pow34_v(), add_bytes_c(), add_bytes_l2_c(), add_hfyu_left_prediction_bgr32_c(), audiogen(), av_clip_c(), av_clip_int16_c(), av_clip_int8_c(), av_clip_uint16_c(), av_clip_uint8_c(), av_clip_uintp2_c(), av_clipf_c(), av_clipl_int32_c(), av_compare_ts(), av_d2q(), av_gcd(), av_mlfg_get(), av_nearer_q(), avg_pixels16_l2_altivec(), bidir_refine(), blend_frame(), blend_subrect(), blur_power(), body(), calc_lowcomp1(), calc_pe_3gpp(), clipf_c_one(), common_init(), compare_vlcspec(), compute_mod(), convert_to_rgb32_loco(), create_vorbis_context(), dct_ref(), decode_block_coeffs_internal(), decode_end(), decode_filter_coeffs(), decode_frame(), decode_init(), decode_init_thread_copy(), decode_rgb_frame(), decode_subframe_fixed(), decorrelate(), decorrelate_stereo(), diff_bytes_c(), diff_pixels_mvi(), dv_guess_qnos(), dvbsub_init_decoder(), dxt1_decode_pixels(), encode_block(), encode_dvb_subtitles(), encode_frame(), encode_init(), encode_picture(), encode_residual_fixed(), encode_rgb_frame(), encode_superframe(), event_cmp(), ff_add_png_paeth_prediction(), ff_adx_calculate_coeffs(), ff_asv_common_init(), ff_audio_data_alloc(), ff_avc_find_startcode_internal(), ff_celp_lp_synthesis_filterf(), ff_h263_pred_acdc(), ff_h263_pred_dc(), ff_h264_chroma_dc_dequant_idct(), ff_h264_filter_mb(), ff_index_search_timestamp(), ff_interp(), ff_merge_channel_layouts(), ff_merge_formats(), ff_merge_samplerates(), ff_mov_read_stsd_entries(), ff_mpeg4_pred_dc(), ff_msmpeg4_coded_block_pred(), ff_msmpeg4_pred_dc(), ff_rate_estimate_qscale(), ff_ut_huff_cmp_len(), ff_wma_init(), fill24(), filter_common(), filter_mb_edgech(), filter_mb_edgecv(), filter_mb_edgeh(), filter_mb_edgev(), filter_mb_mbaff_edgecv(), filter_mb_mbaff_edgev(), flac_decorrelate_ls_c(), flac_decorrelate_ms_c(), flac_decorrelate_rs_c(), for(), get_amv(), get_diff_limited_q(), get_qscale(), get_symbol(), get_symbol_inline(), getSplineCoeff(), glyph_cmp(), gmc_motion(), h264_filter_mb_fast_internal(), h_block_filter(), huff_cmp(), huff_cmp_sym(), idct_ref(), imdct_ref(), init_pass2(), int_cos(), int_pow(), int_sin(), intra_pred_dc_128(), intra_pred_horiz(), intra_pred_vert(), lag_decode_frame(), load_with_perm_vec(), loco_predict(), main(), matroska_parse_rm_audio(), mc_block(), mdct_ref(), mdec_common_init(), mid_pred(), mix_core(), mov_read_default(), MPA_encode_init(), mpeg4_decode_sprite_trajectory(), multiswap_dec(), multiswap_enc(), paint_mouse_pointer(), png_filter_row(), pnm_decode_frame(), pow_m1_4(), pred16x16_horizontal(), pred16x16_vertical(), pred4x4_127_dc(), pred4x4_128_dc(), pred4x4_129_dc(), pred4x4_dc(), pred4x4_left_dc(), pred4x4_top_dc(), pred4x4_vertical(), pred8x16_plane(), pred8x8_plane(), pred8x8l_horizontal(), pred8x8l_vertical(), pred_spatial_direct_motion(), predict(), ps_decorrelate_c(), put_no_rnd_pixels16_l2(), put_no_rnd_pixels8_l2(), put_pixels16_l2_altivec(), put_symbol(), put_symbol_inline(), put_vp8_epel_h_altivec_core(), quant(), ready_residue(), render_charset(), replicate32(), replicate64(), residue_encode(), set_palette(), set_string_binary(), sha1_transform(), sha256_transform(), spatial_compensation_0(), sub_png_paeth_prediction(), subtitle_thread(), synth_filter_float(), tgq_calculate_qtable(), upsample_plane_c(), v_block_filter(), vb_decode_framedata(), vc1_coded_block_pred(), vc1_h_overlap_c(), vc1_h_s_overlap_c(), vc1_i_pred_dc(), vc1_pred_dc(), vc1_v_overlap_c(), vc1_v_s_overlap_c(), vcr1_common_init(), vcr1_decode_frame(), video_audio_display(), vorbis_encode_frame(), vorbis_inverse_coupling_altivec(), vp6_build_huff_tree(), vp6_huff_cmp(), wma_decode_block(), wma_lsp_to_curve_init(), write_float_4d_array(), write_frame(), and x8_get_prediction().

else
Initial value:
{
H = ( 5*H+32 ) >> 6
#define H
Definition: swscale-test.c:338

Definition at line 461 of file h264pred_template.c.

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

Definition at line 460 of file h264pred_template.c.

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