public VideoResampler(VideoFormat source, VideoFormat destination, SwsFlags flags = SwsFlags.FastBilinear) { Source = source; Destination = destination; Flags = flags; ctx = FF.sws_getContext( source.Width, source.Height, source.PixelFormat, destination.Width, destination.Height, destination.PixelFormat, flags, null, null, null); }