frame api and internal. special enum values to compute bpp fast.