Patent attributes
In one embodiment, the method includes determining reference picture index numbers in a reference picture list. The reference picture index numbers increase for reference pictures having a decreasing display order with respect to a picture including the macroblock. The reference picture index numbers increase for reference pictures having an increasing display order with respect to the picture including the macroblock, and the reference picture index numbers of the reference pictures having a decreasing display order are less than the reference picture index numbers of the reference pictures having an increasing display order. The embodiment further includes reordering the reference picture index number allocated to each reference picture in the reference picture list, obtaining a field reference picture index associated with the current field macroblock, determining a frame reference picture index based on the field reference picture index and the reference picture index numbers, and selecting a field reference picture having a parity equal to a parity of the field macroblock if the field reference picture index is an even value.