Mercurial > libavcodec.hg
comparison motion_est.c @ 1057:bb5de8a59da8 libavcodec
* static,const,compiler warning cleanup
author | kabi |
---|---|
date | Mon, 10 Feb 2003 09:35:32 +0000 |
parents | f07fd48c23d4 |
children | b32afefe7d33 |
comparison
equal
deleted
inserted
replaced
1056:eb403f8158eb | 1057:bb5de8a59da8 |
---|---|
59 int x, y; | 59 int x, y; |
60 int checked; | 60 int checked; |
61 }Minima; | 61 }Minima; |
62 | 62 |
63 static int minima_cmp(const void *a, const void *b){ | 63 static int minima_cmp(const void *a, const void *b){ |
64 Minima *da = (Minima *) a; | 64 const Minima *da = (const Minima *) a; |
65 Minima *db = (Minima *) b; | 65 const Minima *db = (const Minima *) b; |
66 | 66 |
67 return da->height - db->height; | 67 return da->height - db->height; |
68 } | 68 } |
69 | 69 |
70 /* SIMPLE */ | 70 /* SIMPLE */ |
1191 s->p_mv_table[xy][1] = my<<shift; | 1191 s->p_mv_table[xy][1] = my<<shift; |
1192 | 1192 |
1193 return dmin; | 1193 return dmin; |
1194 } | 1194 } |
1195 | 1195 |
1196 int ff_estimate_motion_b(MpegEncContext * s, | 1196 static int ff_estimate_motion_b(MpegEncContext * s, |
1197 int mb_x, int mb_y, int16_t (*mv_table)[2], Picture *picture, int f_code) | 1197 int mb_x, int mb_y, int16_t (*mv_table)[2], Picture *picture, int f_code) |
1198 { | 1198 { |
1199 int mx, my, range, dmin; | 1199 int mx, my, range, dmin; |
1200 int xmin, ymin, xmax, ymax; | 1200 int xmin, ymin, xmax, ymax; |
1201 int rel_xmin, rel_ymin, rel_xmax, rel_ymax; | 1201 int rel_xmin, rel_ymin, rel_xmax, rel_ymax; |