Mercurial > libavcodec.hg
comparison opt.h @ 4369:e10acab2322a libavcodec
Constantize AVOption, solve few warnings, patch from flameeyes@gentoo.org aka "the other Diego"
author | lu_zero |
---|---|
date | Sun, 21 Jan 2007 12:32:01 +0000 |
parents | c8c591fe26f8 |
children | b0016ed89048 |
comparison
equal
deleted
inserted
replaced
4368:db099de6638f | 4369:e10acab2322a |
---|---|
66 //FIXME think about enc-audio, ... style flags | 66 //FIXME think about enc-audio, ... style flags |
67 const char *unit; | 67 const char *unit; |
68 } AVOption; | 68 } AVOption; |
69 | 69 |
70 | 70 |
71 AVOption *av_set_string(void *obj, const char *name, const char *val); | 71 const AVOption *av_set_string(void *obj, const char *name, const char *val); |
72 AVOption *av_set_double(void *obj, const char *name, double n); | 72 const AVOption *av_set_double(void *obj, const char *name, double n); |
73 AVOption *av_set_q(void *obj, const char *name, AVRational n); | 73 const AVOption *av_set_q(void *obj, const char *name, AVRational n); |
74 AVOption *av_set_int(void *obj, const char *name, int64_t n); | 74 const AVOption *av_set_int(void *obj, const char *name, int64_t n); |
75 double av_get_double(void *obj, const char *name, AVOption **o_out); | 75 double av_get_double(void *obj, const char *name, const AVOption **o_out); |
76 AVRational av_get_q(void *obj, const char *name, AVOption **o_out); | 76 AVRational av_get_q(void *obj, const char *name, const AVOption **o_out); |
77 int64_t av_get_int(void *obj, const char *name, AVOption **o_out); | 77 int64_t av_get_int(void *obj, const char *name, const AVOption **o_out); |
78 const char *av_get_string(void *obj, const char *name, AVOption **o_out, char *buf, int buf_len); | 78 const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len); |
79 AVOption *av_next_option(void *obj, AVOption *last); | 79 const AVOption *av_next_option(void *obj, const AVOption *last); |
80 int av_opt_show(void *obj, void *av_log_obj); | 80 int av_opt_show(void *obj, void *av_log_obj); |
81 void av_opt_set_defaults(void *s); | 81 void av_opt_set_defaults(void *s); |
82 | 82 |
83 #endif | 83 #endif |