📄 gmfbridgelib_tlb.pas
字号:
unit GMFBridgeLib_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : 1.2
// File generated on 2006-10-16 09:45:15 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Documents and Settings\user1\桌面\GMFBridge\GMFBridge.dll (1)
// LIBID: {5CE27AC5-940C-4199-8746-01FE1F12A12E}
// LCID: 0
// Helpfile:
// HelpString: GMFBridge 1.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// Errors:
// Error creating palette bitmap of (TGMFBridgeController) : Server C:\Documents and Settings\user1\ contains no icons
// ************************************************************************ //
// *************************************************************************//
// NOTE:
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
// which return objects that may need to be explicitly created via a function
// call prior to any access via the property. These items have been disabled
// in order to prevent accidental use from within the object inspector. You
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
// removing them from the $IFDEF blocks. However, such items must still be
// programmatically created via a method of the appropriate CoClass before
// they can be used.
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
GMFBridgeLibMajorVersion = 1;
GMFBridgeLibMinorVersion = 0;
LIBID_GMFBridgeLib: TGUID = '{5CE27AC5-940C-4199-8746-01FE1F12A12E}';
DIID__IGMFBridgeEvents: TGUID = '{0732D4D6-96F5-46F6-B687-1DB7CD36D413}';
IID_IGMFBridgeController: TGUID = '{8C4D8054-FCBA-4783-865A-7E8B3C814011}';
CLASS_GMFBridgeController: TGUID = '{08E3287F-3A5C-47E9-8179-A9E9221A5CDE}';
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum __MIDL___MIDL_itf_GMFBridge_0000_0001
type
__MIDL___MIDL_itf_GMFBridge_0000_0001 = TOleEnum;
const
eUncompressed = $00000000;
eMuxInputs = $00000001;
eAny = $00000002;
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
_IGMFBridgeEvents = dispinterface;
IGMFBridgeController = interface;
IGMFBridgeControllerDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
GMFBridgeController = IGMFBridgeController;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
eFormatType = __MIDL___MIDL_itf_GMFBridge_0000_0001;
LONG_PTR = Integer;
// *********************************************************************//
// DispIntf: _IGMFBridgeEvents
// Flags: (4096) Dispatchable
// GUID: {0732D4D6-96F5-46F6-B687-1DB7CD36D413}
// *********************************************************************//
_IGMFBridgeEvents = dispinterface
['{0732D4D6-96F5-46F6-B687-1DB7CD36D413}']
procedure OnEndOfSegment; dispid 1;
end;
// *********************************************************************//
// Interface: IGMFBridgeController
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {8C4D8054-FCBA-4783-865A-7E8B3C814011}
// *********************************************************************//
IGMFBridgeController = interface(IDispatch)
['{8C4D8054-FCBA-4783-865A-7E8B3C814011}']
procedure AddStream(bVideo: Integer; AllowedTypes: eFormatType; bDiscardUnconnected: Integer); safecall;
function InsertSinkFilter(const pGraph: IUnknown): IUnknown; safecall;
function InsertSourceFilter(const pUnkSourceGraphSinkFilter: IUnknown;
const pRenderGraph: IUnknown): IUnknown; safecall;
function CreateSourceGraph(const strFile: WideString; const pGraph: IUnknown): IUnknown; safecall;
function CreateRenderGraph(const pSourceGraphSinkFilter: IUnknown; const pRenderGraph: IUnknown): IUnknown; safecall;
procedure BridgeGraphs(const pSourceGraphSinkFilter: IUnknown;
const pRenderGraphSourceFilter: IUnknown); safecall;
procedure SetNotify(hwnd: LONG_PTR; msg: Integer); safecall;
procedure SetBufferMinimum(nMillisecs: Integer); safecall;
function GetSegmentTime: Double; safecall;
procedure NoMoreSegments; safecall;
function GetSegmentOffset: Double; safecall;
end;
// *********************************************************************//
// DispIntf: IGMFBridgeControllerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {8C4D8054-FCBA-4783-865A-7E8B3C814011}
// *********************************************************************//
IGMFBridgeControllerDisp = dispinterface
['{8C4D8054-FCBA-4783-865A-7E8B3C814011}']
procedure AddStream(bVideo: Integer; AllowedTypes: eFormatType; bDiscardUnconnected: Integer); dispid 1;
function InsertSinkFilter(const pGraph: IUnknown): IUnknown; dispid 2;
function InsertSourceFilter(const pUnkSourceGraphSinkFilter: IUnknown;
const pRenderGraph: IUnknown): IUnknown; dispid 3;
function CreateSourceGraph(const strFile: WideString; const pGraph: IUnknown): IUnknown; dispid 4;
function CreateRenderGraph(const pSourceGraphSinkFilter: IUnknown; const pRenderGraph: IUnknown): IUnknown; dispid 5;
procedure BridgeGraphs(const pSourceGraphSinkFilter: IUnknown;
const pRenderGraphSourceFilter: IUnknown); dispid 6;
procedure SetNotify(hwnd: LONG_PTR; msg: Integer); dispid 7;
procedure SetBufferMinimum(nMillisecs: Integer); dispid 8;
function GetSegmentTime: Double; dispid 9;
procedure NoMoreSegments; dispid 10;
function GetSegmentOffset: Double; dispid 11;
end;
// *********************************************************************//
// The Class CoGMFBridgeController provides a Create and CreateRemote method to
// create instances of the default interface IGMFBridgeController exposed by
// the CoClass GMFBridgeController. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoGMFBridgeController = class
class function Create: IGMFBridgeController;
class function CreateRemote(const MachineName: string): IGMFBridgeController;
end;
// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object : TGMFBridgeController
// Help String : BridgeController Class
// Default Interface: IGMFBridgeController
// Def. Intf. DISP? : No
// Event Interface: _IGMFBridgeEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
TGMFBridgeControllerProperties= class;
{$ENDIF}
TGMFBridgeController = class(TOleServer)
private
FOnEndOfSegment: TNotifyEvent;
FIntf: IGMFBridgeController;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
FProps: TGMFBridgeControllerProperties;
function GetServerProperties: TGMFBridgeControllerProperties;
{$ENDIF}
function GetDefaultInterface: IGMFBridgeController;
protected
procedure InitServerData; override;
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Connect; override;
procedure ConnectTo(svrIntf: IGMFBridgeController);
procedure Disconnect; override;
procedure AddStream(bVideo: Integer; AllowedTypes: eFormatType; bDiscardUnconnected: Integer);
function InsertSinkFilter(const pGraph: IUnknown): IUnknown;
function InsertSourceFilter(const pUnkSourceGraphSinkFilter: IUnknown;
const pRenderGraph: IUnknown): IUnknown;
function CreateSourceGraph(const strFile: WideString; const pGraph: IUnknown): IUnknown;
function CreateRenderGraph(const pSourceGraphSinkFilter: IUnknown; const pRenderGraph: IUnknown): IUnknown;
procedure BridgeGraphs(const pSourceGraphSinkFilter: IUnknown;
const pRenderGraphSourceFilter: IUnknown);
procedure SetNotify(hwnd: LONG_PTR; msg: Integer);
procedure SetBufferMinimum(nMillisecs: Integer);
function GetSegmentTime: Double;
procedure NoMoreSegments;
function GetSegmentOffset: Double;
property DefaultInterface: IGMFBridgeController read GetDefaultInterface;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -