26 0x80, 0x80, 0x08, 0x88, 0x22, 0xaa, 0x55,
64 int shift, xmin, pass_width;
70 pass_width = (width - xmin + (1 <<
shift) - 1) >>
shift;
71 return (pass_width * bits_per_pixel + 7) >> 3;
static int shift(int a, int b)
static const uint8_t ff_png_pass_xmin[NB_PASSES]
#define PNG_COLOR_MASK_PALETTE
int ff_png_get_nb_channels(int color_type)
static void * av_mallocz_array(size_t nmemb, size_t size)
#define PNG_COLOR_MASK_COLOR
Libavcodec external API header.
const uint8_t ff_png_pass_ymask[NB_PASSES]
#define PNG_COLOR_MASK_ALPHA
static const uint8_t ff_png_pass_xshift[NB_PASSES]
void ff_png_zfree(void *opaque, void *ptr)
int ff_png_pass_row_size(int pass, int bits_per_pixel, int width)
void * ff_png_zalloc(void *opaque, unsigned int items, unsigned int size)