summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-04-14 18:57:51 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-04-14 18:57:51 +0000
commite4986da9ce91c4a6f9e942c4225f0c3d90e5db95 (patch)
tree17a8d25051d364c09e4e878e1408a3b2f315869c /libavcodec/avcodec.h
parentb1ec5875a63d5cf61629ff69fb337c6d96e7b964 (diff)
- ME setting moved to AVCodecContext/MpegEncContext, no longer a global.
- EPZS ME algo used by default. - HQ flag activated for ffmpeg. - Cosmetics ... Originally committed as revision 398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 1859fe3d41..a6b03e9dde 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -56,14 +56,18 @@ enum SampleFormat {
/* in bytes */
#define AVCODEC_MAX_AUDIO_FRAME_SIZE 18432
-/* motion estimation type */
-extern int motion_estimation_method;
-#define ME_ZERO 0
-#define ME_FULL 1
-#define ME_LOG 2
-#define ME_PHODS 3
-#define ME_EPZS 4
-#define ME_X1 5
+/* motion estimation type, EPZS by default */
+enum Motion_Est_ID {
+ ME_ZERO = -4,
+ ME_FULL,
+ ME_LOG,
+ ME_PHODS,
+ ME_EPZS,
+ ME_X1
+};
+
+/* ME algos sorted by quality */
+static const int Motion_Est_QTab[] = { -4, -1, -2, 1, 0, -3 };
/* encoding support */
/* note not everything is supported yet */
@@ -89,6 +93,9 @@ typedef struct AVCodecContext {
int flags;
int sub_id; /* some codecs needs additionnal format info. It is
stored there */
+
+ int me_method; /* ME algorithm used for video coding */
+
/* video only */
int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */
int width, height;