1 /** \file
2  * \brief Register the WMF Format
3  *
4  * See Copyright Notice in im_lib.d
5  */
6 
7 module im.format_wmv;
8 
9 extern (C) @safe nothrow:
10 
11 /** \defgroup wmv WMV - Windows Media Video Format
12  * \section Description
13  *
14  * \par
15  * Advanced Systems Format (ASF) \n
16  * Windows Copyright Microsoft Corporation.
17  * \par
18  * Access to the WMV format uses Windows Media SDK. Available in Windows Only. \n
19  * You must link the application with "im_wmv.lib"
20  * and you must call the function \ref imFormatRegisterWMV once
21  * to register the format into the IM core library.
22  * In Lua call require"imlua_wmv". \n
23  * Depends also on the WMF SDK (wmvcore.lib).
24  * When using the "im_wmv.dll" this extra library is not necessary.
25  * \par
26  * The application users should have the WMV codec 9 installed:
27  * http://www.microsoft.com/windows/windowsmedia/format/codecdownload.aspx
28  * \par
29  * You must agree with the WMF SDK EULA to use the SDK. \n
30  * http://wmlicense.smdisp.net/v9sdk/
31  * \par
32  * For more information: \n
33  * http://www.microsoft.com/windows/windowsmedia/9series/sdk.aspx \n
34  * http://msdn.microsoft.com/library/en-us/wmform/htm/introducingwindowsmediaformat.asp
35  * \par
36  * See \ref im_format_wmv.h
37  *
38  * \section Features
39  *
40 \verbatim
41     Data Types: Byte
42     Color Spaces: RGB and MAP (Gray and Binary saved as MAP)
43     Compressions (installed in Windows XP by default):
44       NONE       - no compression
45       MPEG-4v3   - Windows Media MPEG-4 Video V3
46       MPEG-4v1   - ISO MPEG-4 Video V1
47       WMV7       - Windows Media Video  V7
48       WMV7Screen - Windows Media Screen V7
49       WMV8       - Windows Media Video  V8
50       WMV9Screen - Windows Media Video 9 Screen
51       WMV9       - Windows Media Video 9 [default]
52       Unknown    - Others
53     Can have more than one image.
54     Can have an alpha channel (only for RGB) ?
55     Internally the components are always packed.
56     Lines arranged from top down to bottom or bottom up to top.
57     Handle(0) return NULL. imBinFile is not supported.
58     Handle(1) returns IWMSyncReader* when reading, IWMWriter* when writing.
59 
60     Attributes:
61       FPS IM_FLOAT (1) (should set when writing, default 15)
62       WMFQuality IM_INT (1) [0-100, default 50] (write only)
63       MaxKeyFrameTime IM_INT (1) (write only) [maximum key frame interval in miliseconds, default 5 seconds]
64       DataRate IM_INT (1) (write only) [kilobits/second, default 2400]
65       VBR IM_INT (1) [0, 1] (write only) [0 - Constant Bit Rate (default), 1 - Variable Bit Rate (Quality-Based)]
66       (and several others from the file-level attributes) For ex:
67         Title, Author, Copyright, Description (string)
68         Duration IM_INT [100-nanosecond units]
69         Seekable, HasAudio, HasVideo, Is_Protected, Is_Trusted, IsVBR IM_INT (1) [0, 1]
70         NumberOfFrames IM_INT (1)
71 
72     Comments:
73       IMPORTANT - The "image_count" and the "FPS" attribute may not be available from the file,
74         we try to estimate from the duration and from the average time between frames, or using the default value.
75       We do not handle DRM protected files (Digital Rights Management).
76       Reads only the first video stream. Other streams are ignored.
77       All the images have the same size, you must call imFileReadImageInfo/imFileWriteImageInfo
78         at least once.
79       For optimal random reading, the file should be indexed previously.
80       If not indexed by frame, random positioning may not be precise.
81       Sequencial reading will always be precise.
82       When writing we use a custom profile and time indexing only.
83       We do not support multipass encoding.
84       Since the driver uses COM, CoInitialize(NULL) and CoUninitialize() are called every Open/Close.
85 \endverbatim
86  * \ingroup format */
87 
88 /** Register the WMF Format. \n
89  * In Lua, when using require"imlua_wmv" this function will be automatically called.
90  * \ingroup wmv */
91 void imFormatRegisterWMV();