Mercurial > libavcodec.hg
comparison avcodec.h @ 7530:398636f16e7e libavcodec
Add a generic function to lavc to log messages about missing features.
Patch by Justin Ruggles (justin ruggles gmail com)
author | superdump |
---|---|
date | Sun, 10 Aug 2008 20:29:43 +0000 |
parents | 560ebb4bca76 |
children | 63c782094e3a |
comparison
equal
deleted
inserted
replaced
7529:6b13ee6a63ca | 7530:398636f16e7e |
---|---|
3009 * @param[in,out] frame_rate pointer to the AVRational which will contain the detected | 3009 * @param[in,out] frame_rate pointer to the AVRational which will contain the detected |
3010 * frame rate | 3010 * frame rate |
3011 */ | 3011 */ |
3012 int av_parse_video_frame_rate(AVRational *frame_rate, const char *str); | 3012 int av_parse_video_frame_rate(AVRational *frame_rate, const char *str); |
3013 | 3013 |
3014 /** | |
3015 * Logs a generic warning message about a missing feature. | |
3016 * @param[in] avc a pointer to an arbitrary struct of which the first field is | |
3017 * a pointer to an AVClass struct | |
3018 * @param[in] feature string containing the name of the missing feature | |
3019 * @param[in] want_sample indicates if samples are wanted which exhibit this feature. | |
3020 * If \p want_sample is non-zero, additional verbage will be added to the log | |
3021 * message which tells the user how to report samples to the development | |
3022 * mailing list. | |
3023 */ | |
3024 void av_log_missing_feature(void *avc, const char *feature, int want_sample); | |
3025 | |
3014 /* error handling */ | 3026 /* error handling */ |
3015 #if EINVAL > 0 | 3027 #if EINVAL > 0 |
3016 #define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */ | 3028 #define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */ |
3017 #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */ | 3029 #define AVUNERROR(e) (-(e)) /**< Returns a POSIX error code from a library function error return value. */ |
3018 #else | 3030 #else |