Mercurial > libavcodec.hg
diff imgconvert.h @ 9221:a15ec86bf752 libavcodec
Globally prefer enum PixelFormat over int when it makes sense.
author | stefano |
---|---|
date | Sat, 21 Mar 2009 22:24:44 +0000 |
parents | 058ade8fcc89 |
children | 035ca6548e29 |
line wrap: on
line diff
--- a/imgconvert.h Sat Mar 21 16:14:55 2009 +0000 +++ b/imgconvert.h Sat Mar 21 22:24:44 2009 +0000 @@ -27,9 +27,9 @@ #include <stdint.h> #include "avcodec.h" -int ff_fill_linesize(AVPicture *picture, int pix_fmt, int width); +int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width); -int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, int pix_fmt, int height); +int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height); int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane);