Home › Packages › codecs

Package codecs

This package contains 27 source unit(s) defining 29 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

codec-pipeline #sleela 2.5 (lib/codecs/codec-pipeline.sleela)

Verifier class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resolveExtensionint resolveExtension(String ext)No description in source.
probeMagicint probeMagic(String tag)No description in source.
resultTextString resultText(int code)No description in source.

Processor class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
decodeint decode(boolean loaded, boolean nativeCodec, boolean backendReady)No description in source.
encodeint encode(boolean loaded, boolean nativeCodec, boolean backendReady)No description in source.

Controller class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
loadedint[] loadedNo description in source.
backendint[] backendNo description in source.
verifierVerifier verifierwired by create(), called via the field (1.11)
processorProcessor processorNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
countint count()No description in source.
isNativeboolean isNative(int id)No description in source.
nameOfString nameOf(int id)No description in source.
loadint load(int id)No description in source.
isLoadedboolean isLoaded(int id)No description in source.
unloadAllvoid unloadAll()No description in source.
registerBackendint registerBackend(int id)No description in source.
hasBackendboolean hasBackend(int id)No description in source.
loadedCountint loadedCount()No description in source.
resolveExtensionint resolveExtension(String ext)Clean facade methods: delegate to the wired collaborators.
probeMagicint probeMagic(String tag)No description in source.
resultTextString resultText(int code)No description in source.
decodeint decode(int id)No description in source.
encodeint encode(int id)No description in source.
mainvoid main()No description in source.

codecs #sleela 2.5 (lib/codecs/codecs.sleela)

Codecs class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
loadedint[] loadedNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
countint count()No description in source.
initvoid init()No description in source.
isLoadedboolean isLoaded(int id)No description in source.
loadvoid load(int id)No description in source.
unloadvoid unload(int id)No description in source.
unloadAllvoid unloadAll()No description in source.
isNativeboolean isNative(int id)No description in source.
nameOfString nameOf(int id)No description in source.
stateWordString stateWord(int id)No description in source.
reportvoid report(int id)No description in source.
mainvoid main()No description in source.

SLCodecAac #sleela 2.5 (lib/codecs/SLCodecAac.sleela)

SLCodecAac class

AAC codec class — the SLeeLa-facing handle to codec id 5.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecAc3 #sleela 2.5 (lib/codecs/SLCodecAc3.sleela)

SLCodecAc3 class

Dolby Digital AC-3 codec class — the SLeeLa-facing handle to codec id 11.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecAiff #sleela 2.5 (lib/codecs/SLCodecAiff.sleela)

SLCodecAiff class

AIFF codec class — the SLeeLa-facing handle to codec id 1.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 0 == native.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecAlac #sleela 2.5 (lib/codecs/SLCodecAlac.sleela)

SLCodecAlac class

ALAC codec class — the SLeeLa-facing handle to codec id 3.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecAmrNb #sleela 2.5 (lib/codecs/SLCodecAmrNb.sleela)

SLCodecAmrNb class

AMR-NB codec class — the SLeeLa-facing handle to codec id 13.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecAmrWb #sleela 2.5 (lib/codecs/SLCodecAmrWb.sleela)

SLCodecAmrWb class

AMR-WB codec class — the SLeeLa-facing handle to codec id 14.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecController #sleela 2.5 (lib/codecs/SLCodecController.sleela)

SLCodecController class extends SLPluginService

Defines the SLeeLa standard-library type SLCodecController used within the codecs library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
verifierSLCodecVerifier verifierThe verification collaborator, wired by create() and called via the field. (The loaded/backend lifecycle tables and the ready flag are inherited from SLPluginService; only the codec-specific Verifier lives here.)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()Build the controller with every codec registered but none loaded. Mirrors sleela_codec_manager_create. configure() (inherited) allocates the 20-entry lifecycle tables and records the native-id mask; then wire the Verifier. Native codecs encode/decode in-package: PCM/WAV (0), AIFF (1), G.711 mu-law (15), G.711 A-law (16) -> mask bits 0,1,15,16.
nativeMaskForCodecsint nativeMaskForCodecs()The native-id bit mask for codecs: bits 0, 1, 15, 16 set.
resolveExtensionint resolveExtension(String extension)Resolve a codec id from a file extension via the Controller's Verifier.
decodeint decode(int id)decode(id) / encode(id): a codec's domain operations. Both are gated by the shared dispatchCode(): -2 invalid, -5 not loaded, -1 backend absent, 0 ok.
encodeint encode(int id)No description in source.
serviceNameString serviceName()---- identity + result text -----------------------------------------
resultTextString resultText(int code)Human-readable text for a result code (via the wired Verifier, which uses the shared SLServiceResult vocabulary).

SLCodecEac3 #sleela 2.5 (lib/codecs/SLCodecEac3.sleela)

SLCodecEac3 class

Dolby Digital Plus codec class — the SLeeLa-facing handle to codec id 12.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecFlac #sleela 2.5 (lib/codecs/SLCodecFlac.sleela)

SLCodecFlac class

FLAC codec class — the SLeeLa-facing handle to codec id 2.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecG711Alaw #sleela 2.5 (lib/codecs/SLCodecG711Alaw.sleela)

SLCodecG711Alaw class

G.711 A-law codec class — the SLeeLa-facing handle to codec id 16.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 0 == native.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecG711Mulaw #sleela 2.5 (lib/codecs/SLCodecG711Mulaw.sleela)

SLCodecG711Mulaw class

G.711 mu-law codec class — the SLeeLa-facing handle to codec id 15.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 0 == native.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecHeAac #sleela 2.5 (lib/codecs/SLCodecHeAac.sleela)

SLCodecHeAac class

HE-AAC codec class — the SLeeLa-facing handle to codec id 6.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecLoader #sleela 2.5 (lib/codecs/SLCodecLoader.sleela)

SLCodecLoader class

Defines the SLeeLa standard-library type SLCodecLoader used within the codecs library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
loadedint[] loadedPer-codec loaded flag (1 loaded, 0 not), indexed by codec id. Backed by the first-class array type; call init() before use.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
codecCountint codecCount()The number of codecs the native manager knows (SLEELA_CODEC_COUNT).
initvoid init()Allocate the loaded-flag table with every codec unloaded.
loadvoid load(int id)load(id): mark a codec loaded. Mirrors sleela_codec_manager_load.
unloadvoid unload(int id)unload(id): mark a codec unloaded. Mirrors sleela_codec_manager_unload.
isLoadedboolean isLoaded(int id)No description in source.
unloadAllvoid unloadAll()unloadAll(): release every loaded codec. Mirrors sleela_codec_manager_unload_all.
nameOfString nameOf(int id)Human-readable codec name by id, matching the native registry.
isNativeboolean isNative(int id)Native codecs implement encode/decode in-package (no external backend): PCM/WAV (0), AIFF (1), G.711 mu-law (15), G.711 A-law (16). The rest are backend handlers until an approved library adapter is registered.

SLCodecMatroskaAudio #sleela 2.5 (lib/codecs/SLCodecMatroskaAudio.sleela)

SLCodecMatroskaAudio class

Matroska Audio codec class — the SLeeLa-facing handle to codec id 18.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 3 == container.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecMidi #sleela 2.5 (lib/codecs/SLCodecMidi.sleela)

SLCodecMidi class

MIDI codec class — the SLeeLa-facing handle to codec id 17.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 4 == event.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecMp3 #sleela 2.5 (lib/codecs/SLCodecMp3.sleela)

SLCodecMp3 class

MPEG Layer III codec class — the SLeeLa-facing handle to codec id 4.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecOpus #sleela 2.5 (lib/codecs/SLCodecOpus.sleela)

SLCodecOpus class

Opus codec class — the SLeeLa-facing handle to codec id 8.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecPcmWav #sleela 2.5 (lib/codecs/SLCodecPcmWav.sleela)

SLCodecPcmWav class

PCM/WAV codec class — the SLeeLa-facing handle to codec id 0.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 0 == native (encode/decode live in-package).
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend).
needsBackendboolean needsBackend()A backend adapter must be registered before this codec can decode/encode.

SLCodecProcessor #sleela 2.5 (lib/codecs/SLCodecProcessor.sleela)

SLCodecProcessor class

Defines the SLeeLa standard-library type SLCodecProcessor used within the codecs library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
canProcessboolean canProcess(boolean loaded, boolean nativeCodec, boolean backendReady)canProcess: can this codec encode/decode right now, given the facts? True for a loaded native codec, or a loaded backend codec with a backend registered — what a GUI checks before enabling a convert action.
decodeint decode(boolean loaded, boolean nativeCodec, boolean backendReady)decode: dispatch a decode against the given facts. Returns a result code: -5 not loaded, 0 ok (native or backend ready), -1 backend absent.
encodeint encode(boolean loaded, boolean nativeCodec, boolean backendReady)encode: same result-code contract as decode.

SLCodecSpeex #sleela 2.5 (lib/codecs/SLCodecSpeex.sleela)

SLCodecSpeex class

Speex codec class — the SLeeLa-facing handle to codec id 9.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecVerifier #sleela 2.5 (lib/codecs/SLCodecVerifier.sleela)

SLCodecVerifier class

Defines the SLeeLa standard-library type SLCodecVerifier used within the codecs library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resolveExtensionint resolveExtension(String ext)---- extension resolution (mirrors sleela_codec_by_extension) ------- Returns the codec id for a known extension, or -1 if unrecognized. Extensions are taken verbatim from each codec's registry metadata.
probeMagicint probeMagic(String tag)---- content-signature probe (mirrors each plugin's probe()) -------- Given a short leading-byte signature tag (as text, e.g. "RIFF", "fLaC", "MThd", "OggS", "FORM", "1A45DFA3" for EBML), return the codec id that claims it, or -1. This is the SLeeLa expression of the native byte probe: the actual byte comparison lives in the native plugin; here the Verifier encodes which magic belongs to which codec so a GUI can pre-classify.
headerlessboolean headerless(int id)headerless(id): true for codecs with no reliable magic (G.711 telephony), where probing by content cannot confirm the format — the caller must know the format out-of-band. Mirrors the mu-law/A-law probe comment.
verifyLoadableint verifyLoadable(int id)---- loadability / lifecycle verification --------------------------- verifyLoadable(id): 0 if the id is a real codec that can be loaded, else -2 (invalid). Mirrors the manager's id_ok guard.
resultTextString resultText(int code)---- result-code text (mirrors sleela_codec_result_text) ------------
okboolean ok(int code)No description in source.

SLCodecVorbis #sleela 2.5 (lib/codecs/SLCodecVorbis.sleela)

SLCodecVorbis class

Ogg Vorbis codec class — the SLeeLa-facing handle to codec id 7.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecWebmAudio #sleela 2.5 (lib/codecs/SLCodecWebmAudio.sleela)

SLCodecWebmAudio class

WebM Audio codec class — the SLeeLa-facing handle to codec id 19.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 3 == container.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLCodecWma #sleela 2.5 (lib/codecs/SLCodecWma.sleela)

SLCodecWma class

Windows Media Audio codec class — the SLeeLa-facing handle to codec id 10.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
idint id()Registry identity (mirrors sleela_codec_handler).
nameString name()No description in source.
mimeString mime()No description in source.
extensionsString extensions()No description in source.
stateint state()Capability state: 1 == backend.
stateNameString stateName()No description in source.
canDecodeboolean canDecode()Direction support advertised by the plugin vtable.
canEncodeboolean canEncode()No description in source.
isNativeboolean isNative()Native codecs implement encode/decode in-package (no external backend); a backend codec reports its honest state and fails cleanly from decode/encode until an approved backend adapter is registered.
needsBackendboolean needsBackend()No description in source.

SLPackage #sleela 2.5 (lib/codecs/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for codecs.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean available()No description in source.