Convert from a RGB-24 image to a RGB-8 image?

I am trying to capture some test footage with a firewire camera using ofxVideoRecorder. The addon needs 8-bit per channel rgb pixel data, but my footage is coming in as 24-bit. How do I convert?