find max number of bit planes in code block