MediaPictureResampler implementation (not tested)