macroblock parser refactoring