In some embodiments, the sub-block of the second component corresponds to a sub-block of the first component. For example, these two sub-blocks may be spatially co-located in the picture. The method 1300 or 1400 further includes calculating an intermediate set of motion vectors by copying motion vectors of the sub-block of the first component and applying a factor to the intermediate set of motion vectors to obtain the derived motion vectors, wherein the factor is associated with the color format.
In some embodiments, the color format is not 4:4:4 (e.g., is 4:2:2, or 4:2:0) and the size of at least one of the first set of sub-blocks is different than the size of at least one of the second set sub-blocks. In some embodiments, the color format is 4:4:4 and the size of at least one of the first set of sub-blocks is same as the size of at least one of the second set sub-blocks.
In some embodiments, the color format is not 4:4:4 and a size of at least one of the first set of sub-blocks is same as a size of at least one of the second set sub-blocks. A sub-block of the second component corresponds to multiple sub-blocks of the first component. In some embodiments, at least one of the motion vectors for a sub-block of the second component is derived based on an average of corresponding motion vectors of the multiple sub-blocks of the first component.