partial merge video encoder