A method of encoding High Efficiency Video Coding, HEVC, video data, the method performed by an encoding device and comprising: encoding a plurality of blocks (800, 802) of the video data, wherein at least one block (812, 822) of the plurality of blocks of video data is coded using a lossless coding mode, wherein encoding the at least one block using the lossless coding mode comprises: i) predicting the at least one block to generate a predicted block for the lossless coding mode, ii) encoding the at least one block based on the predicted block and an un-quantized residual, and iii) signaling un-quantized residual video data of the at least one block in a bitstream; assigning a non-zero quantization parameter, QP, value for the at least one block that is coded using a lossless coding mode based on a predicted QP value for the at least one block; determining whether to perform deblocking filtering of each of the plurality of blocks, wherein determining whether to perform deblocking filtering of each of the plurality of blocks comprises: i) determining whether to perform deblocking filtering on an adjacent block (804, 806, 808, 810, 814, 816, 818, 820) located adjacent to the at least one block and coded using a lossy coding mode, based on the assigned non-zero QP value for the at least one block that is coded using a lossless coding mode, and ii) determining to avoid performing deblocking filtering on the at least one block that is coded using a lossless coding mode; and performing deblocking filtering for each of the plurality of blocks based on the respective determinations. encoding a plurality of blocks (800, 802) of the video data, wherein at least one block (812, 822) of the plurality of blocks of video data is coded using a lossless coding mode, wherein encoding the at least one block using the lossless coding mode comprises: i) predicting the at least one block to generate a predicted block for the lossless coding mode, ii) encoding the at least one block based on the predicted block and an un-quantized residual, and iii) signaling un-quantized residual video data of the at least one block in a bitstream; i) predicting the at least one block to generate a predicted block for the lossless coding mode, ii) encoding the at least one block based on the predicted block and an un-quantized residual, and iii) signaling un-quantized residual video data of the at least one block in a bitstream; assigning a non-zero quantization parameter, QP, value for the at least one block that is coded using a lossless coding mode based on a predicted QP value for the at least one block; determining whether to perform deblocking filtering of each of the plurality of blocks, wherein determining whether to perform deblocking filtering of each of the plurality of blocks comprises: i) determining whether to perform deblocking filtering on an adjacent block (804, 806, 808, 810, 814, 816, 818, 820) located adjacent to the at least one block and coded using a lossy coding mode, based on the assigned non-zero QP value for the at least one block that is coded using a lossless coding mode, and ii) determining to avoid performing deblocking filtering on the at least one block that is coded using a lossless coding mode; and i) determining whether to perform deblocking filtering on an adjacent block (804, 806, 808, 810, 814, 816, 818, 820) located adjacent to the at least one block and coded using a lossy coding mode, based on the assigned non-zero QP value for the at least one block that is coded using a lossless coding mode, and ii) determining to avoid performing deblocking filtering on the at least one block that is coded using a lossless coding mode; and performing deblocking filtering for each of the plurality of blocks based on the respective determinations.