struct

Emerald::Core::VideoDecoderConfig

Inherits Struct < Value < Object

Pure configuration struct for video decoding and hardware acceleration parameters. Adheres to the Core Engine Layer standard: pure structs, zero-allocation, explicit state.

Constructors

new(hardware_acceleration : HardwareAcceleration = HardwareAcceleration::Auto, thread_count : Int32 = 0, low_latency : Bool = true, drop_late_frames : Bool = true, fast_decoding : Bool = false, network_caching_ms : Int32 = 1000, extra_options : Array(String) = Array(String).new)
Source

Instance methods

drop_late_frames
Source
drop_late_frames=(drop_late_frames : Bool)
Source
extra_options
Source
extra_options=(extra_options : Array(String))
Source
fast_decoding
Source
fast_decoding=(fast_decoding : Bool)
Source
hardware_acceleration
Source
hardware_acceleration=(hardware_acceleration : HardwareAcceleration)
Source
low_latency
Source
low_latency=(low_latency : Bool)
Source
network_caching_ms
Source
network_caching_ms=(network_caching_ms : Int32)
Source
thread_count
Source
thread_count=(thread_count : Int32)
Source
to_instance_args

Generates CLI arguments for LibVLC process instance initialization

Source
to_media_options

Generates per-media options for LibVLC media loading

Source
with_drop_late_frames(enabled : Bool = true) : VideoDecoderConfig
Source
with_fast_decoding(enabled : Bool = true) : VideoDecoderConfig
Source
with_hw_accel(accel : HardwareAcceleration) : VideoDecoderConfig

Fluent mutation helpers

Source
with_low_latency(enabled : Bool = true) : VideoDecoderConfig
Source
with_threads(threads : Int32) : VideoDecoderConfig
Source