#ifndef AVCODEC_MPEGUTILS_H
#define AVCODEC_MPEGUTILS_H
+#include <stdint.h>
+
+#include "libavutil/frame.h"
+
+#include "avcodec.h"
#include "version.h"
+/**
+ * Return value for header parsers if frame is not coded.
+ * */
+#define FRAME_SKIPPED 100
+
/* picture type */
#define PICT_TOP_FIELD 1
#define PICT_BOTTOM_FIELD 2
*/
#define DELAYED_PIC_REF 4
+#define MAX_MB_BYTES (30 * 16 * 16 * 3 / 8 + 120)
+#define MAX_FCODE 7
/* MB types */
#if !FF_API_MB_TYPE
#define CANDIDATE_MB_TYPE_DIRECT0 (1 << 12)
-#endif /* AVCODEC_PICTTYPE_H */
+#define INPLACE_OFFSET 16
+
+enum OutputFormat {
+ FMT_MPEG1,
+ FMT_H261,
+ FMT_H263,
+ FMT_MJPEG,
+};
+
+
+/**
+ * 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_MPEGUTILS_H */