34 #include "libavutil/imgutils.h"
75 memcpy(mpi->
planes[1], temp, 1024);
100 mpi->
w*(dmpi->
bpp/8), mpi->
h,
236 if(!mpi)
return NULL;
void ff_mp_image_setfmt(mp_image_t *mpi, unsigned int out_fmt)
void ff_free_mp_image(mp_image_t *mpi)
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt)
enum AVPixelFormat ff_mp2ff_pix_fmt(int mp)
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
void ff_mp_image_alloc_planes(mp_image_t *mpi)
#define MP_IMGFLAG_RGB_PALETTE
void ff_copy_mpi(mp_image_t *dmpi, mp_image_t *mpi)
mp_image_t * ff_alloc_mpi(int w, int h, unsigned long int fmt)
#define memcpy_pic(d, s, b, h, ds, ss)
int stride[MP_MAX_PLANES]
#define MP_IMGFLAG_ALLOCATED
unsigned char * planes[MP_MAX_PLANES]
void ff_mp_msg(int mod, int lev, const char *format,...)
#define MP_IMGFLAG_PLANAR
mp_image_t * ff_new_mp_image(int w, int h)
#define MP_IMGFLAG_SWAPPED