Revision c11c2bc2 libavcodec/avcodec.h
libavcodec/avcodec.h  

11  11 
extern "C" { 
12  12 
#endif 
13  13  
14 
#include "common.h" 

15 
#include "rational.h" 

14 
#include "avutil.h" 

16  15 
#include <sys/types.h> /* size_t */ 
17  16  
18  17 
//FIXME the following 2 really dont belong in here 
...  ...  
22  21 
#define AV_STRINGIFY(s) AV_TOSTRING(s) 
23  22 
#define AV_TOSTRING(s) #s 
24  23  
25 
#define LIBAVCODEC_VERSION_INT ((49<<16)+(0<<8)+0)


26 
#define LIBAVCODEC_VERSION 49.0.0


24 
#define LIBAVCODEC_VERSION_INT ((49<<16)+(0<<8)+1)


25 
#define LIBAVCODEC_VERSION 49.0.1


27  26 
#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT 
28  27  
29  28 
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) 
...  ...  
279  278 
ME_X1 
280  279 
}; 
281  280  
282 
enum AVRounding { 

283 
AV_ROUND_ZERO = 0, ///< round toward zero 

284 
AV_ROUND_INF = 1, ///< round away from zero 

285 
AV_ROUND_DOWN = 2, ///< round toward infinity 

286 
AV_ROUND_UP = 3, ///< round toward +infinity 

287 
AV_ROUND_NEAR_INF = 5, ///< round to nearest and halfway cases away from zero 

288 
}; 

289  
290  281 
enum AVDiscard{ 
291  282 
//we leave some space between them for extensions (drop some keyframes for intra only or drop just some bidir frames) 
292  283 
AVDISCARD_NONE =16, ///< discard nothing 
...  ...  
2308  2299 
*/ 
2309  2300 
char av_get_pict_type_char(int pict_type); 
2310  2301  
2311 
/** 

2312 
* reduce a fraction. 

2313 
* this is usefull for framerate calculations 

2314 
* @param max the maximum allowed for dst_nom & dst_den 

2315 
* @return 1 if exact, 0 otherwise 

2316 
*/ 

2317 
int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max); 

2318  
2319 
/** 

2320 
* rescale a 64bit integer with rounding to nearest. 

2321 
* a simple a*b/c isn't possible as it can overflow 

2322 
*/ 

2323 
int64_t av_rescale(int64_t a, int64_t b, int64_t c); 

2324  
2325 
/** 

2326 
* rescale a 64bit integer with specified rounding. 

2327 
* a simple a*b/c isn't possible as it can overflow 

2328 
*/ 

2329 
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding); 

2330  
2331 
/** 

2332 
* rescale a 64bit integer by 2 rational numbers. 

2333 
*/ 

2334 
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq); 

2335  
2336 
double av_int2dbl(int64_t v); 

2337 
float av_int2flt(int32_t v); 

2338 
int64_t av_dbl2int(double d); 

2339 
int32_t av_flt2int(float d); 

2340  
2341  2302  
2342  2303 
/* frame parsing */ 
2343  2304 
typedef struct AVCodecParserContext { 
Also available in: Unified diff