lavc/ccaption_dec: extract capture_screen() for future use