summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideoencdsp.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-02-03 11:13:59 -0800
committerDiego Biurrun <diego@biurrun.de>2014-07-06 14:48:50 -0700
commit3c650efb81aaa3b395ba4606ee68a47ee4efb57b (patch)
tree1f72694cf002091051d5f13bf25ec212dbbc5a01 /libavcodec/mpegvideoencdsp.h
parentc166148409fe8f0dbccef2fe684286a40ba1e37d (diff)
dsputil: Move draw_edges() to mpegvideoencdsp
Diffstat (limited to 'libavcodec/mpegvideoencdsp.h')
-rw-r--r--libavcodec/mpegvideoencdsp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpegvideoencdsp.h b/libavcodec/mpegvideoencdsp.h
index dcbeb3cbae..91a292a296 100644
--- a/libavcodec/mpegvideoencdsp.h
+++ b/libavcodec/mpegvideoencdsp.h
@@ -26,6 +26,9 @@
#define BASIS_SHIFT 16
#define RECON_SHIFT 6
+#define EDGE_TOP 1
+#define EDGE_BOTTOM 2
+
typedef struct MpegvideoEncDSPContext {
int (*try_8x8basis)(int16_t rem[64], int16_t weight[64],
int16_t basis[64], int scale);
@@ -36,6 +39,9 @@ typedef struct MpegvideoEncDSPContext {
void (*shrink[4])(uint8_t *dst, int dst_wrap, const uint8_t *src,
int src_wrap, int width, int height);
+
+ void (*draw_edges)(uint8_t *buf, int wrap, int width, int height,
+ int w, int h, int sides);
} MpegvideoEncDSPContext;
void ff_mpegvideoencdsp_init(MpegvideoEncDSPContext *c,