Description

A dynamic binding to libtheora.

Package Information

Version2.0.0-alpha.2 (2017-Apr-16)
Homepage https://github.com/DerelictOrg/DerelictTheora
Repository https://github.com/DerelictOrg/DerelictTheora
LicenseBoost
AuthorsMike Parker
Registered byMike Parker
Dependencies

derelict-ogg

derelict-util

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

DerelictTheora

A dynamic binding to libtheora version 1.1 for the D Programming Language.

Please see the sections on Compiling and Linking and The Derelict Loader, in the Derelict documentation, for information on how to build DerelictTheora and load libtheora at run time. In the meantime, here's some sample code.

// Import all of the libtheora modules
import derelict.theora;

/*
Alternatively, you can do the following:
import derelict.theora.codec;
import derelict.theora.theoraenc;
import derelict.theora.theoradec;
*/

void main() {
    // Load the libtheora codec library and its companion encoding and decoding libaries
    DerelictTheora.load();
    DerelictTheoraEnc.load();
    DerelictTheoraDec.load();

    // Now libtheora functions can be called.
    ...
}

Available versions

2.0.0-alpha.2 2.0.0-alpha.1 1.0.2 1.0.1 1.0.0 ~master ~2.0 ~1.1