History

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.

Andreas Rheinhardt committed 1 year ago

Commit 34b624d1 parent b29ae291 file · +4 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/error_resilience.h+4−2
@@ -23,7 +23,6 @@ · 22 unmodified lines
2323 #include <stdatomic.h>
2424
2525 #include "avcodec.h"
26−#include "me_cmp.h"
2726
2827 /// current MB is the first after a resync marker
2928 #define VP_START 1
@@ -37,6 +36,8 @@ · 7 unmodified lines
3736 #define ER_MB_ERROR (ER_AC_ERROR|ER_DC_ERROR|ER_MV_ERROR)
3837 #define ER_MB_END (ER_AC_END|ER_DC_END|ER_MV_END)
3938
39+typedef struct MPVEncContext MPVEncContext;
40+
4041 typedef struct ERPicture {
4142 AVFrame *f;
4243 const struct ThreadFrame *tf;
@@ -53,7 +54,8 @@ typedef struct ERPicture { · 10 unmodified lines
5354 typedef struct ERContext {
5455 AVCodecContext *avctx;
5556
56− me_cmp_func sad;
57+ int (*sad)(MPVEncContext *unused, const uint8_t *blk1,
58+ const uint8_t *blk2, ptrdiff_t stride, int h);
5759 int mecc_inited;
5860
5961 int *mb_index2xy;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t