What does "codpiece" mean?

Codpiece: A part of male dress in front of the breeches, formerly made very conspicuous. Shak. Fosbroke.

Sources