summaryrefslogtreecommitdiff
path: root/libavcodec/mpegutils.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-12 10:18:54 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-16 23:05:39 +0100
commitbe039278b5ebd8075d90a3508db2aed5adf59e02 (patch)
tree953728b9af117c19030967db5de911a37a7cda2b /libavcodec/mpegutils.h
parente0c16e4e3259cf50b5bac4c23bb6e517f397c74b (diff)
mpegvideo: move ff_draw_horiz_band() to mpegutils.c
Drop the mpegvideo dependency for svq3 in configure.
Diffstat (limited to 'libavcodec/mpegutils.h')
-rw-r--r--libavcodec/mpegutils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/mpegutils.h b/libavcodec/mpegutils.h
index 05a5fc202c..9446724f30 100644
--- a/libavcodec/mpegutils.h
+++ b/libavcodec/mpegutils.h
@@ -21,8 +21,14 @@
#ifndef AVCODEC_MPEGUTILS_H
#define AVCODEC_MPEGUTILS_H
+#include <stdint.h>
+
+#include "libavutil/frame.h"
+
+#include "avcodec.h"
#include "version.h"
+
/* picture type */
#define PICT_TOP_FIELD 1
#define PICT_BOTTOM_FIELD 2
@@ -108,4 +114,14 @@
#define CANDIDATE_MB_TYPE_DIRECT0 (1 << 12)
+
+/**
+ * Draw a horizontal band if supported.
+ *
+ * @param h is the normal height, this will be reduced automatically if needed
+ */
+void ff_draw_horiz_band(AVCodecContext *avctx, AVFrame *cur, AVFrame *last,
+ int y, int h, int picture_structure, int first_field,
+ int low_delay);
+
#endif /* AVCODEC_PICTTYPE_H */