#include "global.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 48 of file mb_access.c.
References img_par::mb_data, mb_is_available(), macroblock::mb_left, macroblock::mb_up, macroblock::mbAddrX, img_par::MbaffFrameFlag, 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 551 of file mb_access.c.
References macroblock::p_Img.
Referenced by est_write_and_store_CBP_block_bit(), get_neighbors(), Mode_Decision_for_4x4IntraBlocks_JM_High(), Mode_Decision_for_4x4IntraBlocks_JM_High444(), Mode_Decision_for_4x4IntraBlocks_JM_Low(), Mode_Decision_for_4x4IntraBlocks_JM_Low444(), Mode_Decision_for_8x8IntraBlocks_JM_High(), Mode_Decision_for_8x8IntraBlocks_JM_High444(), Mode_Decision_for_8x8IntraBlocks_JM_Low(), Mode_Decision_for_8x8IntraBlocks_JM_Low444(), predict_nnz(), predict_nnz_chroma(), UMHEXSetMotionVectorPredictor(), write_and_store_CBP_block_bit(), write_and_store_CBP_block_bit_444(), writeCBP_BIT_CABAC(), writeMVD_CABAC(), writeRefPic_B_CABAC(), and writeRefPic_P_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 107 of file mb_access.c.
Referenced by prepare_enc_frame_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 94 of file mb_access.c.
Referenced by field_picture(), and prepare_enc_frame_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 119 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 204 of file mb_access.c.
References get_mb_pos(), img_par::mb_data, macroblock::mbAddrX, and macroblock::p_Img.
Referenced by prepare_enc_frame_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 144 of file mb_access.c.
References macroblock::mbAddrX, and macroblock::p_Img.
Referenced by field_picture(), and prepare_enc_frame_picture().
| Boolean mb_is_available | ( | int | mbAddr, | |
| Macroblock * | currMB | |||
| ) |
returns 1 if the macroblock at the given address is available
Definition at line 24 of file mb_access.c.
References img_par::mb_data, macroblock::p_Img, and macroblock::slice_nr.
Referenced by CheckAvailabilityOfNeighbors().