vp6enc: split out future common parts to share them with VP7 encoder