Table of Contents

Enum VideoInterpolationMode

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Specifies the interpolation algorithm used when resizing or scaling video frames.

public enum VideoInterpolationMode

Fields

NearestNeighbor = 0

Uses the nearest pixel value for interpolation, resulting in a blocky appearance but fast processing.

Bilinear = 1

Uses a weighted average of the four nearest pixels, providing smoother results than nearest-neighbor but can still appear blurry.

Bicubic = 2

Uses a weighted average of 16 nearest pixels, offering higher quality and smoother transitions than bilinear, but is computationally more intensive.

Lancroz = 3

A more advanced interpolation method that provides sharp, high-quality results, often used for downscaling images.

Examples

// Example: Use bicubic interpolation for high-quality video export
var exportInterpolation = VideoInterpolationMode.Bicubic;

// Example: Use bilinear interpolation for balanced quality/performance
var realtimeInterpolation = VideoInterpolationMode.Bilinear;

// Example: Use nearest neighbor for fastest processing
var fastInterpolation = VideoInterpolationMode.NearestNeighbor;

Remarks

Different interpolation modes offer varying trade-offs between image quality and processing speed. Higher quality modes typically require more computational resources.