planar kernel now calculating msb for each code block (all four channels)