staging: bcm2835-camera: Move encode component setup in its own function