Mercurial > libavcodec.hg
comparison avcodec.h @ 2801:747f816cee69 libavcodec
portable IEEE float/double read/write functions
| author | michael |
|---|---|
| date | Tue, 19 Jul 2005 14:25:23 +0000 |
| parents | 95c35706acbb |
| children | 48fb350b0ec9 |
comparison
equal
deleted
inserted
replaced
| 2800:bf5c4e9dc75a | 2801:747f816cee69 |
|---|---|
| 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 0x000409 | 18 #define FFMPEG_VERSION_INT 0x000409 |
| 19 #define FFMPEG_VERSION "CVS" | 19 #define FFMPEG_VERSION "CVS" |
| 20 #define LIBAVCODEC_BUILD 4758 | 20 #define LIBAVCODEC_BUILD 4759 |
| 21 | 21 |
| 22 | 22 |
| 23 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT | 23 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
| 24 #define LIBAVCODEC_VERSION FFMPEG_VERSION | 24 #define LIBAVCODEC_VERSION FFMPEG_VERSION |
| 25 | 25 |
| 2330 /** | 2330 /** |
| 2331 * rescale a 64bit integer by 2 rational numbers. | 2331 * rescale a 64bit integer by 2 rational numbers. |
| 2332 */ | 2332 */ |
| 2333 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq); | 2333 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq); |
| 2334 | 2334 |
| 2335 double av_int2dbl(int64_t v); | |
| 2336 float av_int2flt(int32_t v); | |
| 2337 int64_t av_dbl2int(double d); | |
| 2338 int32_t av_flt2int(float d); | |
| 2339 | |
| 2340 | |
| 2335 /* frame parsing */ | 2341 /* frame parsing */ |
| 2336 typedef struct AVCodecParserContext { | 2342 typedef struct AVCodecParserContext { |
| 2337 void *priv_data; | 2343 void *priv_data; |
| 2338 struct AVCodecParser *parser; | 2344 struct AVCodecParser *parser; |
| 2339 int64_t frame_offset; /* offset of the current frame */ | 2345 int64_t frame_offset; /* offset of the current frame */ |
