Class GLFishEyeVideoEffect
- Namespace
- VisioForge.Core.Types.X.OpenGL
- Assembly
- VisioForge.Core.dll
Applies a GPU-accelerated fish-eye lens distortion effect to video frames using OpenGL shaders. This effect simulates the wide-angle, curved appearance characteristic of ultra-wide fish-eye camera lenses.
public class GLFishEyeVideoEffect : GLBaseVideoEffectInheritance
Inherited Members
Remarks
SDK Availability: Available in VideoCaptureCoreX, MediaPlayerCoreX, and Media Blocks SDK (Cross-platform)
Platform Support: Windows, Linux, macOS, Android, iOS (OpenGL ES)
GPU Acceleration: This effect uses hardware-accelerated OpenGL shaders to perform real-time geometric distortion entirely on the GPU. The transformation applies barrel distortion using texture coordinate mapping for efficient processing.
Effect Description: The fish-eye effect applies radial barrel distortion that curves straight lines outward from the center of the frame, mimicking the optical characteristics of fish-eye lenses. The distortion is strongest at the edges and minimal at the center, creating a spherical or hemispherical appearance that provides an ultra-wide field of view.
Use Cases:
- Creative video effects and artistic expression in music videos or films
- Simulating action camera aesthetics (GoPro-style footage)
- 360-degree or VR content preview and testing
- Security and surveillance applications requiring wide-angle views
- Correcting or enhancing existing fish-eye lens footage
- Special effects for gaming, live streaming, or video production
Performance: Highly optimized GPU shader operation with minimal performance impact. The geometric transformation is performed in a single rendering pass using texture coordinate remapping, typically adding less than 1-2ms per frame on modern hardware. Performance is independent of the amount of distortion applied.
Constructors
GLFishEyeVideoEffect()
Initializes a new instance of the VisioForge.Core.Types.X.OpenGL.GLFishEyeVideoEffect class. Creates a fish-eye lens distortion effect for GPU-accelerated video processing.
public GLFishEyeVideoEffect()