Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9220:cb62e27e2c07 | 9221:a15ec86bf752 |
---|---|
25 #define AVCODEC_IMGCONVERT_H | 25 #define AVCODEC_IMGCONVERT_H |
26 | 26 |
27 #include <stdint.h> | 27 #include <stdint.h> |
28 #include "avcodec.h" | 28 #include "avcodec.h" |
29 | 29 |
30 int ff_fill_linesize(AVPicture *picture, int pix_fmt, int width); | 30 int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width); |
31 | 31 |
32 int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, int pix_fmt, int height); | 32 int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height); |
33 | 33 |
34 int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane); | 34 int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane); |
35 | 35 |
36 int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt); | 36 int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt); |
37 | 37 |