LipFormer: High-fidelity and Generalizable Talking Face Generation with A Pre-learned Facial Codebook