errorconcealment.c File Reference

Implements error concealment scheme for H.264 decoder. More...

#include "contributors.h"
#include "global.h"
#include "elements.h"

Include dependency graph for errorconcealment.c:

Go to the source code of this file.

Functions

int set_ec_flag (int se)
void reset_ec_flags ()
int get_concealed_element (SyntaxElement *sym)

Variables

static int ec_flag [SE_MAX_ELEMENTS]


Detailed Description

Implements error concealment scheme for H.264 decoder.

Date:
6.10.2000
Version:
1.0
Note:
This simple error concealment implemented in this decoder uses the existing dependencies of syntax elements. In case that an element is detected as false this elements and all dependend elements are marked as elements to conceal in the ec_flag[] array. If the decoder requests a new element by the function readSyntaxElement_xxxx() this array is checked first if an error concealment has to be applied on this element. In case that an error occured a concealed element is given to the decoding function in macroblock().
Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file errorconcealment.c.


Function Documentation

int get_concealed_element ( SyntaxElement *  sym  ) 

get error concealed element in dependence of syntax element se.
This function implements the error concealment.

Returns:
NO_EC if no error concealment required
EC_REQ if element requires error concealment

Definition at line 173 of file errorconcealment.c.

References ec_flag, EC_REQ, syntaxelement::inf, syntaxelement::len, NO_EC, SE_HEADER, and syntaxelement::type.

void reset_ec_flags ( void   ) 

resets EC_Flags called at the start of each slice

Definition at line 154 of file errorconcealment.c.

References ec_flag, NO_EC, and SE_MAX_ELEMENTS.

int set_ec_flag ( int  se  ) 

set concealment for all elements in same partition and dependend syntax elements

Returns:
EC_REQ, elements of same type or depending type need error concealment.
EX_SYNC sync on next header
Parameters:
se  type of syntax element to conceal

Definition at line 73 of file errorconcealment.c.

References ec_flag, EC_REQ, and SE_HEADER.

Referenced by init_picture().


Variable Documentation

int ec_flag[SE_MAX_ELEMENTS] [static]

array to set errorconcealment

Definition at line 36 of file errorconcealment.c.

Referenced by get_concealed_element(), reset_ec_flags(), and set_ec_flag().


Documentation generated with DoxyGen