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 [4][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 45 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 (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

Definition at line 56 of file hpeldsp.h.

Referenced by decode_init(), 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 (8,16) and the 4 halfpel positions
*pixels_tab[ 0->16xH 1->8xH ][ 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 68 of file hpeldsp.h.

◆ put_no_rnd_pixels_tab

op_pixels_func HpelDSPContext::put_no_rnd_pixels_tab[4][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 [4][4] to match the above pixel_tabs and avoid out of bounds reads in the motion estimation code.

Definition at line 82 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[0][ 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 94 of file hpeldsp.h.


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