|
MCL Source Code - Delphi Part, Programmer's Manual |
|
About MCL Source Code - Delphi Part |
|
Delphi part of MCL Source Code consist of more then 60,000 lines of source code written in Delphi and assembler. This code unifies libraries in C part, adds extra file formats, dialogs, image manipulation functions, audio functions, file collection routines and format conversion functions. It also contains helper and general-purpose units that extend available VCL, string, math, graphics and audio functions. |
|
Included in the Delphi Part |
|
Multimedia formats supported:
Image filters / manipulations:
High level multimedia functions:
Helper units contain additional functionality. Description of all the folders:
|
|
Compiling |
|
MCL DLL is already precompiled, but if you make changes to Delphi code you'll need to recompile. To compile Delphi code load the project file MCL.DPR into Delphi 7 or compatible. Alternatively, you can use DCC32.EXE command-line compiler. Conditional defines that are present in the shipped project file "mcl.dpr":
|
|
Usage |
|
MCL consists of several DLLs (dynamic-link libraries). Your application must "see" them before it can use them. A DLL is visible to an application if:
The only MCL library file really required is mcl.dll, located in the mcl folder. However, that file has support for only a few multimedia formats. Most of the formats are supported through additional DLLs. These DLLs are present in mclsource\c\_DLL_ folder, so you should add that folder to the PATH environment variable. To support all available formats, copy all the DLLs from the above mentioned folders to your application's folder. Or make them visible by using the PATH variable. These DLLs should also be distributed with your application. If C libraries have been changed and their version updated, new include files will be generated in mclsource\c\_DELPHI_INCLUDE_ folder. For the Delphi code to recognize the updated DLL names, you must copy the .inc files from the above mentioned folder to the mclsource\mcl\ro folder. Just overwrite the old .inc files. This is necessary only if the file name of any of the C DLLs is changed. For example, if you change the name of the Ogg Vorbis library from "libogg-1.0.0.dll" to "libogg-1.0.1.dll". |