A method of decoding video data, the method comprising: receiving an encoded block (Cb) of the video data in a bitstream, the block comprising luma and chroma samples; determining a base quantization parameter (QPb) for the encoded block (Cb) of the video data, wherein the base quantization parameter (QPb) is indicated by a syntax element in the bitstream; decoding the encoded block (Cb) of the video data using the base quantization parameter (QPb) to create a decoded block of video data, wherein decoding the encoded block (Cb) of the video data comprises: entropy decoding the encoded block (Cb) of the video data to determine quantized transform coefficients (tq(Cb)); inverse quantizing the quantized transform coefficient (tq(Cb)) using the base quantization parameter (QPb) to create transform coefficients (t(Cb)); inverse transforming the transform coefficients (t(Cb)) to create residual values (r(Cb)); and performing a prediction process and adding the residual values (r(Cb)) to create decoded luma or chroma samples (d(Cb)) of a decoded block of the video data; determining a quantization parameter offset (deltaQP) for the decoded block of the video data based on content of the decoded block of the video data, wherein the quantization parameter offset (deltaQP) is obtained from a lookup table (LUT_DQP), accessed by an index derived from an average of the decoded luma or chroma samples (d(Cb)) of the decoded block of video data; adding the determined quantization parameter offset (deltaQP) to the base quantization parameter to obtain an effective quantization parameter (QPe); and performing a filtering operation on the decoded block of video data, wherein filtering parameters of the filtering operation are determined using the effective quantization parameter (QPe). receiving an encoded block (Cb) of the video data in a bitstream, the block comprising luma and chroma samples; determining a base quantization parameter (QPb) for the encoded block (Cb) of the video data, wherein the base quantization parameter (QPb) is indicated by a syntax element in the bitstream; decoding the encoded block (Cb) of the video data using the base quantization parameter (QPb) to create a decoded block of video data, wherein decoding the encoded block (Cb) of the video data comprises: entropy decoding the encoded block (Cb) of the video data to determine quantized transform coefficients (tq(Cb)); inverse quantizing the quantized transform coefficient (tq(Cb)) using the base quantization parameter (QPb) to create transform coefficients (t(Cb)); inverse transforming the transform coefficients (t(Cb)) to create residual values (r(Cb)); and performing a prediction process and adding the residual values (r(Cb)) to create decoded luma or chroma samples (d(Cb)) of a decoded block of the video data; entropy decoding the encoded block (Cb) of the video data to determine quantized transform coefficients (tq(Cb)); inverse quantizing the quantized transform coefficient (tq(Cb)) using the base quantization parameter (QPb) to create transform coefficients (t(Cb)); inverse transforming the transform coefficients (t(Cb)) to create residual values (r(Cb)); and performing a prediction process and adding the residual values (r(Cb)) to create decoded luma or chroma samples (d(Cb)) of a decoded block of the video data; determining a quantization parameter offset (deltaQP) for the decoded block of the video data based on content of the decoded block of the video data, wherein the quantization parameter offset (deltaQP) is obtained from a lookup table (LUT_DQP), accessed by an index derived from an average of the decoded luma or chroma samples (d(Cb)) of the decoded block of video data; adding the determined quantization parameter offset (deltaQP) to the base quantization parameter to obtain an effective quantization parameter (QPe); and performing a filtering operation on the decoded block of video data, wherein filtering parameters of the filtering operation are determined using the effective quantization parameter (QPe).