For illustrative purposes, the pseudo code of the picture header 300 is shown in 
The parameter “chroma_qp_offset_max_depth” in the line 313 defines the level (and hence the size or the hierarchical depth) of the chroma QG. This parameter can be set to be equal to the size of the entire coding tree unit (CTU) or down to the size of the smallest coding unit possible in the bitstream. Some embodiments allow the specification and signaling of additional chroma QP offsets to occur at any desirable level (e.g., at the CTU level, chroma defined quantization group level, coding unit level, transform unit level, etc.) In some embodiments, instead of defining quantization groups specifically for chroma QP offsets, the bitstream uses the parameter “diff_cu_qp_delta_depth”, which also defines the quantization groups for luma QPs. In some embodiments, if the parameter for defining a quantization group is not available, then the entire picture is assigned the same QP for luma and no QP adaptations for luma are permitted.