高度或宽度不能被 4 整除时的 H264 运动矢量

问题描述

据我了解,h264 运动矢量表示 4x4 或 16x16 像素的区域。如果图像高度或宽度不能被 4 整除会发生什么?这甚至允许吗?

解决方法

对于渐进式镜头,高度和宽度必须能被 16 整除。

记录。 ITU-T H.264 (04/2017) 第 21 页

The width and height of the luma sample arrays are each an integer multiple of 16. In coded video sequences using 4:2:0
chroma sampling,the width and height of chroma sample arrays are each an integer multiple of 8. In coded video sequences
using 4:2:2 sampling,the width of the chroma sample arrays is an integer multiple of 8 and the height is an integer multiple
of 16. The height of a luma array that is coded as two separate fields or in macroblock-adaptive frame-field coding (see
below) is an integer multiple of 32