Discriminants of a Class of Self-inversive Polynomials and Real Binary Forms