19 #ifndef MPLAYER_MP_IMAGE_H 20 #define MPLAYER_MP_IMAGE_H 26 #undef fprintf //FIXME 37 #define ASMALIGN(ZEROBITS) ".p2align " #ZEROBITS "\n\t" 38 #define CODEC_FLAG2_MEMC_ONLY 0x00001000 46 #define MP_IMGFLAG_PRESERVE 0x01 55 #define MP_IMGFLAG_READABLE 0x02 59 #define MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE 0x4 61 #define MP_IMGFLAG_PREFER_ALIGNED_STRIDE 0x8 63 #define MP_IMGFLAG_ACCEPT_STRIDE 0x10 65 #define MP_IMGFLAG_ACCEPT_WIDTH 0x20 68 #define MP_IMGFLAG_COMMON_STRIDE 0x40 70 #define MP_IMGFLAG_COMMON_PLANE 0x80 72 #define MP_IMGFLAGMASK_RESTRICTIONS 0xFF 76 #define MP_IMGFLAG_PLANAR 0x100 78 #define MP_IMGFLAG_YUV 0x200 80 #define MP_IMGFLAG_SWAPPED 0x400 82 #define MP_IMGFLAG_RGB_PALETTE 0x800 84 #define MP_IMGFLAGMASK_COLORS 0xF00 89 #define MP_IMGFLAG_DRAW_CALLBACK 0x1000 91 #define MP_IMGFLAG_DIRECT 0x2000 93 #define MP_IMGFLAG_ALLOCATED 0x4000 96 #define MP_IMGFLAG_TYPE_DISPLAYED 0x8000 100 #define MP_IMGTYPE_EXPORT 0 102 #define MP_IMGTYPE_STATIC 1 104 #define MP_IMGTYPE_TEMP 2 106 #define MP_IMGTYPE_IP 3 108 #define MP_IMGTYPE_IPB 4 110 #define MP_IMGTYPE_NUMBERED 5 114 #define MP_IMGTYPE_INCOMPLETE 6 116 #define MP_MAX_PLANES 4 118 #define MP_IMGFIELD_ORDERED 0x01 119 #define MP_IMGFIELD_TOP_FIRST 0x02 120 #define MP_IMGFIELD_REPEAT_FIRST 0x04 121 #define MP_IMGFIELD_TOP 0x08 122 #define MP_IMGFIELD_BOTTOM 0x10 123 #define MP_IMGFIELD_INTERLACED 0x20 struct mp_image mp_image_t
mp_image_t * ff_new_mp_image(int w, int h)
void ff_mp_image_setfmt(mp_image_t *mpi, unsigned int out_fmt)
unsigned char * planes[MP_MAX_PLANES]
int stride[MP_MAX_PLANES]
void ff_copy_mpi(mp_image_t *dmpi, mp_image_t *mpi)
simple assert() macros that are a bit more flexible than ISO C assert().
void ff_mp_image_alloc_planes(mp_image_t *mpi)
enum AVPixelFormat ff_mp2ff_pix_fmt(int mp)
void ff_free_mp_image(mp_image_t *mpi)
mp_image_t * ff_alloc_mpi(int w, int h, unsigned long int fmt)
AVPixelFormat
Pixel format.