 is specified in units of two luma samples when frame_mbs_only_flag is equal to 1, and it is specified in units of four luma samples when frame_mbs_only_flag is equal to 0. When scaled_ref_layer_bottom_offset is not present, it shall be inferred as follows: If quality_ id is greater than 0, caled_ref_layer_bottom_offset is inferred to be equal to 0. Otherwise (quality_id is equal to 0), scaled_ref_layer_bottom_offset is inferred to be equal to seq_scaled_ref_layer_bottom_offset The value of scaled_ref_layer_bottom_offset shall be in the range of -215 to 215 1, inclusive. The variables scaledLeftOffset, scaledRightOffset, scaledTopOffset, and scaledBottomOffset are derived as follows: If MinNoInterLayerPredFlag is equal to 0, scaledLeftOffset, scaledRightOffset, scaledTopOffset, and scaledBottomOffset are set equal to the values of scaled_ref_layer_left_offset, scaled_ref_layer_right_offset, scaled_ref_layer_top_offset, and scaled_ref_layer_bottom_offset,respectively, for the slices of the current layer representation that have no_inter_layer_pred_flag equal to 0. Otherwise (MinNoInterLayerPredFlag is equal to 1), scaledLeftOffset, scaledRightOffset, scaledTopOffset, and scaledBottomOffset are set equal to the values of scaled_ref_layer_left_offset, scaled_ref_layer_right_offset, scaled_ref_layer_top_offset, and scaled_ref_layer_bottom_offset,: respectively. variables ScaledRefLayerLeftOffset, ScaledRefLayerRightOffset, ScaledRefLayerTopOffset, ScaledRefLayerBottomOffset, ScaledRefLayerPicWidthInSamples, and ScaledRefLayerPicHeightInSamples are derived by ScaledRefLayerLeftOffset = 2* scaledLeftOffset (G-66) ScaledRefLayerRightOffset 2* scaledRightOffset (G-67) Rec. ITU-T H.264 (01/2012) ScaledRefLayerTopOffset = 2* scaledTopOffset * (2-frame_mbs_only_flag) (G-68) ScaledRefLayerBottomOffset = 2* scaledBottomOffset (2 frame_mbs_only_flag) (G-69) ScaledRefLayerPicWidthInSamples = PicWidthInMbs * 16 - ScaledRefLayerLeftOffset ScaledRefLayerRightOffset (G-70) ScaledRefLayerPicHeightInSamples = PicHeightInMbs * 16 - e(