intrarefresh.c File Reference

Encoder support for pseudo-random intra macroblock refresh. More...

#include "global.h"

Include dependency graph for intrarefresh.c:

Go to the source code of this file.

Functions

void RandomIntraInit (ImageParameters *p_Img, int xsize, int ysize, int refresh)
int RandomIntra (ImageParameters *p_Img, int mb)
void RandomIntraNewPicture (ImageParameters *p_Img)
void RandomIntraUninit (ImageParameters *p_Img)


Detailed Description

Encoder support for pseudo-random intra macroblock refresh.

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

Definition in file intrarefresh.c.


Function Documentation

int RandomIntra ( ImageParameters p_Img,
int  mb 
)

RandomIntra: Code an MB as Intra?

Input
MacroblockNumberInScanOrder
Output
1 if an MB should be forced to Intra, according the the RefreshPattern 0 otherwise

Definition at line 87 of file intrarefresh.c.

Referenced by encode_one_macroblock_high(), encode_one_macroblock_highfast(), encode_one_macroblock_highloss(), and encode_one_macroblock_low().

void RandomIntraInit ( ImageParameters p_Img,
int  xsize,
int  ysize,
int  refresh 
)

RandomIntraInit: Initializes Random Intra module. Should be called only after initialization (or changes) of the picture size or the random intra refresh value. In version jm2.1 it is impossible to change those values on-the-fly, hence RandomIntraInit should be called immediately after the parsing of the config file.

Input:
xsize, ysize: size of the picture (in MBs) refresh : refresh rate in MBs per picture

Definition at line 34 of file intrarefresh.c.

References no_mem_exit().

Referenced by init_img().

Here is the call graph for this function:

void RandomIntraNewPicture ( ImageParameters p_Img  ) 

RandomIntraNewPicture: Selects new set of MBs for forced Intra.

returns 1 for MBs that need forced Intra

This function should be called exactly once per picture, and requires a finished initialization

Definition at line 109 of file intrarefresh.c.

Referenced by code_a_picture().


Documentation generated with DoxyGen