Difference between revisions of "Unit Video"
From Ultibo.org
Line 70: | Line 70: | ||
| <code>VIDEO_LOG_LEVEL_INFO = LOG_LEVEL_INFO;</code> | | <code>VIDEO_LOG_LEVEL_INFO = LOG_LEVEL_INFO;</code> | ||
| Video informational messages, such as a device being attached or detached | | Video informational messages, such as a device being attached or detached | ||
+ | |- | ||
+ | | <code>VIDEO_LOG_LEVEL_WARN = LOG_LEVEL_WARN;</code> | ||
+ | | Video warning messages | ||
|- | |- | ||
| <code>VIDEO_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;</code> | | <code>VIDEO_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;</code> | ||
Line 433: | Line 436: | ||
</div></div> | </div></div> | ||
<br /> | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
+ | <pre style="border: 0; padding-bottom:0px;">procedure VideoLogWarn(Video:PVideoDevice; const AText:String); inline;</pre> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | None documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
<pre style="border: 0; padding-bottom:0px;">procedure VideoLogError(Video:PVideoDevice; const AText:String); inline;</pre> | <pre style="border: 0; padding-bottom:0px;">procedure VideoLogError(Video:PVideoDevice; const AText:String); inline;</pre> |
Revision as of 04:20, 27 March 2018
Return to Unit Reference
Contents
[hide]Description
Ultibo Video interface unit
This unit provides both the Video device interface and the generic USB video device driver.
Constants
[Expand]
Video specific constants
VIDEO_*
[Expand]
Video device types
VIDEO_TYPE_*
[Expand]
Video device states
VIDEO_STATE_*
[Expand]
Video device flags
VIDEO_FLAG_*
[Expand]
Video logging
VIDEO_LOG_*
Type definitions
Video properties
Video enumeration callback
TVideoEnumerate = function(Video:PVideoDevice; Data:Pointer):LongWord;
|
Video notification callback
TVideoNotification = function(Device:PDevice; Data:Pointer; Notification:LongWord):LongWord;
|
Video device get properties
TVideoDeviceGetProperties = function(Video:PVideoDevice; Properties:PVideoProperties):LongWord;
|
Video device
Public variables
Video logging
VIDEO_DEFAULT_LOG_LEVEL:LongWord = VIDEO_LOG_LEVEL_DEBUG;
|
Minimum level for Video messages. Only messages with level greater than or equal to this will be printed. |
VIDEO_LOG_ENABLED:Boolean;
|
Function declarations
Initialization functions
Video device functions
[Expand]
function VideoDeviceGetProperties(Video:PVideoDevice; Properties:PVideoProperties):LongWord;
Description: Get the properties for the specified Video device
[Expand]
function VideoDeviceCreateEx(Size:LongWord):PVideoDevice;
Description: Create a new Video device entry
[Expand]
function VideoDeviceDestroy(Video:PVideoDevice):LongWord;
Description: Destroy an existing Video device entry
[Expand]
function VideoDeviceRegister(Video:PVideoDevice):LongWord;
Description: Register a new Video device in the Video device table
[Expand]
function VideoDeviceDeregister(Video:PVideoDevice):LongWord;
Description: Deregister a Video device from the Video device table
[Expand]
function VideoDeviceFindByName(const Name:String):PVideoDevice; inline;
Description: To be documented
[Expand]
function VideoDeviceFindByDescription(const Description:String):PVideoDevice; inline;
Description: To be documented
[Expand]
function VideoDeviceEnumerate(Callback:TVideoEnumerate; Data:Pointer):LongWord;
Description: To be documented
[Expand]
function VideoDeviceNotification(Video:PVideoDevice; Callback:TVideoNotification; Data:Pointer; Notification,Flags:LongWord):LongWord;
Description: To be documented
Video helper functions
[Expand]
function VideoDeviceGetDefault:PVideoDevice; inline;
Description: Get the current default Video device
[Expand]
function VideoDeviceSetDefault(Video:PVideoDevice):LongWord;
Description: Set the current default Video device
[Expand]
function VideoDeviceCheck(Video:PVideoDevice):PVideoDevice;
Description: Check if the supplied Video device is in the Video device table
[Expand]
procedure VideoLog(Level:LongWord; Video:PVideoDevice; const AText:String);
Description: To be documented
[Expand]
procedure VideoLogInfo(Video:PVideoDevice; const AText:String); inline;
Description: To be documented
[Expand]
procedure VideoLogWarn(Video:PVideoDevice; const AText:String); inline;
Description: To be documented
[Expand]
procedure VideoLogError(Video:PVideoDevice; const AText:String); inline;
Description: To be documented
[Expand]
procedure VideoLogDebug(Video:PVideoDevice; const AText:String); inline;
Description: To be documented
Return to Unit Reference