protected static MediaPicture resample ( MediaPicture input , MediaPictureResampler resampler ) { // create new picture object MediaPicture output = MediaPicture . make ( resampler . getOutputWidth ( ) , resampler . getOutputHeight ( ) , resampler . getOutputFormat ( ) ) ; return resample ( output , input , resampler ) ; }
Re - sample a picture .