and if its 720p vs h264 vs Xvid (in quality)

i think the ranking would be:

720p
h264
Xvid...

am i right?