Wrap state a struct, OS X stuff in osx/.
p1_video_frame_raw => p1_video_frame
Screw factories.