Mercurial > libavcodec.hg
comparison motion_est.c @ 376:ba9c3b8088c0 libavcodec
- pict_type exported to AVCodecContext
- Added real_pict_num to AVCodecContext, it represent the number of the
previous encoded frame, usefull when coding with B frames.
- Warning fix in motion_est.c
author | pulento |
---|---|
date | Sat, 11 May 2002 23:42:16 +0000 |
parents | d359db02fc90 |
children | 718a22dc121f |
comparison
equal
deleted
inserted
replaced
375:749b5c16c0f7 | 376:ba9c3b8088c0 |
---|---|
23 #include <stdio.h> | 23 #include <stdio.h> |
24 #include "avcodec.h" | 24 #include "avcodec.h" |
25 #include "dsputil.h" | 25 #include "dsputil.h" |
26 #include "mpegvideo.h" | 26 #include "mpegvideo.h" |
27 | 27 |
28 #define ABS(a) ((a)>0 ? (a) : -(a)) | 28 //#define ABS(a) ((a)>0 ? (a) : -(a)) |
29 #define MAX(a,b) ((a) > (b) ? (a) : (b)) | 29 #define MAX(a,b) ((a) > (b) ? (a) : (b)) |
30 #define INTER_BIAS 257 | 30 #define INTER_BIAS 257 |
31 | 31 |
32 static int halfpel_motion_search(MpegEncContext * s, | 32 static int halfpel_motion_search(MpegEncContext * s, |
33 int *mx_ptr, int *my_ptr, int dmin, | 33 int *mx_ptr, int *my_ptr, int dmin, |