 arrays refIdxL0 and refIdxL1 are initially set equal to -1. Two (PicSizeInMbs)x4x4x2 arrays mvL0 and mvL1 specifying motion vector components for the macroblocks of a layer representation. An element of these arrays for a macroblock with address mbAddr, a macroblock partition index mbPartIdx, a sub-macroblock partition index subMbPartIdx, and a motion vector component index c is referred to as mvLX[ mbAddr ][ mbPartIdx ][ subMbPartIdx ][ C with X being replaced by 0 or 1. A one-dimensional array with 2 elements representing the motion vector for a sub-macroblock partition subMbPartIdx of a macroblock partition mbPartIdx inside a macroblock mbAddr is referred to as mvLX| mbAddr ][ mbPartIdx ][ subMbPartIdx ] with X being replaced by 0 or 1. A 4x2 array representing the motion vectors for a macroblock partition mbPartIdx inside a macroblock mbAddr is referred to as mvLX[ mbAddr ][ mbPartIdx ] with X being replaced by 0 or 1. A 4x4x2 array representing the motion vectors for a macroblock mbAddr is referred to as mvLX[ mbAddr ] with X being replaced by 0 or 1. A motion vector component with component index C for a macroblock partition mbPartIdx of a macroblock mbAddr that is not split into sub-macroblock partitions can also be referred to as mvLX[ mbAddr ][ mbPartIdx ][ c ] with X being replaced by 0 or 1, which is identical to mvLX[ mbAddr ][ mbPartIdx ][ 0 ][ C ]. A motion vector for a macroblock partition mbPartIdx of a macroblock mbAddr that is not split into sub-macroblock partitions can also be referred to as mvLX| mbAddr ][ mbPartIdx with X being replaced by 0 or 1, which is identical to mvLX| mbAddr mbPartIdx ][ 0]. All elements of the arrays mvL0 and mvL1 are initially set equal to 0. A (PicSizeInMbs)x(256 MbWidthC MbHeightC) array tCoeffLevel specifying transform coefficient level values for the macroblocks of a layer representation. An element of this array for a macroblock with address Rec. ITU-T H.264 (01/2012) mbAddr and a transform coefficient index tCoeffldx is referred to as tCoeffLevel[ mbAddr ][ t