FIX: [imx] Do not force resolution if the same as current
FIX: [imx] dynamic allocation of buffer array
FIX: [imx] use <set> for pts queue
[imx]: revert non-core patches