intra4x4_pred.c File Reference

Functions for intra 4x4 prediction. More...

#include "global.h"
#include "intra4x4_pred.h"
#include "mb_access.h"
#include "image.h"

Include dependency graph for intra4x4_pred.c:

Go to the source code of this file.

Defines

#define P_X   (PredPel[0])
#define P_A   (PredPel[1])
#define P_B   (PredPel[2])
#define P_C   (PredPel[3])
#define P_D   (PredPel[4])
#define P_E   (PredPel[5])
#define P_F   (PredPel[6])
#define P_G   (PredPel[7])
#define P_H   (PredPel[8])
#define P_I   (PredPel[9])
#define P_J   (PredPel[10])
#define P_K   (PredPel[11])
#define P_L   (PredPel[12])

Functions

static int intra4x4_dc_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_vert_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_hor_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_diag_down_right_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_diag_down_left_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_vert_right_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_vert_left_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_hor_up_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
static int intra4x4_hor_down_pred (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
int intrapred (Macroblock *currMB, ColorPlane pl, int ioff, int joff, int img_block_x, int img_block_y)


Detailed Description

Functions for intra 4x4 prediction.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file intra4x4_pred.c.


Function Documentation

static int intra4x4_dc_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 DC prediction mode

Parameters:
currMB current MB structure
pl color plane
ioff pixel offset X within MB
joff pixel offset Y within MB
Returns:
DECODING_OK decoding of intra prediction mode was successful

Definition at line 65 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_diag_down_left_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 diagonal down left prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 364 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_diag_down_right_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 diagonal down right prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 273 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_hor_down_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 horizontal down prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 705 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_hor_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 horizontal prediction mode

Parameters:
currMB current MB structure
pl color plane
ioff pixel offset X within MB
joff pixel offset Y within MB
Returns:
DECODING_OK decoding of intra prediction mode was successful

Definition at line 217 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_hor_up_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 horizontal up prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 631 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_vert_left_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 vertical left prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 543 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_vert_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 vertical prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 161 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

static int intra4x4_vert_right_pred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
) [inline, static]

makes and returns 4x4 vertical right prediction mode

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB

Definition at line 451 of file intra4x4_pred.c.

References macroblock::p_Img, and macroblock::p_Slice.

Referenced by intrapred().

int intrapred ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff,
int  img_block_x,
int  img_block_y 
)

makes and returns 4x4 intra prediction blocks

Returns:
DECODING_OK decoding of intraprediction mode was sucessfull
SEARCH_SYNC search next sync element as errors while decoding occured
Parameters:
currMB current macroblock
pl current image plane
ioff pixel offset X within MB
joff pixel offset Y within MB
img_block_x location of block X, multiples of 4
img_block_y location of block Y, multiples of 4

Definition at line 797 of file intra4x4_pred.c.

References intra4x4_dc_pred(), intra4x4_diag_down_left_pred(), intra4x4_diag_down_right_pred(), intra4x4_hor_down_pred(), intra4x4_hor_pred(), intra4x4_hor_up_pred(), intra4x4_vert_left_pred(), intra4x4_vert_pred(), intra4x4_vert_right_pred(), and macroblock::p_Img.

Referenced by decode_one_component_b_slice(), decode_one_component_i_slice(), and decode_one_component_p_slice().

Here is the call graph for this function:


Documentation generated with DoxyGen