30 0x80, 0x80, 0x08, 0x88, 0x22, 0xaa, 0x55,
45 0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff
73 int shift, xmin, pass_width;
79 pass_width = (width - xmin + (1 << shift) - 1) >> shift;
80 return (pass_width * bits_per_pixel + 7) >> 3;
static const uint8_t ff_png_pass_xmin[NB_PASSES]
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
#define PNG_COLOR_MASK_PALETTE
int ff_png_get_nb_channels(int color_type)
#define PNG_COLOR_MASK_COLOR
const uint8_t ff_mngsig[8]
Libavcodec external API header.
const uint8_t ff_png_pass_mask[NB_PASSES]
const uint8_t ff_png_pass_ymask[NB_PASSES]
#define PNG_COLOR_MASK_ALPHA
static const uint8_t ff_png_pass_xshift[NB_PASSES]
const uint8_t ff_pngsig[8]
void ff_png_zfree(void *opaque, void *ptr)
int ff_png_pass_row_size(int pass, int bits_per_pixel, int width)
static void * av_mallocz_array(size_t nmemb, size_t size)
void * ff_png_zalloc(void *opaque, unsigned int items, unsigned int size)