#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"

Go to the source code of this file.
Functions | |
| int | allocate_block_mem (void) |
| void | free_block_mem (void) |
| static void | intra_chroma_DC_single (imgpel **curr_img, int up_avail, int left_avail, PixelPos up, PixelPos left[17], int blk_x, int blk_y, int *pred, int direction) |
| static void | intra_chroma_DC_all (imgpel **curr_img, int up_avail, int left_avail, PixelPos up, PixelPos left[17], int blk_x, int blk_y, int *pred) |
| void | intrapred_chroma (ImageParameters *img, Macroblock *currMB, int uv) |
| void | itrans4x4 (ImageParameters *img, ColorPlane pl, int ioff, int joff) |
| void | itrans4x4_ls (ImageParameters *img, ColorPlane pl, int ioff, int joff) |
| 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 | itrans_2 (ImageParameters *img, Macroblock *currMB, ColorPlane pl) |
| void | itrans_sp (ImageParameters *img, ColorPlane pl, int ioff, int joff) |
| void | itrans_sp_cr (ImageParameters *img, int uv) |
| void | iMBtrans4x4 (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int smb) |
| void | iMBtrans8x8 (ImageParameters *img, Macroblock *currMB, ColorPlane pl) |
| void | iTransform (ImageParameters *img, Macroblock *currMB, ColorPlane pl, int need_4x4_transform, int smb) |
Variables | |
| static int ** | M4 |
| static int ** | PBlock |
| static const byte | decode_block_scan [16] = {0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15} |
Definition in file block.c.
| 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.

| void Inv_Residual_trans_4x4 | ( | ImageParameters * | img, | |
| ColorPlane | pl, | |||
| int | ioff, | |||
| int | joff | |||
| ) |
Inverse residual DPCM for Intra lossless coding.
| 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.
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.
| 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 | |||
| ) |
| void itrans_2 | ( | ImageParameters * | img, | |
| Macroblock * | currMB, | |||
| ColorPlane | pl | |||
| ) |
Luma DC inverse transform.
| 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 | |||
| ) |
| 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.