diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-11-24 04:30:09 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-11-24 16:55:45 +0100 |
commit | 573ffbb3b563d8ab9e4363acfad62d1a688f05c1 (patch) | |
tree | b1d0ce04a05ac493ed86a12c060dc8c412d5c4b2 /libavutil/samplefmt.h | |
parent | afb0470a2559c54ff41c9947f848ac7d58ac1003 (diff) | |
download | ffmpeg-streaming-573ffbb3b563d8ab9e4363acfad62d1a688f05c1.zip ffmpeg-streaming-573ffbb3b563d8ab9e4363acfad62d1a688f05c1.tar.gz |
lavu: add av_get_alt_sample_fmt().
Diffstat (limited to 'libavutil/samplefmt.h')
-rw-r--r-- | libavutil/samplefmt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h index 92c006d..855cffd 100644 --- a/libavutil/samplefmt.h +++ b/libavutil/samplefmt.h @@ -54,6 +54,14 @@ const char *av_get_sample_fmt_name(enum AVSampleFormat sample_fmt); enum AVSampleFormat av_get_sample_fmt(const char *name); /** + * Return the planar<->packed alternative form of the given sample format, or + * AV_SAMPLE_FMT_NONE on error. If the passed sample_fmt is already in the + * requested planar/packed format, the format returned is the same as the + * input. + */ +enum AVSampleFormat av_get_alt_sample_fmt(enum AVSampleFormat sample_fmt, int planar); + +/** * Generate a string corresponding to the sample format with * sample_fmt, or a header if sample_fmt is negative. * |