intra4x4.c File Reference

Intra 4x4 mode functions. More...

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

Include dependency graph for intra4x4.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 void get_i4x4_vertical (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_horizontal (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_dc (imgpel **cur_pred, imgpel *PredPel, int left_available, int up_available)
static void get_i4x4_downleft (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_downright (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_vertleft (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_vertright (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_hordown (imgpel **cur_pred, imgpel *PredPel)
static void get_i4x4_horup (imgpel **cur_pred, imgpel *PredPel)
void set_intrapred_4x4 (Macroblock *currMB, ColorPlane pl, int img_x, int img_y, int *left_available, int *up_available, int *all_available)
void get_intrapred_4x4 (Macroblock *currMB, ColorPlane pl, int i4x4_mode, int img_x, int img_y, int left_available, int up_available)


Detailed Description

Intra 4x4 mode functions.

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

Definition in file intra4x4.c.


Function Documentation

static void get_i4x4_dc ( imgpel **  cur_pred,
imgpel *  PredPel,
int  left_available,
int  up_available 
) [inline, static]

DC 4x4 Prediction.

Definition at line 87 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_downleft ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Diagonal Down Left 4x4 Prediction.

Definition at line 124 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_downright ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Diagonal Down Right 4x4 Prediction.

Definition at line 150 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_hordown ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Horizontal Down 4x4 Prediction.

Definition at line 229 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_horizontal ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Horizontal 4x4 Prediction.

Definition at line 68 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_horup ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Horizontal Up 4x4 Prediction.

Definition at line 256 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_vertical ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Vertical 4x4 Prediction.

Definition at line 53 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_vertleft ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Vertical Left 4x4 Prediction.

Definition at line 177 of file intra4x4.c.

Referenced by get_intrapred_4x4().

static void get_i4x4_vertright ( imgpel **  cur_pred,
imgpel *  PredPel 
) [inline, static]

Vertical Right 4x4 Prediction.

Definition at line 203 of file intra4x4.c.

Referenced by get_intrapred_4x4().

void get_intrapred_4x4 ( Macroblock currMB,
ColorPlane  pl,
int  i4x4_mode,
int  img_x,
int  img_y,
int  left_available,
int  up_available 
)

void set_intrapred_4x4 ( Macroblock currMB,
ColorPlane  pl,
int  img_x,
int  img_y,
int *  left_available,
int *  up_available,
int *  all_available 
)

Make intra 4x4 prediction according to all 9 prediction modes. The routine uses left and upper neighbouring points from previous coded blocks to do this (if available). Notice that inaccessible neighbouring points are signalled with a negative value in the predmode array .

Input:
Starting point of current 4x4 block image posision
Output:
none

Definition at line 292 of file intra4x4.c.

References img_par::dc_pred_value, macroblock::intra4x4_pred, storable_picture::p_curr_img, macroblock::p_Img, and inp_par_enc::UseConstrainedIntraPred.

Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High(), Mode_Decision_for_4x4IntraBlocks_JM_High444(), Mode_Decision_for_4x4IntraBlocks_JM_Low(), and Mode_Decision_for_4x4IntraBlocks_JM_Low444().


Documentation generated with DoxyGen