FFmpeg
Data Fields
HpelDSPContext Struct Reference

Half-pel DSP context. More...

#include <hpeldsp.h>

Data Fields

op_pixels_func put_pixels_tab [4][4]
 Halfpel motion compensation with rounding (a+b+1)>>1. More...
 
op_pixels_func avg_pixels_tab [4][4]
 Halfpel motion compensation with rounding (a+b+1)>>1. More...
 
op_pixels_func put_no_rnd_pixels_tab [3][4]
 Halfpel motion compensation with no rounding (a+b)>>1. More...
 
op_pixels_func avg_no_rnd_pixels_tab [4]
 Halfpel motion compensation with no rounding (a+b)>>1. More...
 

Detailed Description

Half-pel DSP context.

Definition at line 46 of file hpeldsp.h.

Field Documentation

◆ put_pixels_tab

op_pixels_func HpelDSPContext::put_pixels_tab[4][4]

Halfpel motion compensation with rounding (a+b+1)>>1.

this is an array[4][4] of motion compensation functions for 4 horizontal blocksizes (2,4,8,16) and the 4 halfpel positions
*pixels_tab[ 0->16xH 1->8xH 2->4xH 3->2xH ][ xhalfpel + 2*yhalfpel ]

Parameters
blockdestination where the result is stored
pixelssource
line_sizenumber of bytes in a horizontal line of block
hheight

Definition at line 57 of file hpeldsp.h.

Referenced by decode_init(), mxpeg_decode_init(), svq1_encode_plane(), svq1_motion_inter_4v_block(), and svq1_motion_inter_block().

◆ avg_pixels_tab

op_pixels_func HpelDSPContext::avg_pixels_tab[4][4]

Halfpel motion compensation with rounding (a+b+1)>>1.

This is an array[4][4] of motion compensation functions for 4 horizontal blocksizes (2,4,8,16) and the 4 halfpel positions
*pixels_tab[ 0->16xH 1->8xH 2->4xH 3->2xH ][ xhalfpel + 2*yhalfpel ]

Parameters
blockdestination into which the result is averaged (a+b+1)>>1
pixelssource
line_sizenumber of bytes in a horizontal line of block
hheight

Definition at line 69 of file hpeldsp.h.

◆ put_no_rnd_pixels_tab

op_pixels_func HpelDSPContext::put_no_rnd_pixels_tab[3][4]

Halfpel motion compensation with no rounding (a+b)>>1.

this is an array[4][4] of motion compensation functions for 2 horizontal blocksizes (8,16) and the 4 halfpel positions
*pixels_tab[ 0->16xH 1->8xH ][ xhalfpel + 2*yhalfpel ]

Parameters
blockdestination where the result is stored
pixelssource
line_sizenumber of bytes in a horizontal line of block
hheight
Note
The size is kept at [3][4] to avoid out of bounds accesses in the motion estimation code.

Definition at line 83 of file hpeldsp.h.

◆ avg_no_rnd_pixels_tab

op_pixels_func HpelDSPContext::avg_no_rnd_pixels_tab[4]

Halfpel motion compensation with no rounding (a+b)>>1.

this is an array[4] of motion compensation functions for 1 horizontal blocksize (16) and the 4 halfpel positions
*pixels_tab[ xhalfpel + 2*yhalfpel ]

Parameters
blockdestination into which the result is averaged (a+b)>>1
pixelssource
line_sizenumber of bytes in a horizontal line of block
hheight

Definition at line 95 of file hpeldsp.h.


The documentation for this struct was generated from the following file: