Mercurial > libavcodec.hg
comparison avcodec.h @ 2002:b737b5e96ee0 libavcodec
use AVInteger in av_rescale() so it can finally do 64*64/64 instead of just 64*32/32
author | michael |
---|---|
date | Tue, 04 May 2004 02:58:30 +0000 |
parents | 7bd3932bc918 |
children | ec6bfd8d92fc |
comparison
equal
deleted
inserted
replaced
2001:7523553ca85f | 2002:b737b5e96ee0 |
---|---|
15 #include "rational.h" | 15 #include "rational.h" |
16 #include <sys/types.h> /* size_t */ | 16 #include <sys/types.h> /* size_t */ |
17 | 17 |
18 #define FFMPEG_VERSION_INT 0x000408 | 18 #define FFMPEG_VERSION_INT 0x000408 |
19 #define FFMPEG_VERSION "0.4.8" | 19 #define FFMPEG_VERSION "0.4.8" |
20 #define LIBAVCODEC_BUILD 4711 | 20 #define LIBAVCODEC_BUILD 4712 |
21 | 21 |
22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT | 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
23 #define LIBAVCODEC_VERSION FFMPEG_VERSION | 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION |
24 | 24 |
25 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 25 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
1984 | 1984 |
1985 /** | 1985 /** |
1986 * rescale a 64bit integer. | 1986 * rescale a 64bit integer. |
1987 * a simple a*b/c isnt possible as it can overflow | 1987 * a simple a*b/c isnt possible as it can overflow |
1988 */ | 1988 */ |
1989 int64_t av_rescale(int64_t a, int b, int c); | 1989 int64_t av_rescale(int64_t a, int64_t b, int64_t c); |
1990 | 1990 |
1991 | 1991 |
1992 /** | 1992 /** |
1993 * Interface for 0.5.0 version | 1993 * Interface for 0.5.0 version |
1994 * | 1994 * |