Mercurial > libavformat.hg
comparison utils.c @ 1627:e4f1922ac981 libavformat
removed unused av_frac_set
author | bcoudurier |
---|---|
date | Mon, 08 Jan 2007 14:44:13 +0000 |
parents | 8a13bce78882 |
children | a216ebdce1ff |
comparison
equal
deleted
inserted
replaced
1626:8a13bce78882 | 1627:e4f1922ac981 |
---|---|
30 * Various utility functions for using ffmpeg library. | 30 * Various utility functions for using ffmpeg library. |
31 */ | 31 */ |
32 | 32 |
33 static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den); | 33 static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den); |
34 static void av_frac_add(AVFrac *f, int64_t incr); | 34 static void av_frac_add(AVFrac *f, int64_t incr); |
35 static void av_frac_set(AVFrac *f, int64_t val); | |
36 | 35 |
37 /** head of registered input format linked list. */ | 36 /** head of registered input format linked list. */ |
38 AVInputFormat *first_iformat = NULL; | 37 AVInputFormat *first_iformat = NULL; |
39 /** head of registered output format linked list. */ | 38 /** head of registered output format linked list. */ |
40 AVOutputFormat *first_oformat = NULL; | 39 AVOutputFormat *first_oformat = NULL; |
3078 f->num = num; | 3077 f->num = num; |
3079 f->den = den; | 3078 f->den = den; |
3080 } | 3079 } |
3081 | 3080 |
3082 /** | 3081 /** |
3083 * Set f to (val + 0.5). | |
3084 */ | |
3085 static void av_frac_set(AVFrac *f, int64_t val) | |
3086 { | |
3087 f->val = val; | |
3088 f->num = f->den >> 1; | |
3089 } | |
3090 | |
3091 /** | |
3092 * Fractionnal addition to f: f = f + (incr / f->den). | 3082 * Fractionnal addition to f: f = f + (incr / f->den). |
3093 * | 3083 * |
3094 * @param f fractional number | 3084 * @param f fractional number |
3095 * @param incr increment, can be positive or negative | 3085 * @param incr increment, can be positive or negative |
3096 */ | 3086 */ |