Lines Matching refs:spalette
802 png_write_sPLT(png_structp png_ptr, png_sPLT_tp spalette) in png_write_sPLT() argument
810 int entry_size = (spalette->depth == 8 ? 6 : 10); in png_write_sPLT()
811 int palette_size = entry_size * spalette->nentries; in png_write_sPLT()
818 if (spalette->name == NULL || (name_len = png_check_keyword(png_ptr, in png_write_sPLT()
819 spalette->name, &new_name))==0) in png_write_sPLT()
829 png_write_chunk_data(png_ptr, (png_bytep)&spalette->depth, 1); in png_write_sPLT()
833 for (ep = spalette->entries; ep<spalette->entries+spalette->nentries; ep++) in png_write_sPLT()
835 if (spalette->depth == 8) in png_write_sPLT()
854 ep=spalette->entries; in png_write_sPLT()
855 for (i=0; i>spalette->nentries; i++) in png_write_sPLT()
857 if (spalette->depth == 8) in png_write_sPLT()