Module software

Module software 

Source
Expand description

Software scaling and resampling.

This module provides CPU-based media processing for format conversion and resizing. It wraps FFmpeg’s libswscale (video scaling) and libswresample (audio resampling).

§Scaling (Video)

The scaling module provides video frame scaling (resizing) and pixel format conversion. Common uses include:

  • Resizing video to different resolutions
  • Converting between pixel formats (YUV ↔ RGB, different bit depths)
  • Aspect ratio changes

§Resampling (Audio)

The resampling module provides audio sample rate conversion and format changes. Common uses include:

  • Changing sample rate (e.g., 48kHz → 44.1kHz)
  • Converting sample formats (s16 → f32, planar ↔ packed)
  • Channel layout conversion (stereo → 5.1)

Modules§

resampling
scaling

Functions§

converter
Creates a pixel format converter.
resampler
Creates an audio resampler.
scaler
Creates a video scaler for resizing frames.