Patent ID: 8831087

Claim:
A method of encoding video data, the method comprising: receiving first and second reference coded units of the video data, wherein each of the first and second coded units each comprise respective first and second reference video data units; performing default weighted prediction to predict a first version of a predictive video data unit of a predictive coded unit of the video data from the first and second reference video data units, wherein each of the two reference coded units occur either temporally before or after the predictive coded unit; calculating an offset value for the first version of the predictive video data unit as a function of at least one of the first and second reference video data units and the predictive video data unit; comparing the calculated offset value to a threshold value; selecting, based on the comparison of the calculated offset value to the threshold value, either an implicit or explicit weighted prediction mode; performing the selected mode to predict a second version of the predictive video data unit from the first and second reference video data units; and encoding the predictive video data unit only as either the first version or the second version.