codeNum = leadingZeroBits 1 + ead_bits(leadingZeroBits) where the value returned from read_bits( leadingZeroBits is interpreted as a binary representation of an unsigned integer with most significant bit written first. When ref_layer_dq_id is greater than or equal to 0 and ( can_idx_end-scan idx_start is less than 15, codeNum is set equal to (codeNum - 1). Depending on codeNum, the following applies: If codeNum is equal to -1, the following ordered steps are specified: The derivation process for neighbouring macroblocks specified in clause 6.4.11.1 is invoked and the output is assigned to mbAddrA and mbAddrB. 2. When mbAddrN is available, the variable codedBlockPatternN (with N being either A or B) is derived as follows: If mb_type for the macroblock mbAddrN is equal to P_Skip, B_Skip, or I_PCM, codedBlockPatternN is set equal to 0. Otherwise (mb_type for the macroblock mbAddrN is not equal to P_Skip, B_Skip, or I_PCM), codedBlockPatternN is set equal to (16 * cbpChromaN + cbpLumaN) with cbpChromaN and cbpLumaN representing the values of CodedBlockPatternLuma and CodedBlockPatternChroma for the macroblock mbAddrN. 3. Depending on mbAddrA and mbAddrB, the following applies: If mbAddrA is available, coded_block_pattern is set equal to codedBlockPatternA. Otherwise, if mbAddrB is available, coded_block_pattern is set equal to codedBlockPatternB. Otherwise (mbAddrA and mbAddrB are not available), coded_block_pattern is set equal to 0. Otherwise (codeNum is greater than or equal to 0), the mapping process for coded block pattern as specified in clause 9.1.2 is invoked with codeNum as input and the output is assigned to the syntax element coded_block_pattern. G.9.2 Alternative CAVLC parsing process for transform coefficient levels This process is invoked for the parsing syntax elements with descriptor equal to ce(v) when entropy_coding_mode_flag is equal to 0. Inputs to this process are a request for a value of a syntax element, bits from slice data, a maximum number of non-zero transform coefficient levels maxNumCoeff