summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJustin Ruggles <jruggle@earthlink.net>2008-08-10 20:29:43 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-10 20:29:43 +0000
commitea779d91cae8a30e316c11f3ec7a03b3f3f7fae0 (patch)
treeddb85ed824cf5916f5838876e5c2d2f17a08b550 /libavcodec/avcodec.h
parentaf1761915bda2a5bd53024975234b25e3fbbcb59 (diff)
Add a generic function to lavc to log messages about missing features.
Patch by Justin Ruggles (justin ruggles gmail com) Originally committed as revision 14685 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c9f8ae4530..b141e32037 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3011,6 +3011,18 @@ int av_parse_video_frame_size(int *width_ptr, int *height_ptr, const char *str);
*/
int av_parse_video_frame_rate(AVRational *frame_rate, const char *str);
+/**
+ * Logs a generic warning message about a missing feature.
+ * @param[in] avc a pointer to an arbitrary struct of which the first field is
+ * a pointer to an AVClass struct
+ * @param[in] feature string containing the name of the missing feature
+ * @param[in] want_sample indicates if samples are wanted which exhibit this feature.
+ * If \p want_sample is non-zero, additional verbage will be added to the log
+ * message which tells the user how to report samples to the development
+ * mailing list.
+ */
+void av_log_missing_feature(void *avc, const char *feature, int want_sample);
+
/* error handling */
#if EINVAL > 0
#define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */