the jpeg function is passed the sam left right enen_odd fwd_inv with res_s returned in addition the the fromsum_s is returned as the 2nd value.