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 (ImageParameters *p_Img, int se)
void reset_ec_flags (ImageParameters *p_Img)
int get_concealed_element (ImageParameters *p_Img, SyntaxElement *sym)


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 p_Img->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 ( ImageParameters *  p_Img,
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 151 of file errorconcealment.c.

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

void reset_ec_flags ( ImageParameters *  p_Img  ) 

resets EC_Flags called at the start of each slice

Definition at line 132 of file errorconcealment.c.

References NO_EC, and SE_MAX_ELEMENTS.

int set_ec_flag ( ImageParameters *  p_Img,
int  se 
)

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

Parameters:
p_Img image encoding parameters for current picture
se type of syntax element to conceal
Returns:
EC_REQ, elements of same type or depending type need error concealment.
EX_SYNC sync on next header

Definition at line 52 of file errorconcealment.c.

References EC_REQ, and SE_HEADER.

Referenced by init_picture().


Documentation generated with DoxyGen