The IAB and the 3MS have established a clear definition for a viewable video or display ad impression.
Display Viewable Impression
A display impression is considered to have been viewable if at least 50% of the pixels of the creative were in the viewport for at least 1 second.
Video Viewable Impression
A video advertisement is considered to have been viewable if at least 50% of the video player area was in view for at least 2 seconds.
Considerations
It is important to recognize that the viewability standard is centered on measuring the "opportunity to see" in much the same way that it is in print and television. Therefore, viewability does not imply anything about the incremental value of an impression other than to say that a non-viewable impression has no value.
Furthermore, a viewability is not a measure of the overall value of an impression.