avcodec/pthread: add wpp api
hevc: add wavefront parallel processing