FFmpeg::SWScale
Inherits Reference / Object
Constructors
new(input_width : Int, input_height : Int, input_format : PixelFormat, output_width : Int | Nil = nil, output_height : Int | Nil = nil, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
Sourcenew(input : Frame, output : Frame, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
Sourcenew(codec : Codec, output_width : Int | Nil = nil, output_height : Int | Nil = nil, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
SourceClass methods
scale(input : Frame, width : Int32, height : Int32, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin) : Frame
SourceInstance methods
finalize
Sourceinput_format
Sourceinput_height
Sourceinput_width
Sourceoutput_format
Sourceoutput_height
Sourceoutput_width
Sourcescale(input : Frame, output : Frame = output_frame)
scales and optionally changes format of a frame
scaling_method
Sourceunsafe_scale(input : Frame, output : Frame = output_frame)
like scale but without the checks if you need the speed