A variant of this codec is implemented in form of the Sorenson codec.
External Links
... it discriminates between three qualitatively different cases: If the discriminant is zero, then there is a repeated solution x, and this solution is real. ...