FFmpeg
Macros | Functions
error_resilience.c File Reference

Error resilience / concealment. More...

#include <limits.h>
#include "libavutil/internal.h"
#include "avcodec.h"
#include "error_resilience.h"
#include "me_cmp.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "rectangle.h"
#include "thread.h"
#include "version.h"

Macros

#define MV_FROZEN   8
 
#define MV_CHANGED   4
 
#define MV_UNCHANGED   2
 
#define MV_LISTED   1
 

Functions

void ff_er_frame_start (ERContext *s)
 
void ff_er_add_slice (ERContext *s, int startx, int starty, int endx, int endy, int status)
 Add a slice. More...
 
void ff_er_frame_end (ERContext *s)
 

Detailed Description

Error resilience / concealment.

Function Documentation

§ ff_er_add_slice()

void ff_er_add_slice ( ERContext s,
int  startx,
int  starty,
int  endx,
int  endy,
int  status 
)

Add a slice.

Parameters
endxx component of the last macroblock, can be -1 for the last of the previous line
statusthe status at the end (ER_MV_END, ER_AC_ERROR, ...), it is assumed that no earlier end or error of the same type occurred