Fix frame size calculation when decimation is disabled.

Also, extend wait_for_acquisition to be able to return a timeout error
code.
--BRJ