block.h File Reference

definitions for block decoding functions More...

#include "global.h"
#include "transform8x8.h"

Include dependency graph for block.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void iMBtrans4x4 (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int smb)
void iMBtrans8x8 (ImageParameters *img, Macroblock *currMB, ColorPlane pl)
void itrans_sp_cr (ImageParameters *img, int uv)
void intrapred_chroma (ImageParameters *img, Macroblock *currMB, int uv)
void Inv_Residual_trans_4x4 (ImageParameters *img, ColorPlane pl, int ioff, int joff)
void Inv_Residual_trans_8x8 (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void itrans4x4 (ImageParameters *img, ColorPlane pl, int ioff, int joff)
void itrans4x4_ls (ImageParameters *img, ColorPlane pl, int ioff, int joff)
void itrans_sp (ImageParameters *img, ColorPlane pl, int ioff, int joff)
int intrapred (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff, int joff, int i4, int j4)
void itrans_2 (ImageParameters *img, Macroblock *currMB, ColorPlane pl)
void iTransform (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int need_4x4_transform, int smb)
int allocate_block_mem (void)
void free_block_mem (void)

Variables

const byte QP_SCALE_CR [52]
const unsigned char subblk_offset_x [3][8][4]
const unsigned char subblk_offset_y [3][8][4]
void(* itrans_4x4 )(ImageParameters *img, ColorPlane pl, int ioff, int joff)
void(* itrans_8x8 )(ImageParameters *img, Macroblock *currMB, ColorPlane pl, int ioff, int joff)


Detailed Description

definitions for block decoding functions

Author:
Inge Lille-Langoy <inge.lille-langoy@telenor.com>
Telenor Satellite Services
P.O.Box 6914 St.Olavs plass
N-0130 Oslo, Norway

Definition in file block.h.


Function Documentation

int intrapred ( ImageParameters *  img,
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:
img  image 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 762 of file intra4x4_pred.c.

Referenced by decode_one_component().

void intrapred_chroma ( ImageParameters *  img,
Macroblock *  currMB,
int  uv 
)

Chroma Intra prediction. Note that many operations can be moved outside since they are repeated for both components for no reason.

< pixel position p(0,-1)

< pixel positions p(-1, -1..16)

Definition at line 94 of file block.c.

References macroblock::c_ipred_mode, storable_picture::chroma_format_idc, error(), storable_picture::imgUV, and subblk_offset_x.

Here is the call graph for this function:

void Inv_Residual_trans_4x4 ( ImageParameters *  img,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse residual DPCM for Intra lossless coding.

Parameters:
img  image parameters
pl  used color plane
ioff  index to 4x4 block
joff  index to 4x4 block

Definition at line 315 of file block.c.

Referenced by decode_one_component().

void Inv_Residual_trans_8x8 ( ImageParameters *  img,
Macroblock *  currMB,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse residual DPCM for Intra lossless coding.

Input:
ioff_x,joff_y: Block position inside a macro block (0,8).

Definition at line 389 of file block.c.

Referenced by decode_one_component().

void itrans4x4 ( ImageParameters *  img,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse 4x4 transformation, transforms cof to mb_rres.

Parameters:
img  image parameters
pl  used color plane
ioff  index to 4x4 block
joff  index to 4x4 block

Definition at line 254 of file block.c.

Referenced by decode_one_component().

void itrans4x4_ls ( ImageParameters *  img,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse 4x4 lossless_qpprime transformation, transforms cof to mb_rres.

Parameters:
img  image parameters
pl  Color plane (for 4:4:4)
ioff  index to 4x4 block
joff  index to 4x4 block

Definition at line 284 of file block.c.

void itrans_2 ( ImageParameters *  img,
Macroblock *  currMB,
ColorPlane  pl 
)

Luma DC inverse transform.

Parameters:
img  image parameters
currMB  current macroblock
pl  used color plane

Definition at line 465 of file block.c.

References macroblock::qp_scaled.

Referenced by readCBPandCoeffsFromNAL().

void itrans_sp ( ImageParameters *  img,
ColorPlane  pl,
int  ioff,
int  joff 
)

Parameters:
img  image parameters
pl  used color plane
ioff  index to 4x4 block
joff  index to 4x4 block

Definition at line 502 of file block.c.

References dequant_coef.


Variable Documentation

const unsigned char subblk_offset_x[3][8][4]

look up tables for FRExt_chroma support

Definition at line 130 of file macroblock.c.

Referenced by buildPredblockRegionYUV(), buildPredRegionYUV(), intrapred_chroma(), and readCBPandCoeffsFromNAL().


Documentation generated with DoxyGen