Add a function to get the frame size from a format