#include "global.h"
#include "mb_access.h"

Go to the source code of this file.
Functions | |
| int | mb_is_available (int mbAddr, Macroblock *currMB) |
| void | CheckAvailabilityOfNeighbors (Macroblock *currMB) |
| void | get_mb_block_pos_normal (int mb_addr, int *x, int *y) |
| void | get_mb_block_pos_mbaff (int mb_addr, int *x, int *y) |
| void | get_mb_pos (int mb_addr, int mb_size[2], int *x, int *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 47 of file mb_access.c.
References macroblock::mb_available_left, macroblock::mb_available_up, ImageParameters::mb_data, mb_is_available(), macroblock::mbAddrA, macroblock::mbAddrB, macroblock::mbAddrC, macroblock::mbAddrD, macroblock::mbAddrX, ImageParameters::MbaffFrameFlag, macroblock::mbAvailA, macroblock::mbAvailB, macroblock::mbAvailC, macroblock::mbAvailD, and ImageParameters::PicWidthInMbs.
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 chroma 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 549 of file mb_access.c.
References pix_pos::available, pix_pos::pos_x, pix_pos::pos_y, pix_pos::x, and pix_pos::y.
Referenced by est_write_and_store_CBP_block_bit(), get_neighbors(), Mode_Decision_for_4x4IntraBlocks_JM_High(), Mode_Decision_for_4x4IntraBlocks_JM_Low(), Mode_Decision_for_8x8IntraBlocks_JM_High(), Mode_Decision_for_8x8IntraBlocks_JM_Low(), predict_nnz(), predict_nnz_chroma(), UMHEXSetMotionVectorPredictor(), write_and_store_CBP_block_bit(), writeCBP_BIT_CABAC(), writeMVD_CABAC(), and writeRefFrame_CABAC().
| void get_mb_block_pos_mbaff | ( | int | mb_addr, | |
| int * | x, | |||
| int * | y | |||
| ) |
returns the x and y macroblock coordinates for a given MbAddress for mbaff type slices
Definition at line 105 of file mb_access.c.
Referenced by prepare_enc_frame_picture().
| void get_mb_block_pos_normal | ( | int | mb_addr, | |
| int * | x, | |||
| int * | y | |||
| ) |
returns the x and y macroblock coordinates for a given MbAddress
Definition at line 92 of file mb_access.c.
Referenced by field_picture(), and prepare_enc_frame_picture().
| void get_mb_pos | ( | int | mb_addr, | |
| int | mb_size[2], | |||
| int * | x, | |||
| int * | y | |||
| ) |
returns the x and y sample coordinates for a given MbAddress
Definition at line 117 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 203 of file mb_access.c.
References pix_pos::available, ImageParameters::DeblockCall, get_mb_pos(), pix_pos::mb_addr, ImageParameters::mb_data, macroblock::mb_field, macroblock::mbAddrA, macroblock::mbAddrB, macroblock::mbAddrC, macroblock::mbAddrD, macroblock::mbAddrX, macroblock::mbAvailA, macroblock::mbAvailB, macroblock::mbAvailC, macroblock::mbAvailD, pix_pos::pos_x, pix_pos::pos_y, pix_pos::x, and pix_pos::y.
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 142 of file mb_access.c.
References pix_pos::available, ImageParameters::DeblockCall, pix_pos::mb_addr, macroblock::mbAddrA, macroblock::mbAddrB, macroblock::mbAddrC, macroblock::mbAddrD, macroblock::mbAddrX, macroblock::mbAvailA, macroblock::mbAvailB, macroblock::mbAvailC, macroblock::mbAvailD, pix_pos::pos_x, pix_pos::pos_y, pix_pos::x, and pix_pos::y.
Referenced by field_picture(), and prepare_enc_frame_picture().
| int 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 ImageParameters::DeblockCall, ImageParameters::mb_data, ImageParameters::PicSizeInMbs, and macroblock::slice_nr.
Referenced by CheckAvailabilityOfNeighbors().