summaryrefslogtreecommitdiff
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-22 14:56:23 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-23 15:45:44 +0200
commite26782a9b4c170c272920da014b2265b5bf01d87 (patch)
tree6b456db8e60e23dfb705e702c95be8f1e8f274e2 /libavfilter/internal.h
parent2c6348ea67a6a2313dc9f9fab8d24c40b3303bca (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.h10
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