Table of Contents

Class GLLumaCrossProcessingVideoEffect

Namespace
VisioForge.Core.Types.X.OpenGL
Assembly
VisioForge.Core.dll

Applies hardware-accelerated luma cross-processing effect to video frames using OpenGL/OpenGL ES shaders. This effect simulates the photographic technique of cross-processing film, creating distinctive color shifts and contrast changes based on luminance values, resulting in surreal, high-contrast imagery with altered color relationships.

public class GLLumaCrossProcessingVideoEffect : GLBaseVideoEffect

Inheritance

Inherited Members

Remarks

SDK Availability: Available in: VideoCaptureCoreX, MediaPlayerCoreX, Media Blocks SDK (Cross-platform)

Platform Support: Windows, Linux, macOS, Android, iOS (OpenGL ES)

OpenGL Acceleration: This effect is fully GPU-accelerated using OpenGL 3.0+ on desktop platforms and OpenGL ES 2.0+ on mobile devices. The luma cross-processing transformation is implemented as a fragment shader that applies luminance-based color curve adjustments and channel mixing. The shader uses optimized per-pixel operations with lookup tables or mathematical curves to achieve the cross-processed look. All color space conversions and curve applications occur on the GPU in a single pass with no CPU involvement.

Effect Description: Cross-processing is a photographic technique where film is developed in chemicals intended for a different type of film (e.g., processing slide film in negative chemicals or vice versa), resulting in distinctive color shifts, increased contrast, and altered tonal relationships. This digital effect simulates that aesthetic by applying luminance-dependent color transformations. The effect analyzes the brightness of each pixel and applies different color curves to highlights, midtones, and shadows, creating characteristic color shifts where blues may become more cyan, greens more yellow, and reds more magenta. The result is a surreal, stylized look with punchy contrast, shifted hues, and an overall artistic, experimental feel. Shadows often become deeper and cooler, while highlights may take on warm or unusual color casts.

Use Cases:

  • Fashion and editorial photography-style videos with avant-garde aesthetics
  • Music videos requiring bold, experimental color grading and visual style
  • Artistic films and experimental video projects with unconventional looks
  • Commercial advertising with distinctive, eye-catching color palettes
  • Social media content with trendy, Instagram-style color grading effects
  • Retro-style content simulating alternative photographic processing techniques

Performance Characteristics: This effect has minimal performance impact as it runs entirely on the GPU. Typical overhead is less than 1ms per frame on modern hardware. The luma-based color transformation uses per-pixel curve evaluation or texture-based lookup tables, both of which are highly efficient on GPUs. Performance is consistent across all resolutions and remains real-time capable even at 4K on modern GPUs. The effect requires no multi-pass rendering or complex calculations, adding negligible latency to the video pipeline. On mobile devices with OpenGL ES, performance is excellent across all supported resolutions with no observable impact on frame rate.

Constructors

GLLumaCrossProcessingVideoEffect()

Initializes a new instance of the VisioForge.Core.Types.X.OpenGL.GLLumaCrossProcessingVideoEffect class.

public GLLumaCrossProcessingVideoEffect()