enum

Emerald::Core::HardwareAcceleration

Inherits Enum < Comparable < Value < Object

Represents the hardware video acceleration backend for LibVLC / FFmpeg avcodec. Adheres to the Core Engine Layer standard: pure enum, zero allocation, explicit mapping.

Constants

None = 0
Auto = 1
D3D11VA = 2
DXVA2 = 3
VAAPI = 4
VDPAU = 5
VideoToolbox = 6
MediaCodec = 7
NVDEC = 8

Constructors

default_for_platform

Determines the optimal default hardware acceleration backend for the host platform

Source
parse(value : String | Symbol) : HardwareAcceleration
Source

Class methods

parse?(value : String | Symbol) : HardwareAcceleration | Nil

Parses a string or symbol into a HardwareAcceleration enum, case-insensitively

Source

Instance methods

auto?

Returns true if this enum value equals Auto

Source
d3_d11_va?

Returns true if this enum value equals D3D11VA

Source
description

Human-readable display description

Source
dxva2?

Returns true if this enum value equals DXVA2

Source
enabled?

Returns true if hardware acceleration is enabled (not None)

Source
media_codec?

Returns true if this enum value equals MediaCodec

Source
none?

Returns true if this enum value equals None

Source
nvdec?

Returns true if this enum value equals NVDEC

Source
supported_on_current_platform?

Returns true if the backend is native to the current OS platform

Source
to_media_option

Returns the per-media option string for libvlc_media_add_option

Source
to_vlc_arg

Returns the command-line argument for LibVLC instance initialization

Source
vaapi?

Returns true if this enum value equals VAAPI

Source
vdpau?

Returns true if this enum value equals VDPAU

Source
video_toolbox?

Returns true if this enum value equals VideoToolbox

Source
vlc_value

Returns the LibVLC avcodec option value

Source