Description

A dynamic binding to the libtheora library.

Package Information

Version1.0.2 (2016-Oct-17)
Homepagehttps://github.com/DerelictOrg/DerelictTheora
Repositoryhttps://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 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.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

1.0.2 1.0.1 1.0.0 ~master ~1.1