diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-22 16:56:23 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-23 17:45:44 +0400 |
commit | e26782a9b4c170c272920da014b2265b5bf01d87 (patch) | |
tree | 6b456db8e60e23dfb705e702c95be8f1e8f274e2 /libavfilter/internal.h | |
parent | 2c6348ea67a6a2313dc9f9fab8d24c40b3303bca (diff) |
lavfi: add ff_parse_pixel_format() internal function, and use it
Reduce code duplication.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index d03b8b8455..b9613d5ada 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -64,6 +64,16 @@ int ff_fmt_is_in(int fmt, const int *fmts); /* Functions to parse audio format arguments */ /** + * Parse a pixel format. + * + * @param ret pixel format pointer to where the value should be written + * @param arg string to parse + * @param log_ctx log context + * @return 0 in case of success, a negative AVERROR code on error + */ +int ff_parse_pixel_format(enum PixelFormat *ret, const char *arg, void *log_ctx); + +/** * Parse a sample rate. * * @param ret unsigned integer pointer to where the value should be written |