comparison avcodec.h @ 8227:596677256482 libavcodec

Implement the fields rc_max_available_vbv_use and rc_min_vbv_overflow_use in AVCodecContext, and use their values in the ratecontrol code rather than hardcoded ones. See the thread: "[RFC] ratecontrol buffer size magic". Patch by Baptiste Coudurier.
author stefano
date Sat, 29 Nov 2008 14:08:48 +0000
parents a9734fe0811e
children ababfa151ced
comparison
equal deleted inserted replaced
8226:ee1b8c54a603 8227:596677256482
28 28
29 29
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 3 33 #define LIBAVCODEC_VERSION_MINOR 4
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)
2281 * Request decoder to use this channel layout if it can (0 for default) 2281 * Request decoder to use this channel layout if it can (0 for default)
2282 * - encoding: unused 2282 * - encoding: unused
2283 * - decoding: Set by user. 2283 * - decoding: Set by user.
2284 */ 2284 */
2285 int64_t request_channel_layout; 2285 int64_t request_channel_layout;
2286
2287 /**
2288 * Ratecontrol attempt to use, at maximum, <value> of what can be used without an underflow.
2289 * - encoding: Set by user.
2290 * - decoding: unused.
2291 */
2292 float rc_max_available_vbv_use;
2293
2294 /**
2295 * Ratecontrol attempt to use, at least, <value> times the amount needed to prevent a vbv overflow.
2296 * - encoding: Set by user.
2297 * - decoding: unused.
2298 */
2299 float rc_min_vbv_overflow_use;
2286 } AVCodecContext; 2300 } AVCodecContext;
2287 2301
2288 /** 2302 /**
2289 * AVCodec. 2303 * AVCodec.
2290 */ 2304 */