mb_access.h File Reference

Functions for macroblock neighborhoods. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CheckAvailabilityOfNeighbors (Macroblock *currMB)
void getAffNeighbour (Macroblock *currMb, int xN, int yN, int mb_size[2], PixelPos *pix)
void getNonAffNeighbour (Macroblock *currMb, int xN, int yN, int mb_size[2], PixelPos *pix)
void get4x4Neighbour (Macroblock *currMb, int xN, int yN, int mb_size[2], PixelPos *pix)
int mb_is_available (int mbAddr, Macroblock *currMb)
void get_mb_pos (int mb_addr, int mb_size[2], int *x, int *y)
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)

Variables

void(* getNeighbour )(Macroblock *currMb, int xN, int yN, int mb_size[2], PixelPos *pix)
void(* get_mb_block_pos )(int mb_addr, int *x, int *y)


Detailed Description

Functions for macroblock neighborhoods.

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

Definition in file mb_access.h.


Function Documentation

void CheckAvailabilityOfNeighbors ( Macroblock *  currMB  ) 

void get4x4Neighbour ( Macroblock *  currMb,
int  block_x,
int  block_y,
int  mb_size[2],
PixelPos *  pix 
)

get neighboring 4x4 chroma block

Parameters:
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

Parameters:
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().

Here is the call graph for this function:

void getNonAffNeighbour ( Macroblock *  currMb,
int  xN,
int  yN,
int  mb_size[2],
PixelPos *  pix 
)

get neighbouring positions for non-aff coding

Parameters:
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().


Documentation generated with DoxyGen