added macros for converting vsync mode string and integer values