JM h264 implementation with vector quantization