Mercurial > libavcodec.hg
comparison common.h @ 359:df0736462b9f libavcodec
move ABS() to common.h
print mb_types in nice looking format support
author | michaelni |
---|---|
date | Sat, 04 May 2002 18:58:07 +0000 |
parents | 2066dc543be4 |
children | 0eca28d16cbd |
comparison
equal
deleted
inserted
replaced
358:2066dc543be4 | 359:df0736462b9f |
---|---|
157 | 157 |
158 #endif /* HAVE_AV_CONFIG_H */ | 158 #endif /* HAVE_AV_CONFIG_H */ |
159 | 159 |
160 /* assume b>0 */ | 160 /* assume b>0 */ |
161 #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) | 161 #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) |
162 #define ABS(a) ((a) >= 0 ? (a) : (-(a))) | |
162 | 163 |
163 /* bit output */ | 164 /* bit output */ |
164 | 165 |
165 struct PutBitContext; | 166 struct PutBitContext; |
166 | 167 |