Windowgram block conversion functions