avcodec/error_resilience: Avoid me_cmp.h inclusion
Use spell out what me_cmp_func means. Avoids inclusions in the H.264 decoder as well as all mpegvideo decoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b29ae29ee7
commit
34b624d98c
1 changed files with 4 additions and 2 deletions
|
|
@ -23,7 +23,6 @@
|
|||
#include <stdatomic.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "me_cmp.h"
|
||||
|
||||
/// current MB is the first after a resync marker
|
||||
#define VP_START 1
|
||||
|
|
@ -37,6 +36,8 @@
|
|||
#define ER_MB_ERROR (ER_AC_ERROR|ER_DC_ERROR|ER_MV_ERROR)
|
||||
#define ER_MB_END (ER_AC_END|ER_DC_END|ER_MV_END)
|
||||
|
||||
typedef struct MPVEncContext MPVEncContext;
|
||||
|
||||
typedef struct ERPicture {
|
||||
AVFrame *f;
|
||||
const struct ThreadFrame *tf;
|
||||
|
|
@ -53,7 +54,8 @@ typedef struct ERPicture {
|
|||
typedef struct ERContext {
|
||||
AVCodecContext *avctx;
|
||||
|
||||
me_cmp_func sad;
|
||||
int (*sad)(MPVEncContext *unused, const uint8_t *blk1,
|
||||
const uint8_t *blk2, ptrdiff_t stride, int h);
|
||||
int mecc_inited;
|
||||
|
||||
int *mb_index2xy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue