I wanted to fully understand how to tackle the requirement to align the frame size to values that are multiples of 16/32 (I am using only progressive frames so I will use the value 16 further on). I am encoding external RGB32 buffer to H264 using a pipeline of VPP and ENCODE.
1) Is this needeed for both VPP and ENCODE?
2) What actually happens when the frame size is not a multiple of 16? E.g. i have an external frame buffer that has a size that violates the "multiple of 16" rule. Do i need to actually pad each line to the rounded up value with empty pixels or I just need to set the right width and height, but the pitch can be set using the actual width? Or should the value be always rounded down to skip some pixels in the original buffer?
3) What happens in the region of the excess pixels in the output picture in case the value is rounded up? If an extra padding is added at the end of each pixel row do the excess pixels get their data from there?
Maybe I am getting something wrong or lacking some knowledge but at this point I'm quite unsure how to successfully tackle the "multiple of 16" issue.