Lines Matching refs:npalette
381 int bit_depth, unsigned int npalette, int interlace_type, in standard_name() argument
388 pos = safecatn(buffer, bufsize, pos, npalette); in standard_name()
392 else if (npalette != 0) in standard_name()
717 int npalette; /* Number of entries in palette */ member
800 int npalette; member
881 ps->npalette = 0; in store_init()
910 ps->npalette = 0; in store_freenew()
942 (*ppf)->npalette = 0; in store_freefile()
996 pf->npalette = ps->npalette; in store_storefile()
998 ps->npalette = 0; in store_storefile()
1741 store_write_palette(png_store *ps, int npalette) in store_write_palette() argument
1750 if (npalette > 0) in store_write_palette()
1752 ps->palette = voidcast(store_palette_entry*, malloc(npalette * in store_write_palette()
1758 ps->npalette = npalette; in store_write_palette()
1766 store_current_palette(png_store *ps, int *npalette) in store_current_palette() argument
1778 *npalette = ps->current->npalette; in store_current_palette()
3545 make_standard_palette(png_store* ps, int npalette, int do_tRNS) in make_standard_palette() argument
3625 palette = store_write_palette(ps, npalette); in make_standard_palette()
3627 for (i=0; i<npalette; ++i) in make_standard_palette()
3644 init_standard_palette(png_store *ps, png_structp pp, png_infop pi, int npalette, in init_standard_palette() argument
3647 store_palette_entry *ppal = make_standard_palette(ps, npalette, do_tRNS); in init_standard_palette()
3654 for (i=0; i<npalette; ++i) in init_standard_palette()
3665 png_set_PLTE(pp, pi, palette, npalette); in init_standard_palette()
3674 for (i=j=0; i<npalette; ++i) in init_standard_palette()
4965 int npalette; /* Number of entries in the palette. */ member
5001 dp->npalette = 0; in standard_display_init()
5014 store_palette_entry *palette = store_current_palette(dp->ps, &dp->npalette); in standard_palette_init()
5017 if (dp->npalette > 0) in standard_palette_init()
5019 int i = dp->npalette; in standard_palette_init()
5044 read_palette(store_palette palette, int *npalette, png_const_structp pp, in read_palette() argument
5052 *npalette = -1; in read_palette()
5054 if (png_get_PLTE(pp, pi, &pal, npalette) & PNG_INFO_PLTE) in read_palette()
5056 int i = *npalette; in read_palette()
5071 memset(palette + *npalette, 126, (256-*npalette) * sizeof *palette); in read_palette()
5076 if (*npalette != (-1)) in read_palette()
5079 *npalette = 0; in read_palette()
5102 if (trans_alpha == NULL || num <= 0 || num > 256 || num > *npalette) in read_palette()
5108 for (num=*npalette; i<num; ++i) in read_palette()
5122 for (i=0, num=*npalette; i<num; ++i) in read_palette()
5139 int npalette; in standard_palette_validate() local
5142 if (read_palette(palette, &npalette, pp, pi) != dp->is_transparent) in standard_palette_validate()
5145 if (npalette != dp->npalette) in standard_palette_validate()
5151 pos = safecatn(msg, sizeof msg, pos, dp->npalette); in standard_palette_validate()
5153 pos = safecatn(msg, sizeof msg, pos, npalette); in standard_palette_validate()
5158 int i = npalette; /* npalette is aliased */ in standard_palette_validate()
6790 int npalette = (-1); in transform_image_validate() local
6792 (void)read_palette(out_palette, &npalette, pp, pi); in transform_image_validate()
6793 if (npalette != dp->this.npalette) in transform_image_validate()
10676 unsigned int npalette = 0; in perform_gamma_sbit_tests() local
10678 while (next_format(&colour_type, &bit_depth, &npalette, in perform_gamma_sbit_tests()
10692 gamma_transform_test(pm, colour_type, bit_depth, npalette, in perform_gamma_sbit_tests()