class FFmpeg::SWScale
- FFmpeg::SWScale
- Reference
- Object
Defined in:
ffmpeg/swscale.crConstructors
- .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)
- .new(input : Frame, output : Frame, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
- .new(codec : Codec, output_width : Int | Nil = nil, output_height : Int | Nil = nil, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
Class Method Summary
Instance Method Summary
- #finalize
- #input_format : PixelFormat
- #input_height : Int32
- #input_width : Int32
- #output_format : PixelFormat
-
#output_frame : Frame
create a compatible output frame for storing the scaled result
- #output_height : Int32
- #output_width : Int32
-
#scale(input : Frame, output : Frame = output_frame)
scales and optionally changes format of a frame
- #scaling_method : ScalingAlgorithm
-
#unsafe_scale(input : Frame, output : Frame = output_frame)
like scale but without the checks if you need the speed
Constructor Detail
def self.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)
#
def self.new(input : Frame, output : Frame, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
#
def self.new(codec : Codec, output_width : Int | Nil = nil, output_height : Int | Nil = nil, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
#
Class Method Detail
def self.scale(input : Frame, width : Int32, height : Int32, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin) : Frame
#
Instance Method Detail
create a compatible output frame for storing the scaled result
scales and optionally changes format of a frame
like scale but without the checks if you need the speed