Signed-off-by: James Almer <jamrial@gmail.com>
Instead, accept PPS/SPS as function arguments. Makes the code shorter and significantly reduces diff in future commits.