// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.quantization =pkg core.2d.quantization =title core.2d.quantization =short =desc Documentation in progress... // // //------------------ PROTO ----------------------------------------------------- quantization +Proto quantization =type fun Bitmap Int -> [Str array Int] =mode function =pkg core.2d.quantization =impl mcy =link =desc // +arg bmp =type Bitmap =desc // +arg paletteMaxLength =type Int =desc // +arg result =type [Str array Int] =desc // // //------------------ PROTO ----------------------------------------------------- bitmapPalettize +Proto bitmapPalettize =type fun Bitmap Octree2Colors array Int -> Str =mode function =pkg core.2d.quantization =impl mcy =link =desc // +arg frame =type Bitmap =desc // +arg paletteOctree =type Octree2Colors =desc // +arg aPalette =type array Int =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- paletteProject +Proto paletteProject =type fun array Int Octree2Colors Int -> Int =mode function =pkg core.2d.quantization =impl mcy =link =desc // +arg aPalette =type array Int =desc // +arg paletteOctree =type Octree2Colors =desc // +arg rgb =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- paletteFromQuantization +Proto paletteFromQuantization =type fun Octree2Colors -> [Octree2Colors array Int] =mode function =pkg core.2d.quantization =impl mcy =link =desc // +arg quantifiedOctree =type Octree2Colors =desc // +arg result =type [Octree2Colors array Int] =desc // // //------------------ PROTO ----------------------------------------------------- quantifyFrame +Proto quantifyFrame =type fun Octree2Colors Int Bitmap -> Octree2Colors =mode function =pkg core.2d.quantization =impl mcy =link =desc // +arg quantifiedOctree =type Octree2Colors =desc // +arg paletteMaxLength =type Int =desc // +arg frame =type Bitmap =desc // +arg result =type Octree2Colors =desc