fmo.h File Reference

Support for Flexible Macroblock Ordering. More...

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

Go to the source code of this file.

Functions

int FmoInit (ImageParameters *p_Img, pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps)
void FmoUninit (ImageParameters *p_Img)
int FmoFinit (seq_parameter_set_rbsp_t *sps)
int FmoMB2SliceGroup (ImageParameters *p_Img, int mb)
int FmoGetFirstMBOfSliceGroup (ImageParameters *p_Img, int SliceGroupID)
int FmoGetFirstMacroblockInSlice (ImageParameters *p_Img, int SliceGroup)
int FmoGetNextMBNr (ImageParameters *p_Img, int CurrentMbNr)
int FmoGetPreviousMBNr (ImageParameters *p_Img, int CurrentMbNr)
int FmoGetLastCodedMBOfSliceGroup (ImageParameters *p_Img, int SliceGroupID)
int FmoStartPicture (ImageParameters *p_Img)
int FmoEndPicture (void)
int FmoSliceGroupCompletelyCoded (ImageParameters *p_Img, int SliceGroupID)
void FmoSetLastMacroblockInSlice (ImageParameters *p_Img, int mb)


Detailed Description

Support for Flexible Macroblock Ordering.

Date:
16 June 2002
Author:
Stephan Wenger stewe@cs.tu-berlin.de

Definition in file fmo.h.


Function Documentation

int FmoEndPicture ( void   ) 

FmoEndPicture: Ends the Scattered Slices Module (called once per picture).

Input:
None

Definition at line 566 of file fmo.c.

Referenced by code_a_plane().

int FmoGetFirstMBOfSliceGroup ( ImageParameters p_Img,
int  SliceGroupID 
)

FmoGetFirstMBOfSliceGroup: Returns the MB-Nr (in scan order) of the next first MB of the Slice group, -1 if no such MB exists.

Input:
SliceGroupID: Id of SliceGroup

Definition at line 649 of file fmo.c.

References FmoMB2SliceGroup().

Referenced by FmoStartPicture().

Here is the call graph for this function:

int FmoGetLastCodedMBOfSliceGroup ( ImageParameters p_Img,
int  SliceGroupID 
)

FmoGetLastCodedMBOfSlice: Returns the MB-Nr (in scan order) of the last MB of the slice group.

Input:
SliceGroupID
Return
MB Nr in case of success (is always >= 0) -1 if the SliceGroup doesn't exist

Definition at line 675 of file fmo.c.

References FmoMB2SliceGroup().

Referenced by encode_one_slice_MBAFF(), and end_macroblock().

Here is the call graph for this function:

int FmoGetNextMBNr ( ImageParameters p_Img,
int  CurrentMbNr 
)

FmoGetNextMBBr: Returns the MB-Nr (in scan order) of the next MB in the (FMO) Slice, -1 if the SliceGroup is finished.

Input:
CurrentMbNr

Definition at line 599 of file fmo.c.

References FmoMB2SliceGroup().

Referenced by encode_one_slice(), encode_one_slice_MBAFF(), writeMBLayerBSlice(), and writeMBLayerPSlice().

Here is the call graph for this function:

int FmoGetPreviousMBNr ( ImageParameters p_Img,
int  CurrentMbNr 
)

FmoGetNextMBBr: Returns the MB-Nr (in scan order) of the next MB in the (FMO) Slice, -1 if the SliceGroup is finished.

Input:
CurrentMbNr

Definition at line 624 of file fmo.c.

References FmoMB2SliceGroup().

Referenced by encode_one_slice(), encode_one_slice_MBAFF(), and start_macroblock().

Here is the call graph for this function:

int FmoInit ( ImageParameters p_Img,
pic_parameter_set_rbsp_t *  pps,
seq_parameter_set_rbsp_t *  sps 
)

FMO initialization: Generates p_Img->MapUnitToSliceGroupMap and p_Img->MBAmap.

Parameters:
p_Img Image Parameter to be used for map generation
pps Picture Parameter set to be used for map generation
sps Sequence Parameter set to be used for map generation

Definition at line 209 of file fmo.c.

References FmoGenerateMapUnitToSliceGroupMap(), and FmoGenerateMBAmap().

Referenced by code_a_plane().

Here is the call graph for this function:

int FmoMB2SliceGroup ( ImageParameters p_Img,
int  mb 
)

FmoMB2Slice: Returns SliceID for a given MB.

Input:
Macroblock Nr (in scan order)

Definition at line 582 of file fmo.c.

Referenced by encode_one_slice_MBAFF(), end_macroblock(), FmoGetFirstMBOfSliceGroup(), FmoGetLastCodedMBOfSliceGroup(), FmoGetNextMBNr(), and FmoGetPreviousMBNr().

int FmoStartPicture ( ImageParameters p_Img  ) 

FmoStartPicture: initializes FMO at the begin of each new picture.

Input:
None

Definition at line 543 of file fmo.c.

References FmoGetFirstMBOfSliceGroup().

Referenced by code_a_plane().

Here is the call graph for this function:

void FmoUninit ( ImageParameters p_Img  ) 

Free memory if allocated by FMO functions.

Definition at line 280 of file fmo.c.

Referenced by free_encoder_memory().


Documentation generated with DoxyGen