OS: Ubuntu 12.04
Q1. I found some description as below in simple_decode_vpp_pp.cpp, may I know the reason on "width must be a multiple of 16" and "height must be a multiple of 16 in case of frame picture and a multiple of 32 in case of field picture" ??
// width must be a multiple of 16
// height must be a multiple of 16 in case of frame picture and a multiple of 32 in case of field picture
VPPParams.vpp.In.Width = MSDK_ALIGN16(VPPParams.vpp.In.CropW);
(MFX_PICSTRUCT_PROGRESSIVE == VPPParams.vpp.In.PicStruct) ?
Q2. I didn't find any behavior about alignment in simple_decode_vmem.cpp but simple_decode.cpp and simple_decode_vpp_pp.cpp. Does it mean there's no alignment requirement in video memory? if not, why??
Thanks in advance
Media SDK requires width and height needs to be aligned to 16 in case of progressive content due to the hardware design, required by the driver. So, it is required whether it is for VPP or decode. It is also mentioned in the Media sdk manual.
Width and height alignment needs to be done irrespective of video memory or system memory.