class FFmpeg::SWScale

Defined in:

ffmpeg/swscale.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]
def self.new(input : Frame, output : Frame, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin) #

[View source]
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) #

[View source]

Class Method Detail

def self.scale(input : Frame, width : Int32, height : Int32, output_format : PixelFormat = PixelFormat::Rgb24, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin) : Frame #

[View source]

Instance Method Detail

def finalize #

[View source]
def input_format : PixelFormat #

[View source]
def input_height : Int32 #

[View source]
def input_width : Int32 #

[View source]
def output_format : PixelFormat #

[View source]
def output_frame : Frame #

create a compatible output frame for storing the scaled result


[View source]
def output_height : Int32 #

[View source]
def output_width : Int32 #

[View source]
def scale(input : Frame, output : Frame = output_frame) #

scales and optionally changes format of a frame


[View source]
def scaling_method : ScalingAlgorithm #

[View source]
def unsafe_scale(input : Frame, output : Frame = output_frame) #

like scale but without the checks if you need the speed


[View source]