each P, EP, B, or EB slice. Inputs to this process are: a variable currDependencyId, a variable useRefBasePicFlag, the current slice currSlice. Outputs of this process are: a reference picture list refPicList0, for B and EB slices, a reference picture list refPicList1. After applying the process described in this clause, the output reference picture lists refPicList0 and refPicList1 (when applicable) shall not contain any pictures for which the syntax element temporal_id is greater than the syntax element temporal_id of the current picture. From here to the end of this clause, the modifications a) and b) specified in clause G.8.2 apply. Unless stated otherwise, the syntax elements and derived upper-case variables that are referred to by the process specified in this clause and all child processes invoked from this process are the syntax elements and derived upper-case variables for the slice header of the current slice currSlice, the current picture parameter, which is identified by the syntax element c_parameter_set_id inside the slice header of the current slice currSlice, and the current sequence parameter, which is identified by the syntax element seq_parameter_set_idi inside the current picture parameter set. A variable biPred is derived as follows: If the current slice currSlice is a B or EB slice, biPred is set equal to 1. Otherwise, biPred is set equal to 0. Rec. ITU-T H.264 (01/2012) Decoded reference pictures are marked as "used for short-term reference" or "used for long-term reference" as specified by the bitstream and specified in clause G.8.2.4. Short-term reference pictures are identified by the value of frame_num that is decoded in the slice header(s) with dependency_id equal to currDependencyId. Long-term reference pictures are identified by a long-term frame index as specified by the bitstream and specified in clause G.8.2.4. Clause G.8.2.2 is invoked with currDependencyId, refPicListConstructionFlag equal to 1, and useRefBasePicFlag as inputs to specify the following: the assignment of variable