#include "global.h"
#include "mbuffer.h"
#include "mb_access.h"
Go to the source code of this file.
Functions | |
Boolean | mb_is_available (int mbAddr, Macroblock *currMB) |
void | CheckAvailabilityOfNeighbors (Macroblock *currMB) |
void | get_mb_block_pos_normal (int mb_addr, short *x, short *y) |
void | get_mb_block_pos_mbaff (int mb_addr, short *x, short *y) |
void | get_mb_pos (ImageParameters *p_Img, int mb_addr, int mb_size[2], short *x, short *y) |
void | getNonAffNeighbour (Macroblock *currMB, int xN, int yN, int mb_size[2], PixelPos *pix) |
void | getAffNeighbour (Macroblock *currMB, int xN, int yN, int mb_size[2], PixelPos *pix) |
void | get4x4Neighbour (Macroblock *currMB, int block_x, int block_y, int mb_size[2], PixelPos *pix) |
Definition in file mb_access.c.
void CheckAvailabilityOfNeighbors | ( | Macroblock * | currMB | ) |
Checks the availability of neighboring macroblocks of the current macroblock for prediction and context determination;.
Definition at line 49 of file mb_access.c.
References mb_is_available(), macroblock::mb_left, macroblock::mb_up, macroblock::mbAddrX, and macroblock::p_Img.
Referenced by DeblockMb(), and start_macroblock().
void get4x4Neighbour | ( | Macroblock * | currMB, | |
int | block_x, | |||
int | block_y, | |||
int | mb_size[2], | |||
PixelPos * | pix | |||
) |
get neighboring 4x4 block
currMB | current macroblock | |
block_x | input x block position | |
block_y | input y block position | |
mb_size | Macroblock size in pixel (according to luma or chroma MB access) | |
pix | returns position informations |
Definition at line 566 of file mb_access.c.
References macroblock::p_Img.
Referenced by get_neighbors(), predict_nnz(), predict_nnz_chroma(), read_and_store_CBP_block_bit_444(), read_and_store_CBP_block_bit_normal(), read_ipred_modes(), readCBP_CABAC(), readMVD_CABAC(), and readRefFrame_CABAC().
void get_mb_block_pos_mbaff | ( | int | mb_addr, | |
short * | x, | |||
short * | y | |||
) |
returns the x and y macroblock coordinates for a given MbAddress for mbaff type slices
Definition at line 108 of file mb_access.c.
Referenced by init_picture().
void get_mb_block_pos_normal | ( | int | mb_addr, | |
short * | x, | |||
short * | y | |||
) |
returns the x and y macroblock coordinates for a given MbAddress
Definition at line 95 of file mb_access.c.
Referenced by init_picture().
void get_mb_pos | ( | ImageParameters * | p_Img, | |
int | mb_addr, | |||
int | mb_size[2], | |||
short * | x, | |||
short * | y | |||
) |
returns the x and y sample coordinates for a given MbAddress
Definition at line 120 of file mb_access.c.
Referenced by DeblockMb(), and getAffNeighbour().
void getAffNeighbour | ( | Macroblock * | currMB, | |
int | xN, | |||
int | yN, | |||
int | mb_size[2], | |||
PixelPos * | pix | |||
) |
get neighboring positions for aff coding
currMB | current macroblock | |
xN | input x position | |
yN | input y position | |
mb_size | Macroblock size in pixel (according to luma or chroma MB access) | |
pix | returns position informations |
Definition at line 219 of file mb_access.c.
References get_mb_pos(), macroblock::mbAddrX, and macroblock::p_Img.
Referenced by init_picture().
void getNonAffNeighbour | ( | Macroblock * | currMB, | |
int | xN, | |||
int | yN, | |||
int | mb_size[2], | |||
PixelPos * | pix | |||
) |
get neighbouring positions for non-aff coding
currMB | current macroblock | |
xN | input x position | |
yN | input y position | |
mb_size | Macroblock size in pixel (according to luma or chroma MB access) | |
pix | returns position informations |
Definition at line 145 of file mb_access.c.
References macroblock::mbAddrX, and macroblock::p_Img.
Referenced by init_picture().
Boolean mb_is_available | ( | int | mbAddr, | |
Macroblock * | currMB | |||
) |
returns 1 if the macroblock at the given address is available
Definition at line 25 of file mb_access.c.
References macroblock::p_Img.
Referenced by CheckAvailabilityOfNeighbors(), read_one_macroblock_b_slice(), and read_one_macroblock_p_slice().