I only know about them because I'm a fan of Black Adder. The medieval portion of it features codpieces, and I think one episode went into how to select the size according to your position in the court vs the function you were going to. Funny stuff if you like dry British humor.