Lines Matching refs:PicWidthInMbs
28 int PicWidthInMbs = video->PicWidthInMbs;
42 FmoGenerateType1MapUnitMap(MbToSliceGroupMap, PicWidthInMbs, currPPS->num_slice_groups_minus1, PicSizeInMapUnits);
45 FmoGenerateType2MapUnitMap(currPPS, MbToSliceGroupMap, PicWidthInMbs, currPPS->num_slice_groups_minus1, PicSizeInMapUnits);
48 FmoGenerateType3MapUnitMap(video, currPPS, MbToSliceGroupMap, PicWidthInMbs);
86 void FmoGenerateType1MapUnitMap(int *mapUnitToSliceGroupMap, int PicWidthInMbs, uint num_slice_groups_minus1, uint PicSizeInMapUnits)
91 mapUnitToSliceGroupMap[i] = ((i % PicWidthInMbs) + (((i / PicWidthInMbs) * (num_slice_groups_minus1 + 1)) / 2))
97 void FmoGenerateType2MapUnitMap(AVCPicParamSet *pps, int *mapUnitToSliceGroupMap, int PicWidthInMbs,
111 yTopLeft = pps->top_left[ iGroup ] / PicWidthInMbs;
112 xTopLeft = pps->top_left[ iGroup ] % PicWidthInMbs;
113 yBottomRight = pps->bottom_right[ iGroup ] / PicWidthInMbs;
114 xBottomRight = pps->bottom_right[ iGroup ] % PicWidthInMbs;
119 mapUnitToSliceGroupMap[ y * PicWidthInMbs + x ] = iGroup;
129 int PicWidthInMbs)
143 x = (PicWidthInMbs - pps->slice_group_change_direction_flag) / 2;
156 mapUnitVacant = (mapUnitToSliceGroupMap[ y * PicWidthInMbs + x ] == 1);
159 mapUnitToSliceGroupMap[ y * PicWidthInMbs + x ] = 0;
171 rightBound = AVC_MIN(rightBound + 1, (int)PicWidthInMbs - 1);
217 int PicWidthInMbs = video->PicWidthInMbs;
223 for (j = 0; j < PicWidthInMbs; j++)
229 mapUnitToSliceGroupMap[ i * PicWidthInMbs + j ] = 1 - slice_group_change_direction_flag;
233 mapUnitToSliceGroupMap[ i * PicWidthInMbs + j ] = slice_group_change_direction_flag;