Mercurial > libavcodec.hg
comparison avcodec.h @ 9059:3c5920f57063 libavcodec
Add ticks_per_frame, this should hopefully fix the regressions caused
by the time_base change.
author | michael |
---|---|
date | Thu, 26 Feb 2009 23:47:32 +0000 |
parents | 9653d4585183 |
children | 322fa07fd397 |
comparison
equal
deleted
inserted
replaced
9058:7c9368905639 | 9059:3c5920f57063 |
---|---|
28 | 28 |
29 #include <errno.h> | 29 #include <errno.h> |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
33 #define LIBAVCODEC_VERSION_MINOR 19 | 33 #define LIBAVCODEC_VERSION_MINOR 20 |
34 #define LIBAVCODEC_VERSION_MICRO 0 | 34 #define LIBAVCODEC_VERSION_MICRO 0 |
35 | 35 |
36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ | 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
2321 * Hardware accelerator in use | 2321 * Hardware accelerator in use |
2322 * - encoding: unused. | 2322 * - encoding: unused. |
2323 * - decoding: Set by libavcodec | 2323 * - decoding: Set by libavcodec |
2324 */ | 2324 */ |
2325 struct AVHWAccel *hwaccel; | 2325 struct AVHWAccel *hwaccel; |
2326 | |
2327 /** | |
2328 * For some codecs, the time base is closer to the field rate than the frame rate. | |
2329 * Most notably, H.264 and MPEG-2 specify time_base as half of frame duration | |
2330 * if no telecine is used ... | |
2331 * | |
2332 * Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2. | |
2333 */ | |
2334 int ticks_per_frame; | |
2326 } AVCodecContext; | 2335 } AVCodecContext; |
2327 | 2336 |
2328 /** | 2337 /** |
2329 * AVCodec. | 2338 * AVCodec. |
2330 */ | 2339 */ |