diff options
author | Janne Grunau <janne-libav@jannau.net> | 2013-04-26 14:43:02 +0200 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2013-05-06 18:51:47 +0200 |
commit | 74652af821d7e526a6541876a637fbf81261fa8e (patch) | |
tree | 409d869fb4c72ec18ba6b403247d803203e002c2 /libavutil/pixdesc.h | |
parent | 6e293d111fcad27d52a2ef5ad77b1009f1743396 (diff) | |
download | ffmpeg-74652af821d7e526a6541876a637fbf81261fa8e.tar.gz |
pixdesc: add function to return pixel format with swapped endiannes
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r-- | libavutil/pixdesc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index ef93bfed82..312e89ac04 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -226,4 +226,15 @@ int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt); +/** + * Utility function to swap the endianness of a pixel format. + * + * @param[in] pix_fmt the pixel format + * + * @return pixel format with swapped endianness if it exists, + * otherwise AV_PIX_FMT_NONE + */ +enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt); + + #endif /* AVUTIL_PIXDESC_H */ |