Patent ID: 11924457
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 7:
8. The method of claim 5, wherein the averaging of motion vectors of the luma subblocks in the set S comprises:

mvAvgLX=mvLX[(xSbIdx>>(SubWidthC−1)<<(SubWidthC−1))][(ySbIdx>>(SubHeightC−1)<<(SubHeightC−1))]+mvLX[(xSbIdx>>(SubWidthC−1)<<(SubWidthC−1))+(SubWidthC−1)][(ySbIdx>>(SubHeightC−1)<<(SubHeightC−1))+(SubHeightC−1)]

if mvAvgLX[0]>=0 then
mvAvgLX[0]=(mvAvgLX[0]+1−(mvAvgLX[0]>=0))>>1
if mvAvgLX[1]>=0 then
mvAvgLX[1]=(mvAvgLX[1]+1−(mvAvgLX[1]>=0))>>1
wherein mvAvgLX is an averaged motion vector, mvAvgLX[0] is a horizontal component of the averaged motion vector mvAvgLX, mvAvgLX[1] is a vertical component of the averaged motion vector mvAvgLX; wherein SubWidthC and SubHeightC represent the chroma scaling factors in horizontal and vertical directions respectively; xSbIdx and ySbIdx represent a subblock index in horizontal direction and a subblock index in the vertical direction, respectively, for a luma subblock in the set S, “<<” is a left arithmetic shift and “>>” is a right arithmetic shift.