[OPENJP2] change the way to compute *p_tx0, *p_tx1, *p_ty0, *p_ty1 in function