The oxidation state of oxygen in O2PtF6 is
zero
-1/2
+1
+1/2
O2PtF6 is considered to be formed from O2+ and [PtF6]1-. In O2+1, oxidation state of O is 2x = +1.
x=+12