An electronic device for encoding a picture, comprising: a processor; a memory in electronic communication with the processor, wherein instructions stored in the memory are executable to: encode a first picture, a second picture, and pictures following the first picture and pictures following the second picture into a bitstream; wherein no picture that precedes the first picture in decoding order with a temporal identifier greater than or equal to a temporal identifier of the first picture is used for inter prediction when decoding the pictures with a temporal identifier greater than or equal to the temporal identifier of the first picture that follow the first picture in decoding order, and no picture that precedes the second picture in the decoding order with a temporal identifier greater than or equal to a temporal identifier of the second picture is used for inter prediction when decoding the pictures that follow the second picture in the decoding order with a temporal identifier equal to the temporal identifier of the second picture; encode a first picture indicator and a second picture indicator into the bitstream; wherein the first picture indicator is associated with the first picture and the second picture indicator is associated with the second picture, wherein the first picture indicator is different from the second picture indicator, and each of the first picture indicator and the second picture indicator is a Network Abstraction Layer, NAL, unit type, and the second picture provides temporal layer switching functionality. a processor; a memory in electronic communication with the processor, wherein instructions stored in the memory are executable to: encode a first picture, a second picture, and pictures following the first picture and pictures following the second picture into a bitstream; wherein no picture that precedes the first picture in decoding order with a temporal identifier greater than or equal to a temporal identifier of the first picture is used for inter prediction when decoding the pictures with a temporal identifier greater than or equal to the temporal identifier of the first picture that follow the first picture in decoding order, and no picture that precedes the second picture in the decoding order with a temporal identifier greater than or equal to a temporal identifier of the second picture is used for inter prediction when decoding the pictures that follow the second picture in the decoding order with a temporal identifier equal to the temporal identifier of the second picture; encode a first picture indicator and a second picture indicator into the bitstream; wherein the first picture indicator is associated with the first picture and the second picture indicator is associated with the second picture, wherein the first picture indicator is different from the second picture indicator, and each of the first picture indicator and the second picture indicator is a Network Abstraction Layer, NAL, unit type, and the second picture provides temporal layer switching functionality. encode a first picture, a second picture, and pictures following the first picture and pictures following the second picture into a bitstream; wherein no picture that precedes the first picture in decoding order with a temporal identifier greater than or equal to a temporal identifier of the first picture is used for inter prediction when decoding the pictures with a temporal identifier greater than or equal to the temporal identifier of the first picture that follow the first picture in decoding order, and no picture that precedes the second picture in the decoding order with a temporal identifier greater than or equal to a temporal identifier of the second picture is used for inter prediction when decoding the pictures that follow the second picture in the decoding order with a temporal identifier equal to the temporal identifier of the second picture; encode a first picture indicator and a second picture indicator into the bitstream; wherein the first picture indicator is associated with the first picture and the second picture indicator is associated with the second picture, wherein the first picture indicator is different from the second picture indicator, and each of the first picture indicator and the second picture indicator is a Network Abstraction Layer, NAL, unit type, and the second picture provides temporal layer switching functionality.