block.c File Reference

Block functions. More...

#include "contributors.h"
#include "global.h"
#include "block.h"
#include "image.h"
#include "mb_access.h"
#include "transform.h"
#include "quant.h"
#include "memalloc.h"

Include dependency graph for block.c:

Go to the source code of this file.

Functions

void itrans4x4 (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void itrans4x4_ls (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void Inv_Residual_trans_4x4 (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void Inv_Residual_trans_8x8 (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void itrans_2 (Macroblock *currMB, ColorPlane pl)
void itrans_sp (Macroblock *currMB, ColorPlane pl, int ioff, int joff)
void itrans_sp_cr (Macroblock *currMB, int uv)
void iMBtrans4x4 (Macroblock *currMB, ColorPlane pl, int smb)
void iMBtrans8x8 (Macroblock *currMB, ColorPlane pl)
void iTransform (Macroblock *currMB, ColorPlane pl, int need_4x4_transform, int smb)
void copy_image_data_16x16 (imgpel **imgBuf1, imgpel **imgBuf2, int off1, int off2)
void copy_image_data_8x8 (imgpel **imgBuf1, imgpel **imgBuf2, int off1, int off2)
void copy_image_data_4x4 (imgpel **imgBuf1, imgpel **imgBuf2, int off1, int off2)
void copy_image_data (imgpel **imgBuf1, imgpel **imgBuf2, int off1, int off2, int width, int height)


Detailed Description

Block functions.

block.c

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

Definition in file block.c.


Function Documentation

void copy_image_data ( imgpel **  imgBuf1,
imgpel **  imgBuf2,
int  off1,
int  off2,
int  width,
int  height 
)

Copy ImgPel Data from one structure to another (8x8).

Definition at line 694 of file block.c.

Referenced by decode_one_component_p_slice().

void copy_image_data_16x16 ( imgpel **  imgBuf1,
imgpel **  imgBuf2,
int  off1,
int  off2 
)

Copy ImgPel Data from one structure to another (16x16).

Definition at line 648 of file block.c.

Referenced by decode_one_component_p_slice().

void copy_image_data_4x4 ( imgpel **  imgBuf1,
imgpel **  imgBuf2,
int  off1,
int  off2 
)

Copy ImgPel Data from one structure to another (4x4).

Definition at line 679 of file block.c.

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

void copy_image_data_8x8 ( imgpel **  imgBuf1,
imgpel **  imgBuf2,
int  off1,
int  off2 
)

Copy ImgPel Data from one structure to another (8x8).

Definition at line 663 of file block.c.

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

void Inv_Residual_trans_4x4 ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse residual DPCM for Intra lossless coding.

Parameters:
currMB current macroblock
pl used color plane
ioff index to 4x4 block
joff index to 4x4 block

Definition at line 99 of file block.c.

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

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

void Inv_Residual_trans_8x8 ( 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 175 of file block.c.

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

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

void itrans4x4 ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse 4x4 transformation, transforms cof to mb_rres.

Parameters:
currMB current macroblock
pl used color plane
ioff index to 4x4 block
joff index to 4x4 block

Definition at line 33 of file block.c.

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

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

void itrans4x4_ls ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
)

Inverse 4x4 lossless_qpprime transformation, transforms cof to mb_rres.

Parameters:
currMB current macroblock
pl Color plane (for 4:4:4)
ioff index to 4x4 block
joff index to 4x4 block

Definition at line 65 of file block.c.

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

void itrans_2 ( Macroblock currMB,
ColorPlane  pl 
)

Luma DC inverse transform.

Parameters:
currMB current macroblock
pl used color plane

Definition at line 251 of file block.c.

References free_mem2Dint(), get_mem2Dint(), macroblock::p_Img, macroblock::p_Slice, and macroblock::qp_scaled.

Referenced by read_CBP_and_coeffs_from_NAL_CABAC(), and read_CBP_and_coeffs_from_NAL_CAVLC().

Here is the call graph for this function:

void itrans_sp ( Macroblock currMB,
ColorPlane  pl,
int  ioff,
int  joff 
)

Parameters:
currMB current macroblock
pl used color plane
ioff index to 4x4 block
joff index to 4x4 block

Definition at line 293 of file block.c.

References dequant_coef, free_mem2Dint(), get_mem2Dint(), macroblock::p_Img, macroblock::p_Slice, and slice::slice_type.

Here is the call graph for this function:


Documentation generated with DoxyGen