diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-16 19:37:52 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-19 11:12:17 +0100 |
commit | 2c328a907978b61949fd20f7c991803174337855 (patch) | |
tree | c9b35c50f10bcdcd85ec28cc25ee8b8904c3b8dc /libavutil/pixdesc.h | |
parent | e5c32d6da7836c7c9bb8393cb4de7e0997a4363b (diff) | |
download | ffmpeg-2c328a907978b61949fd20f7c991803174337855.tar.gz |
pixdesc: add a function for counting planes in a pixel format.
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r-- | libavutil/pixdesc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index 47e6bb838d..ef93bfed82 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -219,5 +219,11 @@ enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc); int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift); +/** + * @return number of planes in pix_fmt, a negative AVERROR if pix_fmt is not a + * valid pixel format. + */ +int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt); + #endif /* AVUTIL_PIXDESC_H */ |