Code cleanup.
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
/// or shutter speed. To obtain this interface, query the filter that controls the camera.
|
||||
/// </summary>
|
||||
[ComImport,
|
||||
Guid( "C6E13370-30AC-11d0-A18C-00A0C9118956" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("C6E13370-30AC-11d0-A18C-00A0C9118956"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IAMCameraControl
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The IAMCrossbar interface routes signals from an analog or digital source to a video capture filter.
|
||||
/// </summary>
|
||||
[ComImport, System.Security.SuppressUnmanagedCodeSecurity,
|
||||
Guid( "C6E13380-30AC-11D0-A18C-00A0C9118956" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("C6E13380-30AC-11D0-A18C-00A0C9118956"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IAMCrossbar
|
||||
{
|
||||
/// <summary>
|
||||
@@ -21,7 +21,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_PinCounts( [Out] out int outputPinCount, [Out] out int inputPinCount );
|
||||
int get_PinCounts([Out] out int outputPinCount, [Out] out int inputPinCount);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether a specified input pin can be routed to a specified output pin.
|
||||
@@ -33,7 +33,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int CanRoute( [In] int outputPinIndex, [In] int inputPinIndex );
|
||||
int CanRoute([In] int outputPinIndex, [In] int inputPinIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Routes an input pin to an output pin.
|
||||
@@ -45,7 +45,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Route( [In] int outputPinIndex, [In] int inputPinIndex );
|
||||
int Route([In] int outputPinIndex, [In] int inputPinIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the input pin that is currently routed to the specified output pin.
|
||||
@@ -57,7 +57,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_IsRoutedTo( [In] int outputPinIndex, [Out] out int inputPinIndex );
|
||||
int get_IsRoutedTo([In] int outputPinIndex, [Out] out int inputPinIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves information about a specified pin.
|
||||
@@ -72,9 +72,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_CrossbarPinInfo(
|
||||
[In, MarshalAs( UnmanagedType.Bool )] bool isInputPin,
|
||||
[In, MarshalAs(UnmanagedType.Bool)] bool isInputPin,
|
||||
[In] int pinIndex,
|
||||
[Out] out int pinIndexRelated,
|
||||
[Out] out PhysicalConnectorType physicalType );
|
||||
[Out] out PhysicalConnectorType physicalType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "C6E13340-30AC-11d0-A18C-00A0C9118956" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("C6E13340-30AC-11d0-A18C-00A0C9118956"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IAMStreamConfig
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,7 +22,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetFormat( [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int SetFormat([In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the audio or video stream's format.
|
||||
@@ -33,7 +33,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetFormat( [Out, MarshalAs( UnmanagedType.LPStruct )] out AMMediaType mediaType );
|
||||
int GetFormat([Out, MarshalAs(UnmanagedType.LPStruct)] out AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the number of format capabilities that this pin supports.
|
||||
@@ -45,7 +45,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetNumberOfCapabilities( out int count, out int size );
|
||||
int GetNumberOfCapabilities(out int count, out int size);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve a set of format capabilities.
|
||||
@@ -60,8 +60,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
[PreserveSig]
|
||||
int GetStreamCaps(
|
||||
[In] int index,
|
||||
[Out, MarshalAs( UnmanagedType.LPStruct )] out AMMediaType mediaType,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] VideoStreamConfigCaps streamConfigCaps
|
||||
[Out, MarshalAs(UnmanagedType.LPStruct)] out AMMediaType mediaType,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] VideoStreamConfigCaps streamConfigCaps
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "6A2E0670-28E4-11D0-A18c-00A0C9118956" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("6A2E0670-28E4-11D0-A18c-00A0C9118956"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IAMVideoControl
|
||||
{
|
||||
/// <summary>
|
||||
@@ -23,7 +23,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetCaps( [In] IPin pin, [Out, MarshalAs( UnmanagedType.I4 )] out VideoControlFlags flags );
|
||||
int GetCaps([In] IPin pin, [Out, MarshalAs(UnmanagedType.I4)] out VideoControlFlags flags);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the video control mode of operation.
|
||||
@@ -35,7 +35,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetMode( [In] IPin pin, [In, MarshalAs( UnmanagedType.I4 )] VideoControlFlags mode );
|
||||
int SetMode([In] IPin pin, [In, MarshalAs(UnmanagedType.I4)] VideoControlFlags mode);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the video control mode of operation.
|
||||
@@ -47,7 +47,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetMode( [In] IPin pin, [Out, MarshalAs( UnmanagedType.I4 )] out VideoControlFlags mode );
|
||||
int GetMode([In] IPin pin, [Out, MarshalAs(UnmanagedType.I4)] out VideoControlFlags mode);
|
||||
|
||||
/// <summary>
|
||||
/// The method retrieves the actual frame rate, expressed as a frame duration in 100-nanosecond units.
|
||||
@@ -61,7 +61,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetCurrentActualFrameRate( [In] IPin pin, [Out, MarshalAs( UnmanagedType.I8 )] out long actualFrameRate );
|
||||
int GetCurrentActualFrameRate([In] IPin pin, [Out, MarshalAs(UnmanagedType.I8)] out long actualFrameRate);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the maximum frame rate currently available based on bus bandwidth usage for connections
|
||||
@@ -78,9 +78,9 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetMaxAvailableFrameRate( [In] IPin pin, [In] int index,
|
||||
int GetMaxAvailableFrameRate([In] IPin pin, [In] int index,
|
||||
[In] System.Drawing.Size dimensions,
|
||||
[Out] out long maxAvailableFrameRate );
|
||||
[Out] out long maxAvailableFrameRate);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a list of available frame rates.
|
||||
@@ -96,9 +96,9 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetFrameRateList( [In] IPin pin, [In] int index,
|
||||
int GetFrameRateList([In] IPin pin, [In] int index,
|
||||
[In] System.Drawing.Size dimensions,
|
||||
[Out] out int listSize,
|
||||
[Out] out IntPtr frameRate );
|
||||
[Out] out IntPtr frameRate);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A86895-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A86895-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IBaseFilter
|
||||
{
|
||||
// --- IPersist Methods
|
||||
@@ -24,7 +24,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetClassID( [Out] out Guid ClassID );
|
||||
int GetClassID([Out] out Guid ClassID);
|
||||
|
||||
// --- IMediaFilter Methods
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Stop( );
|
||||
int Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Pauses the filter.
|
||||
@@ -44,7 +44,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Pause( );
|
||||
int Pause();
|
||||
|
||||
/// <summary>
|
||||
/// Runs the filter.
|
||||
@@ -55,7 +55,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Run( long start );
|
||||
int Run(long start);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the state of the filter (running, stopped, or paused).
|
||||
@@ -67,7 +67,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetState( int milliSecsTimeout, [Out] out int filterState );
|
||||
int GetState(int milliSecsTimeout, [Out] out int filterState);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the reference clock for the filter or the filter graph.
|
||||
@@ -78,7 +78,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetSyncSource( [In] IntPtr clock );
|
||||
int SetSyncSource([In] IntPtr clock);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the current reference clock.
|
||||
@@ -89,7 +89,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetSyncSource( [Out] out IntPtr clock );
|
||||
int GetSyncSource([Out] out IntPtr clock);
|
||||
|
||||
// --- IBaseFilter Methods
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EnumPins( [Out] out IEnumPins enumPins );
|
||||
int EnumPins([Out] out IEnumPins enumPins);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the pin with the specified identifier.
|
||||
@@ -114,7 +114,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindPin( [In, MarshalAs( UnmanagedType.LPWStr )] string id, [Out] out IPin pin );
|
||||
int FindPin([In, MarshalAs(UnmanagedType.LPWStr)] string id, [Out] out IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves information about the filter.
|
||||
@@ -125,7 +125,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryFilterInfo( [Out] out FilterInfo filterInfo );
|
||||
int QueryFilterInfo([Out] out FilterInfo filterInfo);
|
||||
|
||||
/// <summary>
|
||||
/// Notifies the filter that it has joined or left the filter graph.
|
||||
@@ -138,7 +138,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int JoinFilterGraph( [In] IFilterGraph graph, [In, MarshalAs( UnmanagedType.LPWStr )] string name );
|
||||
int JoinFilterGraph([In] IFilterGraph graph, [In, MarshalAs(UnmanagedType.LPWStr)] string name);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a string containing vendor information.
|
||||
@@ -149,6 +149,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryVendorInfo( [Out, MarshalAs( UnmanagedType.LPWStr )] out string vendorInfo );
|
||||
int QueryVendorInfo([Out, MarshalAs(UnmanagedType.LPWStr)] out string vendorInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface ICaptureGraphBuilder2
|
||||
{
|
||||
/// <summary>
|
||||
@@ -21,7 +21,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetFiltergraph( [In] IGraphBuilder graphBuilder );
|
||||
int SetFiltergraph([In] IGraphBuilder graphBuilder);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the filter graph that the builder is using.
|
||||
@@ -32,7 +32,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetFiltergraph( [Out] out IGraphBuilder graphBuilder );
|
||||
int GetFiltergraph([Out] out IGraphBuilder graphBuilder);
|
||||
|
||||
/// <summary>
|
||||
/// Create file writing section of the filter graph.
|
||||
@@ -48,8 +48,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetOutputFileName(
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid type,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string fileName,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid type,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string fileName,
|
||||
[Out] out IBaseFilter baseFilter,
|
||||
[Out] out IntPtr fileSinkFilter
|
||||
);
|
||||
@@ -68,11 +68,11 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindInterface(
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid category,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid type,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid category,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid type,
|
||||
[In] IBaseFilter baseFilter,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid interfaceID ,
|
||||
[Out, MarshalAs( UnmanagedType.IUnknown )] out object retInterface
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceID,
|
||||
[Out, MarshalAs(UnmanagedType.IUnknown)] out object retInterface
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
@@ -89,9 +89,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int RenderStream(
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid category,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid mediaType,
|
||||
[In, MarshalAs( UnmanagedType.IUnknown )] object source,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid category,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid mediaType,
|
||||
[In, MarshalAs(UnmanagedType.IUnknown)] object source,
|
||||
[In] IBaseFilter compressor,
|
||||
[In] IBaseFilter renderer
|
||||
);
|
||||
@@ -114,9 +114,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int ControlStream(
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid category,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid mediaType,
|
||||
[In, MarshalAs( UnmanagedType.Interface )] IBaseFilter filter,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid category,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid mediaType,
|
||||
[In, MarshalAs(UnmanagedType.Interface)] IBaseFilter filter,
|
||||
[In] long start,
|
||||
[In] long stop,
|
||||
[In] short startCookie,
|
||||
@@ -134,7 +134,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int AllocCapFile(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string fileName,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string fileName,
|
||||
[In] long size
|
||||
);
|
||||
|
||||
@@ -151,9 +151,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int CopyCaptureFile(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string oldFileName,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string newFileName,
|
||||
[In, MarshalAs( UnmanagedType.Bool )] bool allowEscAbort,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string oldFileName,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string newFileName,
|
||||
[In, MarshalAs(UnmanagedType.Bool)] bool allowEscAbort,
|
||||
[In] IntPtr callback
|
||||
);
|
||||
|
||||
@@ -173,13 +173,13 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindPin(
|
||||
[In, MarshalAs( UnmanagedType.IUnknown )] object source,
|
||||
[In, MarshalAs(UnmanagedType.IUnknown)] object source,
|
||||
[In] PinDirection pinDirection,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid category,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] Guid mediaType,
|
||||
[In, MarshalAs( UnmanagedType.Bool )] bool unconnected,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid category,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] Guid mediaType,
|
||||
[In, MarshalAs(UnmanagedType.Bool)] bool unconnected,
|
||||
[In] int index,
|
||||
[Out, MarshalAs( UnmanagedType.Interface )] out IPin pin
|
||||
[Out, MarshalAs(UnmanagedType.Interface)] out IPin pin
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "29840822-5B84-11D0-BD3B-00A0C911CE86" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("29840822-5B84-11D0-BD3B-00A0C911CE86"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface ICreateDevEnum
|
||||
{
|
||||
/// <summary>
|
||||
@@ -25,6 +25,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int CreateClassEnumerator( [In] ref Guid type, [Out] out IEnumMoniker enumMoniker, [In] int flags );
|
||||
int CreateClassEnumerator([In] ref Guid type, [Out] out IEnumMoniker enumMoniker, [In] int flags);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A86893-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A86893-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IEnumFilters
|
||||
{
|
||||
/// <summary>
|
||||
@@ -24,9 +24,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Next( [In] int cFilters,
|
||||
[Out, MarshalAs( UnmanagedType.LPArray, SizeParamIndex = 0 )] IBaseFilter[] filters,
|
||||
[Out] out int filtersFetched );
|
||||
int Next([In] int cFilters,
|
||||
[Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] IBaseFilter[] filters,
|
||||
[Out] out int filtersFetched);
|
||||
|
||||
/// <summary>
|
||||
/// Skips a specified number of filters in the enumeration sequence.
|
||||
@@ -37,7 +37,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Skip( [In] int cFilters );
|
||||
int Skip([In] int cFilters);
|
||||
|
||||
/// <summary>
|
||||
/// Resets the enumeration sequence to the beginning.
|
||||
@@ -46,7 +46,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Reset( );
|
||||
int Reset();
|
||||
|
||||
/// <summary>
|
||||
/// Makes a copy of the enumerator with the same enumeration state.
|
||||
@@ -59,6 +59,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
///
|
||||
[PreserveSig]
|
||||
int Clone( [Out] out IEnumFilters enumFilters );
|
||||
int Clone([Out] out IEnumFilters enumFilters);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A86892-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A86892-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IEnumPins
|
||||
{
|
||||
/// <summary>
|
||||
@@ -23,9 +23,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Next( [In] int cPins,
|
||||
[Out, MarshalAs( UnmanagedType.LPArray, SizeParamIndex = 0 )] IPin[] pins,
|
||||
[Out] out int pinsFetched );
|
||||
int Next([In] int cPins,
|
||||
[Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] IPin[] pins,
|
||||
[Out] out int pinsFetched);
|
||||
|
||||
/// <summary>
|
||||
/// Skips a specified number of pins in the enumeration sequence.
|
||||
@@ -36,7 +36,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Skip( [In] int cPins );
|
||||
int Skip([In] int cPins);
|
||||
|
||||
/// <summary>
|
||||
/// Resets the enumeration sequence to the beginning.
|
||||
@@ -45,7 +45,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Reset( );
|
||||
int Reset();
|
||||
|
||||
/// <summary>
|
||||
/// Makes a copy of the enumerator with the same enumeration state.
|
||||
@@ -56,6 +56,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Clone( [Out] out IEnumPins enumPins );
|
||||
int Clone([Out] out IEnumPins enumPins);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A868A6-0Ad4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A868A6-0Ad4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IFileSourceFilter
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,8 +22,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Load( [In, MarshalAs( UnmanagedType.LPWStr )] string fileName,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int Load([In, MarshalAs(UnmanagedType.LPWStr)] string fileName,
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the current file.
|
||||
@@ -35,7 +35,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetCurFile([Out, MarshalAs( UnmanagedType.LPWStr )] out string fileName,
|
||||
[Out, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int GetCurFile([Out, MarshalAs(UnmanagedType.LPWStr)] out string fileName,
|
||||
[Out, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A8689F-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A8689F-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IFilterGraph
|
||||
{
|
||||
/// <summary>
|
||||
@@ -23,7 +23,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddFilter( [In] IBaseFilter filter, [In, MarshalAs( UnmanagedType.LPWStr )] string name );
|
||||
int AddFilter([In] IBaseFilter filter, [In, MarshalAs(UnmanagedType.LPWStr)] string name);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a filter from the graph.
|
||||
@@ -34,7 +34,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int RemoveFilter( [In] IBaseFilter filter );
|
||||
int RemoveFilter([In] IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Provides an enumerator for all filters in the graph.
|
||||
@@ -45,7 +45,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EnumFilters( [Out] out IntPtr enumerator );
|
||||
int EnumFilters([Out] out IntPtr enumerator);
|
||||
|
||||
/// <summary>
|
||||
/// Finds a filter that was added with a specified name.
|
||||
@@ -57,7 +57,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindFilterByName( [In, MarshalAs( UnmanagedType.LPWStr )] string name, [Out] out IBaseFilter filter );
|
||||
int FindFilterByName([In, MarshalAs(UnmanagedType.LPWStr)] string name, [Out] out IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Connects two pins directly (without intervening filters).
|
||||
@@ -70,7 +70,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ConnectDirect( [In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int ConnectDirect([In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Breaks the existing pin connection and reconnects it to the same pin.
|
||||
@@ -81,7 +81,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Reconnect( [In] IPin pin );
|
||||
int Reconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Disconnects a specified pin.
|
||||
@@ -92,7 +92,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Disconnect( [In] IPin pin );
|
||||
int Disconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the reference clock to the default clock.
|
||||
@@ -101,6 +101,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetDefaultSyncSource( );
|
||||
int SetDefaultSyncSource();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddFilter( [In] IBaseFilter filter, [In, MarshalAs( UnmanagedType.LPWStr )] string name );
|
||||
int AddFilter([In] IBaseFilter filter, [In, MarshalAs(UnmanagedType.LPWStr)] string name);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a filter from the graph.
|
||||
@@ -37,7 +37,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int RemoveFilter( [In] IBaseFilter filter );
|
||||
int RemoveFilter([In] IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Provides an enumerator for all filters in the graph.
|
||||
@@ -48,7 +48,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EnumFilters( [Out] out IEnumFilters enumerator );
|
||||
int EnumFilters([Out] out IEnumFilters enumerator);
|
||||
|
||||
/// <summary>
|
||||
/// Finds a filter that was added with a specified name.
|
||||
@@ -60,7 +60,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindFilterByName( [In, MarshalAs( UnmanagedType.LPWStr )] string name, [Out] out IBaseFilter filter );
|
||||
int FindFilterByName([In, MarshalAs(UnmanagedType.LPWStr)] string name, [Out] out IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Connects two pins directly (without intervening filters).
|
||||
@@ -73,7 +73,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ConnectDirect( [In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int ConnectDirect([In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Breaks the existing pin connection and reconnects it to the same pin.
|
||||
@@ -84,7 +84,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Reconnect( [In] IPin pin );
|
||||
int Reconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Disconnects a specified pin.
|
||||
@@ -95,7 +95,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Disconnect( [In] IPin pin );
|
||||
int Disconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the reference clock to the default clock.
|
||||
@@ -104,7 +104,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetDefaultSyncSource( );
|
||||
int SetDefaultSyncSource();
|
||||
|
||||
// --- IGraphBuilder methods
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Connect( [In] IPin pinOut, [In] IPin pinIn );
|
||||
int Connect([In] IPin pinOut, [In] IPin pinIn);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a chain of filters to a specified output pin to render it.
|
||||
@@ -129,7 +129,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Render( [In] IPin pinOut );
|
||||
int Render([In] IPin pinOut);
|
||||
|
||||
/// <summary>
|
||||
/// Builds a filter graph that renders the specified file.
|
||||
@@ -142,8 +142,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int RenderFile(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string file,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string playList );
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string file,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string playList);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a source filter to the filter graph for a specific file.
|
||||
@@ -157,9 +157,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddSourceFilter(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string fileName,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string filterName,
|
||||
[Out] out IBaseFilter filter );
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string fileName,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string filterName,
|
||||
[Out] out IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the file for logging actions taken when attempting to perform an operation.
|
||||
@@ -170,7 +170,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetLogFile( IntPtr hFile );
|
||||
int SetLogFile(IntPtr hFile);
|
||||
|
||||
/// <summary>
|
||||
/// Requests that the graph builder return as soon as possible from its current task.
|
||||
@@ -179,7 +179,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Abort( );
|
||||
int Abort();
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the current operation should continue.
|
||||
@@ -188,7 +188,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ShouldOperationContinue( );
|
||||
int ShouldOperationContinue();
|
||||
|
||||
|
||||
// --- IFilterGraph2 methods
|
||||
@@ -209,7 +209,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
int AddSourceFilterForMoniker(
|
||||
[In] IMoniker moniker,
|
||||
[In] IBindCtx bindContext,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string filterName,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string filterName,
|
||||
[Out] out IBaseFilter filter
|
||||
);
|
||||
|
||||
@@ -226,7 +226,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
[PreserveSig]
|
||||
int ReconnectEx(
|
||||
[In] IPin pin,
|
||||
[In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType
|
||||
[In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A868A9-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A868A9-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IGraphBuilder
|
||||
{
|
||||
// --- IFilterGraph Methods
|
||||
@@ -24,7 +24,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddFilter( [In] IBaseFilter filter, [In, MarshalAs( UnmanagedType.LPWStr )] string name );
|
||||
int AddFilter([In] IBaseFilter filter, [In, MarshalAs(UnmanagedType.LPWStr)] string name);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a filter from the graph.
|
||||
@@ -35,7 +35,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int RemoveFilter( [In] IBaseFilter filter );
|
||||
int RemoveFilter([In] IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Provides an enumerator for all filters in the graph.
|
||||
@@ -46,7 +46,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EnumFilters( [Out] out IEnumFilters enumerator );
|
||||
int EnumFilters([Out] out IEnumFilters enumerator);
|
||||
|
||||
/// <summary>
|
||||
/// Finds a filter that was added with a specified name.
|
||||
@@ -58,7 +58,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int FindFilterByName( [In, MarshalAs( UnmanagedType.LPWStr )] string name, [Out] out IBaseFilter filter );
|
||||
int FindFilterByName([In, MarshalAs(UnmanagedType.LPWStr)] string name, [Out] out IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Connects two pins directly (without intervening filters).
|
||||
@@ -71,7 +71,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ConnectDirect( [In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int ConnectDirect([In] IPin pinOut, [In] IPin pinIn, [In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Breaks the existing pin connection and reconnects it to the same pin.
|
||||
@@ -82,7 +82,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Reconnect( [In] IPin pin );
|
||||
int Reconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Disconnects a specified pin.
|
||||
@@ -93,7 +93,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Disconnect( [In] IPin pin );
|
||||
int Disconnect([In] IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the reference clock to the default clock.
|
||||
@@ -102,7 +102,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetDefaultSyncSource( );
|
||||
int SetDefaultSyncSource();
|
||||
|
||||
// --- IGraphBuilder methods
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Connect( [In] IPin pinOut, [In] IPin pinIn );
|
||||
int Connect([In] IPin pinOut, [In] IPin pinIn);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a chain of filters to a specified output pin to render it.
|
||||
@@ -127,7 +127,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Render( [In] IPin pinOut );
|
||||
int Render([In] IPin pinOut);
|
||||
|
||||
/// <summary>
|
||||
/// Builds a filter graph that renders the specified file.
|
||||
@@ -140,8 +140,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int RenderFile(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string file,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string playList);
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string file,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string playList);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a source filter to the filter graph for a specific file.
|
||||
@@ -155,9 +155,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddSourceFilter(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string fileName,
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string filterName,
|
||||
[Out] out IBaseFilter filter );
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string fileName,
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string filterName,
|
||||
[Out] out IBaseFilter filter);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the file for logging actions taken when attempting to perform an operation.
|
||||
@@ -168,7 +168,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetLogFile( IntPtr hFile );
|
||||
int SetLogFile(IntPtr hFile);
|
||||
|
||||
/// <summary>
|
||||
/// Requests that the graph builder return as soon as possible from its current task.
|
||||
@@ -177,7 +177,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Abort( );
|
||||
int Abort();
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the current operation should continue.
|
||||
@@ -186,6 +186,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ShouldOperationContinue( );
|
||||
int ShouldOperationContinue();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A868B1-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
Guid("56A868B1-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsDual)]
|
||||
internal interface IMediaControl
|
||||
{
|
||||
@@ -20,7 +20,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Run( );
|
||||
int Run();
|
||||
|
||||
/// <summary>
|
||||
/// Pauses all filters in the filter graph.
|
||||
@@ -29,7 +29,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Pause( );
|
||||
int Pause();
|
||||
|
||||
/// <summary>
|
||||
/// Stops all the filters in the filter graph.
|
||||
@@ -38,7 +38,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Stop( );
|
||||
int Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the state of the filter graph.
|
||||
@@ -50,7 +50,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetState( int timeout, out int filterState );
|
||||
int GetState(int timeout, out int filterState);
|
||||
|
||||
/// <summary>
|
||||
/// Builds a filter graph that renders the specified file.
|
||||
@@ -61,7 +61,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int RenderFile( string fileName );
|
||||
int RenderFile(string fileName);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a source filter to the filter graph, for a specified file.
|
||||
@@ -73,7 +73,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int AddSourceFilter( [In] string fileName, [Out, MarshalAs( UnmanagedType.IDispatch )] out object filterInfo );
|
||||
int AddSourceFilter([In] string fileName, [Out, MarshalAs(UnmanagedType.IDispatch)] out object filterInfo);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a collection of the filters in the filter graph.
|
||||
@@ -85,7 +85,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_FilterCollection(
|
||||
[Out, MarshalAs( UnmanagedType.IDispatch )] out object collection );
|
||||
[Out, MarshalAs(UnmanagedType.IDispatch)] out object collection);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a collection of all the filters listed in the registry.
|
||||
@@ -97,7 +97,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_RegFilterCollection(
|
||||
[Out, MarshalAs( UnmanagedType.IDispatch )] out object collection );
|
||||
[Out, MarshalAs(UnmanagedType.IDispatch)] out object collection);
|
||||
|
||||
/// <summary>
|
||||
/// Pauses the filter graph, allowing filters to queue data, and then stops the filter graph.
|
||||
@@ -106,6 +106,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int StopWhenReady( );
|
||||
int StopWhenReady();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
/// The interface inherits contains methods for retrieving event notifications and for overriding the
|
||||
/// filter graph's default handling of events.
|
||||
/// </summary>
|
||||
[ComVisible( true ), ComImport,
|
||||
Guid( "56a868c0-0ad4-11ce-b03a-0020af0ba770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsDual )]
|
||||
[ComVisible(true), ComImport,
|
||||
Guid("56a868c0-0ad4-11ce-b03a-0020af0ba770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsDual)]
|
||||
internal interface IMediaEventEx
|
||||
{
|
||||
/// <summary>
|
||||
@@ -20,7 +20,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetEventHandle( out IntPtr hEvent );
|
||||
int GetEventHandle(out IntPtr hEvent);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the next event notification from the event queue.
|
||||
@@ -34,7 +34,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetEvent( [Out, MarshalAs( UnmanagedType.I4 )] out DsEvCode lEventCode, [Out] out IntPtr lParam1, [Out] out IntPtr lParam2, int msTimeout );
|
||||
int GetEvent([Out, MarshalAs(UnmanagedType.I4)] out DsEvCode lEventCode, [Out] out IntPtr lParam1, [Out] out IntPtr lParam2, int msTimeout);
|
||||
|
||||
/// <summary>
|
||||
/// Waits for the filter graph to render all available data.
|
||||
@@ -46,7 +46,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int WaitForCompletion( int msTimeout, [Out] out int pEvCode );
|
||||
int WaitForCompletion(int msTimeout, [Out] out int pEvCode);
|
||||
|
||||
/// <summary>
|
||||
/// Cancels the Filter Graph Manager's default handling for a specified event.
|
||||
@@ -57,7 +57,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int CancelDefaultHandling( int lEvCode );
|
||||
int CancelDefaultHandling(int lEvCode);
|
||||
|
||||
/// <summary>
|
||||
/// Restores the Filter Graph Manager's default handling for a specified event.
|
||||
@@ -67,7 +67,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int RestoreDefaultHandling( int lEvCode );
|
||||
int RestoreDefaultHandling(int lEvCode);
|
||||
|
||||
/// <summary>
|
||||
/// Frees resources associated with the parameters of an event.
|
||||
@@ -79,7 +79,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int FreeEventParams( [In, MarshalAs( UnmanagedType.I4 )] DsEvCode lEvCode, IntPtr lParam1, IntPtr lParam2 );
|
||||
int FreeEventParams([In, MarshalAs(UnmanagedType.I4)] DsEvCode lEvCode, IntPtr lParam1, IntPtr lParam2);
|
||||
|
||||
/// <summary>
|
||||
/// Registers a window to process event notifications.
|
||||
@@ -92,7 +92,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetNotifyWindow( IntPtr hwnd, int lMsg, IntPtr lInstanceData );
|
||||
int SetNotifyWindow(IntPtr hwnd, int lMsg, IntPtr lInstanceData);
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables event notifications.
|
||||
@@ -103,7 +103,7 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetNotifyFlags( int lNoNotifyFlags );
|
||||
int SetNotifyFlags(int lNoNotifyFlags);
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether event notifications are enabled.
|
||||
@@ -114,6 +114,6 @@
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetNotifyFlags( out int lplNoNotifyFlags );
|
||||
int GetNotifyFlags(out int lplNoNotifyFlags);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,15 +9,15 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport, System.Security.SuppressUnmanagedCodeSecurity,
|
||||
Guid( "56a86899-0ad4-11ce-b03a-0020af0ba770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56a86899-0ad4-11ce-b03a-0020af0ba770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IMediaFilter : IPersist
|
||||
{
|
||||
#region IPersist Methods
|
||||
|
||||
[PreserveSig]
|
||||
new int GetClassID(
|
||||
[Out] out Guid pClassID );
|
||||
[Out] out Guid pClassID);
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Stop( );
|
||||
int Stop();
|
||||
|
||||
/// <summary>
|
||||
/// This method informs the filter to transition to the new state.
|
||||
@@ -37,7 +37,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Pause( );
|
||||
int Pause();
|
||||
|
||||
/// <summary>
|
||||
/// This method informs the filter to transition to the new (running) state. Passes a time value to synchronize independent streams.
|
||||
@@ -48,7 +48,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Run( [In] long tStart );
|
||||
int Run([In] long tStart);
|
||||
|
||||
/// <summary>
|
||||
/// This method determines the filter's state.
|
||||
@@ -62,7 +62,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
[PreserveSig]
|
||||
int GetState(
|
||||
[In] int dwMilliSecsTimeout,
|
||||
[Out] out FilterState filtState );
|
||||
[Out] out FilterState filtState);
|
||||
|
||||
/// <summary>
|
||||
/// This method identifies the reference clock to which the filter should synchronize activity.
|
||||
@@ -73,7 +73,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetSyncSource( [In] IReferenceClock pClock );
|
||||
int SetSyncSource([In] IReferenceClock pClock);
|
||||
|
||||
/// <summary>
|
||||
/// This method retrieves the current reference clock in use by this filter.
|
||||
@@ -85,7 +85,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetSyncSource( [Out] out IReferenceClock pClock );
|
||||
int GetSyncSource([Out] out IReferenceClock pClock);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "56A86891-0AD4-11CE-B03A-0020AF0BA770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56A86891-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IPin
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,7 +22,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Connect( [In] IPin receivePin, [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int Connect([In] IPin receivePin, [In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Makes a connection to this pin and is called by a connecting pin.
|
||||
@@ -34,7 +34,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ReceiveConnection( [In] IPin receivePin, [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int ReceiveConnection([In] IPin receivePin, [In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Breaks the current pin connection.
|
||||
@@ -43,7 +43,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Disconnect( );
|
||||
int Disconnect();
|
||||
|
||||
/// <summary>
|
||||
/// Returns a pointer to the connecting pin.
|
||||
@@ -54,7 +54,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ConnectedTo( [Out] out IPin pin );
|
||||
int ConnectedTo([Out] out IPin pin);
|
||||
|
||||
/// <summary>
|
||||
/// Returns the media type of this pin's connection.
|
||||
@@ -68,7 +68,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int ConnectionMediaType( [Out, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int ConnectionMediaType([Out, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves information about this pin (for example, the name, owning filter, and direction).
|
||||
@@ -79,7 +79,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryPinInfo( [Out] out PinInfo pinInfo );
|
||||
int QueryPinInfo([Out] out PinInfo pinInfo);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the direction for this pin.
|
||||
@@ -90,7 +90,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryDirection( out PinDirection pinDirection );
|
||||
int QueryDirection(out PinDirection pinDirection);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves an identifier for the pin.
|
||||
@@ -101,7 +101,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryId( [Out, MarshalAs( UnmanagedType.LPWStr )] out string id );
|
||||
int QueryId([Out, MarshalAs(UnmanagedType.LPWStr)] out string id);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether a given media type is acceptable by the pin.
|
||||
@@ -112,7 +112,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryAccept( [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int QueryAccept([In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Provides an enumerator for this pin's preferred media types.
|
||||
@@ -123,7 +123,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EnumMediaTypes( IntPtr enumerator );
|
||||
int EnumMediaTypes(IntPtr enumerator);
|
||||
|
||||
/// <summary>
|
||||
/// Provides an array of the pins to which this pin internally connects.
|
||||
@@ -136,7 +136,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int QueryInternalConnections( IntPtr apPin, [In, Out] ref int nPin );
|
||||
int QueryInternalConnections(IntPtr apPin, [In, Out] ref int nPin);
|
||||
|
||||
/// <summary>
|
||||
/// Notifies the pin that no additional data is expected.
|
||||
@@ -145,7 +145,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EndOfStream( );
|
||||
int EndOfStream();
|
||||
|
||||
/// <summary>
|
||||
/// Begins a flush operation.
|
||||
@@ -154,7 +154,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int BeginFlush( );
|
||||
int BeginFlush();
|
||||
|
||||
/// <summary>
|
||||
/// Ends a flush operation.
|
||||
@@ -163,7 +163,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int EndFlush( );
|
||||
int EndFlush();
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that samples following this call are grouped as a segment with a given start time, stop time, and rate.
|
||||
@@ -179,6 +179,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
int NewSegment(
|
||||
long start,
|
||||
long stop,
|
||||
double rate );
|
||||
double rate);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "55272A00-42CB-11CE-8135-00AA004BB851" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("55272A00-42CB-11CE-8135-00AA004BB851"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IPropertyBag
|
||||
{
|
||||
/// <summary>
|
||||
@@ -25,9 +25,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int Read(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string propertyName,
|
||||
[In, Out, MarshalAs( UnmanagedType.Struct )] ref object pVar,
|
||||
[In] IntPtr pErrorLog );
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string propertyName,
|
||||
[In, Out, MarshalAs(UnmanagedType.Struct)] ref object pVar,
|
||||
[In] IntPtr pErrorLog);
|
||||
|
||||
/// <summary>
|
||||
/// Write property to property bag.
|
||||
@@ -40,7 +40,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int Write(
|
||||
[In, MarshalAs( UnmanagedType.LPWStr )] string propertyName,
|
||||
[In, MarshalAs( UnmanagedType.Struct )] ref object pVar );
|
||||
[In, MarshalAs(UnmanagedType.LPWStr)] string propertyName,
|
||||
[In, MarshalAs(UnmanagedType.Struct)] ref object pVar);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// retrieve the current reference time, or to request notification of an elapsed time.
|
||||
/// </summary>
|
||||
[ComImport, System.Security.SuppressUnmanagedCodeSecurity,
|
||||
Guid( "56a86897-0ad4-11ce-b03a-0020af0ba770" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("56a86897-0ad4-11ce-b03a-0020af0ba770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface IReferenceClock
|
||||
{
|
||||
/// <summary>
|
||||
@@ -24,7 +24,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetTime( [Out] out long pTime );
|
||||
int GetTime([Out] out long pTime);
|
||||
|
||||
/// <summary>
|
||||
/// The AdviseTime method creates a one-shot advise request.
|
||||
@@ -42,7 +42,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
[In] long baseTime,
|
||||
[In] long streamTime,
|
||||
[In] IntPtr hEvent,
|
||||
[Out] out int pdwAdviseCookie );
|
||||
[Out] out int pdwAdviseCookie);
|
||||
|
||||
/// <summary>
|
||||
/// The AdvisePeriodic method creates a periodic advise request.
|
||||
@@ -60,7 +60,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
[In] long startTime,
|
||||
[In] long periodTime,
|
||||
[In] IntPtr hSemaphore,
|
||||
[Out] out int pdwAdviseCookie );
|
||||
[Out] out int pdwAdviseCookie);
|
||||
|
||||
/// <summary>
|
||||
/// The Unadvise method removes a pending advise request.
|
||||
@@ -71,6 +71,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int Unadvise( [In] int dwAdviseCookie );
|
||||
int Unadvise([In] int dwAdviseCookie);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid("6B652FFF-11FE-4FCE-92AD-0266B5D7C78F"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
Guid("6B652FFF-11FE-4FCE-92AD-0266B5D7C78F"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface ISampleGrabber
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies whether the filter should stop the graph after receiving one sample.
|
||||
/// </summary>
|
||||
@@ -22,7 +22,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetOneShot( [In, MarshalAs( UnmanagedType.Bool )] bool oneShot );
|
||||
int SetOneShot([In, MarshalAs(UnmanagedType.Bool)] bool oneShot);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the media type for the connection on the Sample Grabber's input pin.
|
||||
@@ -33,7 +33,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetMediaType( [In, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int SetMediaType([In, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the media type for the connection on the Sample Grabber's input pin.
|
||||
@@ -44,7 +44,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetConnectedMediaType( [Out, MarshalAs( UnmanagedType.LPStruct )] AMMediaType mediaType );
|
||||
int GetConnectedMediaType([Out, MarshalAs(UnmanagedType.LPStruct)] AMMediaType mediaType);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies whether to copy sample data into a buffer as it goes through the filter.
|
||||
@@ -56,7 +56,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetBufferSamples( [In, MarshalAs( UnmanagedType.Bool )] bool bufferThem );
|
||||
int SetBufferSamples([In, MarshalAs(UnmanagedType.Bool)] bool bufferThem);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a copy of the sample that the filter received most recently.
|
||||
@@ -68,7 +68,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetCurrentBuffer( ref int bufferSize, IntPtr buffer );
|
||||
int GetCurrentBuffer(ref int bufferSize, IntPtr buffer);
|
||||
|
||||
/// <summary>
|
||||
/// Not currently implemented.
|
||||
@@ -79,7 +79,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetCurrentSample( IntPtr sample );
|
||||
int GetCurrentSample(IntPtr sample);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a callback method to call on incoming samples.
|
||||
@@ -91,6 +91,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetCallback( ISampleGrabberCB callback, int whichMethodToCallback );
|
||||
int SetCallback(ISampleGrabberCB callback, int whichMethodToCallback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid("0579154A-2B53-4994-B0D0-E773148EFF85"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
Guid("0579154A-2B53-4994-B0D0-E773148EFF85"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface ISampleGrabberCB
|
||||
{
|
||||
/// <summary>
|
||||
@@ -22,7 +22,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SampleCB( double sampleTime, IntPtr sample );
|
||||
int SampleCB(double sampleTime, IntPtr sample);
|
||||
|
||||
/// <summary>
|
||||
/// Callback method that receives a pointer to the sample bufferþ
|
||||
@@ -35,6 +35,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int BufferCB( double sampleTime, IntPtr buffer, int bufferLen );
|
||||
int BufferCB(double sampleTime, IntPtr buffer, int bufferLen);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid( "B196B28B-BAB4-101A-B69C-00AA00341D07" ),
|
||||
InterfaceType( ComInterfaceType.InterfaceIsIUnknown )]
|
||||
Guid("B196B28B-BAB4-101A-B69C-00AA00341D07"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
internal interface ISpecifyPropertyPages
|
||||
{
|
||||
/// <summary>
|
||||
@@ -24,6 +24,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetPages( out CAUUID pPages );
|
||||
int GetPages(out CAUUID pPages);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// </summary>
|
||||
///
|
||||
[ComImport,
|
||||
Guid("56A868B4-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsDual)]
|
||||
Guid("56A868B4-0AD4-11CE-B03A-0020AF0BA770"),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsDual)]
|
||||
internal interface IVideoWindow
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// Sets the video window caption.
|
||||
/// </summary>
|
||||
@@ -21,7 +21,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Caption( string caption );
|
||||
int put_Caption(string caption);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the video window caption.
|
||||
@@ -32,7 +32,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Caption( [Out] out string caption );
|
||||
int get_Caption([Out] out string caption);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the window style on the video window.
|
||||
@@ -43,7 +43,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_WindowStyle( int windowStyle );
|
||||
int put_WindowStyle(int windowStyle);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the window style on the video window.
|
||||
@@ -54,7 +54,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_WindowStyle( out int windowStyle );
|
||||
int get_WindowStyle(out int windowStyle);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the extended window style on the video window.
|
||||
@@ -65,7 +65,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_WindowStyleEx( int windowStyleEx );
|
||||
int put_WindowStyleEx(int windowStyleEx);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the extended window style on the video window.
|
||||
@@ -76,7 +76,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_WindowStyleEx( out int windowStyleEx );
|
||||
int get_WindowStyleEx(out int windowStyleEx);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies whether the video renderer automatically shows the video window when it receives video data.
|
||||
@@ -87,7 +87,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_AutoShow( [In, MarshalAs( UnmanagedType.Bool )] bool autoShow );
|
||||
int put_AutoShow([In, MarshalAs(UnmanagedType.Bool)] bool autoShow);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the video renderer automatically shows the video window when it receives video data.
|
||||
@@ -98,7 +98,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_AutoShow( [Out, MarshalAs( UnmanagedType.Bool )] out bool autoShow );
|
||||
int get_AutoShow([Out, MarshalAs(UnmanagedType.Bool)] out bool autoShow);
|
||||
|
||||
/// <summary>
|
||||
/// Shows, hides, minimizes, or maximizes the video window.
|
||||
@@ -109,7 +109,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_WindowState( int windowState );
|
||||
int put_WindowState(int windowState);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the video window is visible, hidden, minimized, or maximized.
|
||||
@@ -120,7 +120,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_WindowState( out int windowState );
|
||||
int get_WindowState(out int windowState);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies whether the video window realizes its palette in the background.
|
||||
@@ -131,7 +131,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_BackgroundPalette( [In, MarshalAs( UnmanagedType.Bool )] bool backgroundPalette );
|
||||
int put_BackgroundPalette([In, MarshalAs(UnmanagedType.Bool)] bool backgroundPalette);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the video window realizes its palette in the background.
|
||||
@@ -142,7 +142,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_BackgroundPalette( [Out, MarshalAs( UnmanagedType.Bool )] out bool backgroundPalette );
|
||||
int get_BackgroundPalette([Out, MarshalAs(UnmanagedType.Bool)] out bool backgroundPalette);
|
||||
|
||||
/// <summary>
|
||||
/// Shows or hides the video window.
|
||||
@@ -153,7 +153,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Visible( [In, MarshalAs( UnmanagedType.Bool )] bool visible );
|
||||
int put_Visible([In, MarshalAs(UnmanagedType.Bool)] bool visible);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the video window is visible.
|
||||
@@ -164,7 +164,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Visible( [Out, MarshalAs( UnmanagedType.Bool )] out bool visible );
|
||||
int get_Visible([Out, MarshalAs(UnmanagedType.Bool)] out bool visible);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the video window's x-coordinate.
|
||||
@@ -175,7 +175,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Left( int left );
|
||||
int put_Left(int left);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the video window's x-coordinate.
|
||||
@@ -186,7 +186,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Left( out int left );
|
||||
int get_Left(out int left);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the width of the video window.
|
||||
@@ -197,7 +197,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Width( int width );
|
||||
int put_Width(int width);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the width of the video window.
|
||||
@@ -208,7 +208,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Width( out int width );
|
||||
int get_Width(out int width);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the video window's y-coordinate.
|
||||
@@ -219,7 +219,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Top( int top );
|
||||
int put_Top(int top);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the video window's y-coordinate.
|
||||
@@ -230,7 +230,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Top( out int top );
|
||||
int get_Top(out int top);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the height of the video window.
|
||||
@@ -241,7 +241,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Height( int height );
|
||||
int put_Height(int height);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the height of the video window.
|
||||
@@ -252,7 +252,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Height( out int height );
|
||||
int get_Height(out int height);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a parent window for the video windowþ
|
||||
@@ -263,7 +263,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_Owner( IntPtr owner );
|
||||
int put_Owner(IntPtr owner);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the video window's parent window, if anyþ
|
||||
@@ -274,7 +274,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_Owner( out IntPtr owner );
|
||||
int get_Owner(out IntPtr owner);
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a window to receive mouse and keyboard messages from the video window.
|
||||
@@ -285,7 +285,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_MessageDrain( IntPtr drain );
|
||||
int put_MessageDrain(IntPtr drain);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the window that receives mouse and keyboard messages from the video window, if any.
|
||||
@@ -296,7 +296,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_MessageDrain( out IntPtr drain );
|
||||
int get_MessageDrain(out IntPtr drain);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the color that appears around the edges of the destination rectangle.
|
||||
@@ -307,7 +307,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_BorderColor( out int color );
|
||||
int get_BorderColor(out int color);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the color that appears around the edges of the destination rectangle.
|
||||
@@ -318,7 +318,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_BorderColor( int color );
|
||||
int put_BorderColor(int color);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the video renderer is in full-screen mode.
|
||||
@@ -330,7 +330,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
[PreserveSig]
|
||||
int get_FullScreenMode(
|
||||
[Out, MarshalAs( UnmanagedType.Bool )] out bool fullScreenMode );
|
||||
[Out, MarshalAs(UnmanagedType.Bool)] out bool fullScreenMode);
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables full-screen mode.
|
||||
@@ -341,7 +341,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int put_FullScreenMode( [In, MarshalAs( UnmanagedType.Bool )] bool fullScreenMode );
|
||||
int put_FullScreenMode([In, MarshalAs(UnmanagedType.Bool)] bool fullScreenMode);
|
||||
|
||||
/// <summary>
|
||||
/// Places the video window at the top of the Z order.
|
||||
@@ -352,7 +352,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetWindowForeground( int focus );
|
||||
int SetWindowForeground(int focus);
|
||||
|
||||
/// <summary>
|
||||
/// Forwards a message to the video window.
|
||||
@@ -366,7 +366,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int NotifyOwnerMessage( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam );
|
||||
int NotifyOwnerMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the position of the video windowþ
|
||||
@@ -380,7 +380,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int SetWindowPosition( int left, int top, int width, int height );
|
||||
int SetWindowPosition(int left, int top, int width, int height);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the position of the video window.
|
||||
@@ -394,7 +394,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetWindowPosition( out int left, out int top, out int width, out int height );
|
||||
int GetWindowPosition(out int left, out int top, out int width, out int height);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the minimum ideal size for the video image.
|
||||
@@ -406,7 +406,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetMinIdealImageSize( out int width, out int height );
|
||||
int GetMinIdealImageSize(out int width, out int height);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the maximum ideal size for the video image.
|
||||
@@ -418,7 +418,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetMaxIdealImageSize( out int width, out int height );
|
||||
int GetMaxIdealImageSize(out int width, out int height);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the restored window position.
|
||||
@@ -432,7 +432,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int GetRestorePosition( out int left, out int top, out int width, out int height );
|
||||
int GetRestorePosition(out int left, out int top, out int width, out int height);
|
||||
|
||||
/// <summary>
|
||||
/// Hides the cursor.
|
||||
@@ -443,7 +443,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int HideCursor( [In, MarshalAs( UnmanagedType.Bool )] bool hideCursor );
|
||||
int HideCursor([In, MarshalAs(UnmanagedType.Bool)] bool hideCursor);
|
||||
|
||||
/// <summary>
|
||||
/// Queries whether the cursor is hidden.
|
||||
@@ -454,6 +454,6 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <returns>Return's <b>HRESULT</b> error code.</returns>
|
||||
///
|
||||
[PreserveSig]
|
||||
int IsCursorHidden( [Out, MarshalAs( UnmanagedType.Bool )] out bool hideCursor );
|
||||
int IsCursorHidden([Out, MarshalAs(UnmanagedType.Bool)] out bool hideCursor);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// This enumeration indicates a pin's direction.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
internal enum PinDirection
|
||||
{
|
||||
/// <summary>
|
||||
@@ -30,8 +30,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure describes the format of a media sample.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential)]
|
||||
internal class AMMediaType : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
@@ -47,13 +47,13 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <summary>
|
||||
/// If <b>true</b>, samples are of a fixed size.
|
||||
/// </summary>
|
||||
[MarshalAs( UnmanagedType.Bool )]
|
||||
[MarshalAs(UnmanagedType.Bool)]
|
||||
public bool FixedSizeSamples = true;
|
||||
|
||||
/// <summary>
|
||||
/// If <b>true</b>, samples are compressed using temporal (interframe) compression.
|
||||
/// </summary>
|
||||
[MarshalAs( UnmanagedType.Bool )]
|
||||
[MarshalAs(UnmanagedType.Bool)]
|
||||
public bool TemporalCompression;
|
||||
|
||||
/// <summary>
|
||||
@@ -85,20 +85,20 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// Destroys the instance of the <see cref="AMMediaType"/> class.
|
||||
/// </summary>
|
||||
///
|
||||
~AMMediaType( )
|
||||
~AMMediaType()
|
||||
{
|
||||
Dispose( false );
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dispose the object.
|
||||
/// </summary>
|
||||
///
|
||||
public void Dispose( )
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose( true );
|
||||
Dispose(true);
|
||||
// remove me from the Finalization queue
|
||||
GC.SuppressFinalize( this );
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -107,17 +107,17 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <param name="disposing">Indicates if disposing was initiated manually.</param>
|
||||
///
|
||||
protected virtual void Dispose( bool disposing )
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if ( ( FormatSize != 0 ) && ( FormatPtr != IntPtr.Zero ) )
|
||||
if ((FormatSize != 0) && (FormatPtr != IntPtr.Zero))
|
||||
{
|
||||
Marshal.FreeCoTaskMem( FormatPtr );
|
||||
Marshal.FreeCoTaskMem(FormatPtr);
|
||||
FormatSize = 0;
|
||||
}
|
||||
|
||||
if ( unkPtr != IntPtr.Zero )
|
||||
if (unkPtr != IntPtr.Zero)
|
||||
{
|
||||
Marshal.Release( unkPtr );
|
||||
Marshal.Release(unkPtr);
|
||||
unkPtr = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
@@ -130,8 +130,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure contains information about a pin.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode)]
|
||||
internal struct PinInfo
|
||||
{
|
||||
/// <summary>
|
||||
@@ -147,19 +147,19 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <summary>
|
||||
/// Name of the pin.
|
||||
/// </summary>
|
||||
[MarshalAs( UnmanagedType.ByValTStr, SizeConst = 128 )]
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
public string Name;
|
||||
}
|
||||
|
||||
// FILTER_INFO
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode)]
|
||||
internal struct FilterInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Filter's name.
|
||||
/// </summary>
|
||||
[MarshalAs( UnmanagedType.ByValTStr, SizeConst = 128 )]
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
public string Name;
|
||||
|
||||
/// <summary>
|
||||
@@ -174,8 +174,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure describes the bitmap and color information for a video image.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VideoInfoHeader
|
||||
{
|
||||
/// <summary>
|
||||
@@ -215,8 +215,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure describes the bitmap and color information for a video image (v2).
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VideoInfoHeader2
|
||||
{
|
||||
/// <summary>
|
||||
@@ -284,8 +284,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure contains information about the dimensions and color format of a device-independent bitmap (DIB).
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential, Pack = 2 )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential, Pack = 2)]
|
||||
internal struct BitmapInfoHeader
|
||||
{
|
||||
/// <summary>
|
||||
@@ -350,8 +350,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential)]
|
||||
internal struct RECT
|
||||
{
|
||||
/// <summary>
|
||||
@@ -381,8 +381,8 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// The CAUUID structure is a Counted Array of UUID or GUID types.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false ),
|
||||
StructLayout( LayoutKind.Sequential )]
|
||||
[ComVisible(false),
|
||||
StructLayout(LayoutKind.Sequential)]
|
||||
internal struct CAUUID
|
||||
{
|
||||
/// <summary>
|
||||
@@ -401,14 +401,14 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>A managed representation of <b>pElems</b>.</returns>
|
||||
///
|
||||
public Guid[] ToGuidArray( )
|
||||
public Guid[] ToGuidArray()
|
||||
{
|
||||
Guid[] retval = new Guid[cElems];
|
||||
|
||||
for ( int i = 0; i < cElems; i++ )
|
||||
for (int i = 0; i < cElems; i++)
|
||||
{
|
||||
IntPtr ptr = new IntPtr( pElems.ToInt64( ) + i * Marshal.SizeOf( typeof( Guid ) ) );
|
||||
retval[i] = (Guid) Marshal.PtrToStructure( ptr, typeof( Guid ) );
|
||||
IntPtr ptr = new IntPtr(pElems.ToInt64() + i * Marshal.SizeOf(typeof(Guid)));
|
||||
retval[i] = (Guid)Marshal.PtrToStructure(ptr, typeof(Guid));
|
||||
}
|
||||
|
||||
return retval;
|
||||
@@ -421,70 +421,70 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
internal enum DsEvCode
|
||||
{
|
||||
None,
|
||||
Complete = 0x01, // EC_COMPLETE
|
||||
Complete = 0x01, // EC_COMPLETE
|
||||
DeviceLost = 0x1F, // EC_DEVICE_LOST
|
||||
//(...) not yet interested in other events
|
||||
}
|
||||
|
||||
[Flags, ComVisible( false )]
|
||||
[Flags, ComVisible(false)]
|
||||
internal enum AnalogVideoStandard
|
||||
{
|
||||
None = 0x00000000, // This is a digital sensor
|
||||
NTSC_M = 0x00000001, // 75 IRE Setup
|
||||
NTSC_M_J = 0x00000002, // Japan, 0 IRE Setup
|
||||
NTSC_433 = 0x00000004,
|
||||
PAL_B = 0x00000010,
|
||||
PAL_D = 0x00000020,
|
||||
PAL_G = 0x00000040,
|
||||
PAL_H = 0x00000080,
|
||||
PAL_I = 0x00000100,
|
||||
PAL_M = 0x00000200,
|
||||
PAL_N = 0x00000400,
|
||||
PAL_60 = 0x00000800,
|
||||
SECAM_B = 0x00001000,
|
||||
SECAM_D = 0x00002000,
|
||||
SECAM_G = 0x00004000,
|
||||
SECAM_H = 0x00008000,
|
||||
SECAM_K = 0x00010000,
|
||||
SECAM_K1 = 0x00020000,
|
||||
SECAM_L = 0x00040000,
|
||||
SECAM_L1 = 0x00080000,
|
||||
None = 0x00000000, // This is a digital sensor
|
||||
NTSC_M = 0x00000001, // 75 IRE Setup
|
||||
NTSC_M_J = 0x00000002, // Japan, 0 IRE Setup
|
||||
NTSC_433 = 0x00000004,
|
||||
PAL_B = 0x00000010,
|
||||
PAL_D = 0x00000020,
|
||||
PAL_G = 0x00000040,
|
||||
PAL_H = 0x00000080,
|
||||
PAL_I = 0x00000100,
|
||||
PAL_M = 0x00000200,
|
||||
PAL_N = 0x00000400,
|
||||
PAL_60 = 0x00000800,
|
||||
SECAM_B = 0x00001000,
|
||||
SECAM_D = 0x00002000,
|
||||
SECAM_G = 0x00004000,
|
||||
SECAM_H = 0x00008000,
|
||||
SECAM_K = 0x00010000,
|
||||
SECAM_K1 = 0x00020000,
|
||||
SECAM_L = 0x00040000,
|
||||
SECAM_L1 = 0x00080000,
|
||||
PAL_N_COMBO = 0x00100000 // Argentina
|
||||
}
|
||||
|
||||
[Flags, ComVisible( false )]
|
||||
[Flags, ComVisible(false)]
|
||||
internal enum VideoControlFlags
|
||||
{
|
||||
FlipHorizontal = 0x0001,
|
||||
FlipVertical = 0x0002,
|
||||
FlipHorizontal = 0x0001,
|
||||
FlipVertical = 0x0002,
|
||||
ExternalTriggerEnable = 0x0004,
|
||||
Trigger = 0x0008
|
||||
Trigger = 0x0008
|
||||
}
|
||||
|
||||
[StructLayout( LayoutKind.Sequential ), ComVisible( false )]
|
||||
[StructLayout(LayoutKind.Sequential), ComVisible(false)]
|
||||
internal class VideoStreamConfigCaps // VIDEO_STREAM_CONFIG_CAPS
|
||||
{
|
||||
public Guid Guid;
|
||||
public AnalogVideoStandard VideoStandard;
|
||||
public Size InputSize;
|
||||
public Size MinCroppingSize;
|
||||
public Size MaxCroppingSize;
|
||||
public int CropGranularityX;
|
||||
public int CropGranularityY;
|
||||
public int CropAlignX;
|
||||
public int CropAlignY;
|
||||
public Size MinOutputSize;
|
||||
public Size MaxOutputSize;
|
||||
public int OutputGranularityX;
|
||||
public int OutputGranularityY;
|
||||
public int StretchTapsX;
|
||||
public int StretchTapsY;
|
||||
public int ShrinkTapsX;
|
||||
public int ShrinkTapsY;
|
||||
public long MinFrameInterval;
|
||||
public long MaxFrameInterval;
|
||||
public int MinBitsPerSecond;
|
||||
public int MaxBitsPerSecond;
|
||||
public Guid Guid;
|
||||
public AnalogVideoStandard VideoStandard;
|
||||
public Size InputSize;
|
||||
public Size MinCroppingSize;
|
||||
public Size MaxCroppingSize;
|
||||
public int CropGranularityX;
|
||||
public int CropGranularityY;
|
||||
public int CropAlignX;
|
||||
public int CropAlignY;
|
||||
public Size MinOutputSize;
|
||||
public Size MaxOutputSize;
|
||||
public int OutputGranularityX;
|
||||
public int OutputGranularityY;
|
||||
public int StretchTapsX;
|
||||
public int StretchTapsY;
|
||||
public int ShrinkTapsX;
|
||||
public int ShrinkTapsY;
|
||||
public long MinFrameInterval;
|
||||
public long MaxFrameInterval;
|
||||
public int MinBitsPerSecond;
|
||||
public int MaxBitsPerSecond;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -18,13 +18,13 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns filter's pin.</returns>
|
||||
///
|
||||
public static IPin GetPin( IBaseFilter filter, PinDirection dir, int num )
|
||||
public static IPin GetPin(IBaseFilter filter, PinDirection dir, int num)
|
||||
{
|
||||
IPin[] pin = new IPin[1];
|
||||
IEnumPins pinsEnum = null;
|
||||
|
||||
// enum filter pins
|
||||
if ( filter.EnumPins( out pinsEnum ) == 0 )
|
||||
if (filter.EnumPins(out pinsEnum) == 0)
|
||||
{
|
||||
PinDirection pinDir;
|
||||
int n;
|
||||
@@ -32,25 +32,25 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
try
|
||||
{
|
||||
// get next pin
|
||||
while ( pinsEnum.Next( 1, pin, out n ) == 0 )
|
||||
while (pinsEnum.Next(1, pin, out n) == 0)
|
||||
{
|
||||
// query pin`s direction
|
||||
pin[0].QueryDirection( out pinDir );
|
||||
pin[0].QueryDirection(out pinDir);
|
||||
|
||||
if ( pinDir == dir )
|
||||
if (pinDir == dir)
|
||||
{
|
||||
if ( num == 0 )
|
||||
if (num == 0)
|
||||
return pin[0];
|
||||
num--;
|
||||
}
|
||||
|
||||
Marshal.ReleaseComObject( pin[0] );
|
||||
Marshal.ReleaseComObject(pin[0]);
|
||||
pin[0] = null;
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Marshal.ReleaseComObject( pinsEnum );
|
||||
Marshal.ReleaseComObject(pinsEnum);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@@ -65,9 +65,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns filter's pin.</returns>
|
||||
///
|
||||
public static IPin GetInPin( IBaseFilter filter, int num )
|
||||
public static IPin GetInPin(IBaseFilter filter, int num)
|
||||
{
|
||||
return GetPin( filter, PinDirection.Input, num );
|
||||
return GetPin(filter, PinDirection.Input, num);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -79,9 +79,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns filter's pin.</returns>
|
||||
///
|
||||
public static IPin GetOutPin( IBaseFilter filter, int num )
|
||||
public static IPin GetOutPin(IBaseFilter filter, int num)
|
||||
{
|
||||
return GetPin( filter, PinDirection.Output, num );
|
||||
return GetPin(filter, PinDirection.Output, num);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <summary>
|
||||
/// DirectShow class IDs.
|
||||
/// </summary>
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
static internal class Clsid
|
||||
{
|
||||
/// <summary>
|
||||
@@ -16,7 +16,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to CLSID_SystemDeviceEnum.</remarks>
|
||||
///
|
||||
public static readonly Guid SystemDeviceEnum =
|
||||
new Guid( 0x62BE5D10, 0x60EB, 0x11D0, 0xBD, 0x3B, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86 );
|
||||
new Guid(0x62BE5D10, 0x60EB, 0x11D0, 0xBD, 0x3B, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);
|
||||
|
||||
/// <summary>
|
||||
/// Filter graph.
|
||||
@@ -25,7 +25,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to CLSID_FilterGraph.</remarks>
|
||||
///
|
||||
public static readonly Guid FilterGraph =
|
||||
new Guid( 0xE436EBB3, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EBB3, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// Sample grabber.
|
||||
@@ -34,7 +34,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to CLSID_SampleGrabber.</remarks>
|
||||
///
|
||||
public static readonly Guid SampleGrabber =
|
||||
new Guid( 0xC1F400A0, 0x3F08, 0x11D3, 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37 );
|
||||
new Guid(0xC1F400A0, 0x3F08, 0x11D3, 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37);
|
||||
|
||||
/// <summary>
|
||||
/// Capture graph builder.
|
||||
@@ -43,7 +43,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to CLSID_CaptureGraphBuilder2.</remarks>
|
||||
///
|
||||
public static readonly Guid CaptureGraphBuilder2 =
|
||||
new Guid( 0xBF87B6E1, 0x8C27, 0x11D0, 0xB3, 0xF0, 0x00, 0xAA, 0x00, 0x37, 0x61, 0xC5 );
|
||||
new Guid(0xBF87B6E1, 0x8C27, 0x11D0, 0xB3, 0xF0, 0x00, 0xAA, 0x00, 0x37, 0x61, 0xC5);
|
||||
|
||||
/// <summary>
|
||||
/// Async reader.
|
||||
@@ -52,7 +52,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to CLSID_AsyncReader.</remarks>
|
||||
///
|
||||
public static readonly Guid AsyncReader =
|
||||
new Guid( 0xE436EBB5, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EBB5, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
|
||||
public static readonly Guid NullRenderer =
|
||||
@@ -64,7 +64,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// DirectShow format types.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
static internal class FormatType
|
||||
{
|
||||
/// <summary>
|
||||
@@ -74,7 +74,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to FORMAT_VideoInfo.</remarks>
|
||||
///
|
||||
public static readonly Guid VideoInfo =
|
||||
new Guid( 0x05589F80, 0xC356, 0x11CE, 0xBF, 0x01, 0x00, 0xAA, 0x00, 0x55, 0x59, 0x5A );
|
||||
new Guid(0x05589F80, 0xC356, 0x11CE, 0xBF, 0x01, 0x00, 0xAA, 0x00, 0x55, 0x59, 0x5A);
|
||||
|
||||
/// <summary>
|
||||
/// VideoInfo2.
|
||||
@@ -83,14 +83,14 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to FORMAT_VideoInfo2.</remarks>
|
||||
///
|
||||
public static readonly Guid VideoInfo2 =
|
||||
new Guid( 0xf72A76A0, 0xEB0A, 0x11D0, 0xAC, 0xE4, 0x00, 0x00, 0xC0, 0xCC, 0x16, 0xBA );
|
||||
new Guid(0xf72A76A0, 0xEB0A, 0x11D0, 0xAC, 0xE4, 0x00, 0x00, 0xC0, 0xCC, 0x16, 0xBA);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DirectShow media types.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
static internal class MediaType
|
||||
{
|
||||
/// <summary>
|
||||
@@ -100,7 +100,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIATYPE_Video.</remarks>
|
||||
///
|
||||
public static readonly Guid Video =
|
||||
new Guid( 0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// Interleaved. Used by Digital Video (DV).
|
||||
@@ -109,7 +109,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIATYPE_Interleaved.</remarks>
|
||||
///
|
||||
public static readonly Guid Interleaved =
|
||||
new Guid( 0x73766169, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x73766169, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// Audio.
|
||||
@@ -118,7 +118,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIATYPE_Audio.</remarks>
|
||||
///
|
||||
public static readonly Guid Audio =
|
||||
new Guid( 0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// Text.
|
||||
@@ -127,7 +127,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIATYPE_Text.</remarks>
|
||||
///
|
||||
public static readonly Guid Text =
|
||||
new Guid( 0x73747874, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x73747874, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// Byte stream with no time stamps.
|
||||
@@ -136,14 +136,14 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIATYPE_Stream.</remarks>
|
||||
///
|
||||
public static readonly Guid Stream =
|
||||
new Guid( 0xE436EB83, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB83, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DirectShow media subtypes.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
static internal class MediaSubType
|
||||
{
|
||||
/// <summary>
|
||||
@@ -153,7 +153,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_YUYV.</remarks>
|
||||
///
|
||||
public static readonly Guid YUYV =
|
||||
new Guid( 0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// IYUV.
|
||||
@@ -162,7 +162,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_IYUV.</remarks>
|
||||
///
|
||||
public static readonly Guid IYUV =
|
||||
new Guid( 0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// A DV encoding format. (FOURCC 'DVSD')
|
||||
@@ -171,7 +171,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_DVSD.</remarks>
|
||||
///
|
||||
public static readonly Guid DVSD =
|
||||
new Guid( 0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 );
|
||||
new Guid(0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
|
||||
|
||||
/// <summary>
|
||||
/// RGB, 1 bit per pixel (bpp), palettized.
|
||||
@@ -180,7 +180,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB1.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB1 =
|
||||
new Guid( 0xE436EB78, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB78, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB, 4 bpp, palettized.
|
||||
@@ -189,7 +189,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB4.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB4 =
|
||||
new Guid( 0xE436EB79, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB79, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB, 8 bpp.
|
||||
@@ -198,7 +198,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB8.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB8 =
|
||||
new Guid( 0xE436EB7A, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB7A, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB 565, 16 bpp.
|
||||
@@ -207,7 +207,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB565.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB565 =
|
||||
new Guid( 0xE436EB7B, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB7B, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB 555, 16 bpp.
|
||||
@@ -216,7 +216,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB555.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB555 =
|
||||
new Guid( 0xE436EB7C, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB7C, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB, 24 bpp.
|
||||
@@ -225,7 +225,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB24.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB24 =
|
||||
new Guid( 0xE436Eb7D, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436Eb7D, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// RGB, 32 bpp, no alpha channel.
|
||||
@@ -234,7 +234,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_RGB32.</remarks>
|
||||
///
|
||||
public static readonly Guid RGB32 =
|
||||
new Guid( 0xE436EB7E, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB7E, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// Data from AVI file.
|
||||
@@ -243,7 +243,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_Avi.</remarks>
|
||||
///
|
||||
public static readonly Guid Avi =
|
||||
new Guid( 0xE436EB88, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 );
|
||||
new Guid(0xE436EB88, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
|
||||
|
||||
/// <summary>
|
||||
/// Advanced Streaming Format (ASF).
|
||||
@@ -252,14 +252,14 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to MEDIASUBTYPE_Asf.</remarks>
|
||||
///
|
||||
public static readonly Guid Asf =
|
||||
new Guid( 0x3DB80F90, 0x9412, 0x11D1, 0xAD, 0xED, 0x00, 0x00, 0xF8, 0x75, 0x4B, 0x99 );
|
||||
new Guid(0x3DB80F90, 0x9412, 0x11D1, 0xAD, 0xED, 0x00, 0x00, 0xF8, 0x75, 0x4B, 0x99);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DirectShow pin categories.
|
||||
/// </summary>
|
||||
///
|
||||
[ComVisible( false )]
|
||||
[ComVisible(false)]
|
||||
static internal class PinCategory
|
||||
{
|
||||
/// <summary>
|
||||
@@ -269,7 +269,7 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
/// <remarks>Equals to PIN_CATEGORY_CAPTURE.</remarks>
|
||||
///
|
||||
public static readonly Guid Capture =
|
||||
new Guid( 0xFB6C4281, 0x0353, 0x11D1, 0x90, 0x5F, 0x00, 0x00, 0xC0, 0xCC, 0x16, 0xBA );
|
||||
new Guid(0xFB6C4281, 0x0353, 0x11D1, 0x90, 0x5F, 0x00, 0x00, 0xC0, 0xCC, 0x16, 0xBA);
|
||||
|
||||
/// <summary>
|
||||
/// Preview pin.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
internal class ProxyCmdExecutorWMIC : IProxyCmdExecutor
|
||||
public class ProxyCmdExecutorWMIC : IProxyCmdExecutor
|
||||
{
|
||||
private string _configWMIC;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
class TextCoderHexToAscii : ITextCoder
|
||||
public class TextCoderHexToAscii : ITextCoder
|
||||
{
|
||||
public const string Name = "HexToAscii";
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
class TextCoderHexToUtf8 : ITextCoder
|
||||
public class TextCoderHexToUtf8 : ITextCoder
|
||||
{
|
||||
public const string Name = "HexToUtf8";
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Drawing.Imaging;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using VAR.Toolbox.Code.DirectShow;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
{
|
||||
public class Win32API
|
||||
{
|
||||
[DllImport("PowrProf.dll")]
|
||||
public static extern Boolean SetSuspendState(Boolean Hibernate, Boolean ForceCritical, Boolean DisableWakeEvent);
|
||||
|
||||
public static uint GetLastInputTime()
|
||||
{
|
||||
uint idleTime = 0;
|
||||
User32.LASTINPUTINFO lastInputInfo = new User32.LASTINPUTINFO();
|
||||
lastInputInfo.cbSize = (uint)Marshal.SizeOf(lastInputInfo);
|
||||
lastInputInfo.dwTime = 0;
|
||||
uint envTicks = (uint)Environment.TickCount;
|
||||
if (User32.GetLastInputInfo(ref lastInputInfo))
|
||||
{
|
||||
uint lastInputTick = lastInputInfo.dwTime;
|
||||
idleTime = envTicks - lastInputTick;
|
||||
}
|
||||
return ((idleTime > 0) ? (idleTime / 1000) : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
namespace VAR.Toolbox.Code.Windows
|
||||
{
|
||||
public class GDI32
|
||||
public static class GDI32
|
||||
{
|
||||
public const int SRCCOPY = 0x00CC0020; // BitBlt dwRop parameter
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace VAR.Toolbox.Code
|
||||
namespace VAR.Toolbox.Code.Windows
|
||||
{
|
||||
public class User32
|
||||
public static class User32
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct INPUT
|
||||
@@ -1,14 +1,10 @@
|
||||
namespace VAR.Toolbox.Code.DirectShow
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
|
||||
/// <summary>
|
||||
/// Some Win32 API used internally.
|
||||
/// </summary>
|
||||
///
|
||||
internal static class Win32
|
||||
namespace VAR.Toolbox.Code.Windows
|
||||
{
|
||||
public static class Win32
|
||||
{
|
||||
/// <summary>
|
||||
/// Supplies a pointer to an implementation of <b>IBindCtx</b> (a bind context object).
|
||||
@@ -21,9 +17,9 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns <b>S_OK</b> on success.</returns>
|
||||
///
|
||||
[DllImport( "ole32.dll" )]
|
||||
[DllImport("ole32.dll")]
|
||||
public static extern
|
||||
int CreateBindCtx( int reserved, out IBindCtx ppbc );
|
||||
int CreateBindCtx(int reserved, out IBindCtx ppbc);
|
||||
|
||||
/// <summary>
|
||||
/// Converts a string into a moniker that identifies the object named by the string.
|
||||
@@ -37,10 +33,10 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns <b>S_OK</b> on success.</returns>
|
||||
///
|
||||
[DllImport( "ole32.dll", CharSet = CharSet.Unicode )]
|
||||
[DllImport("ole32.dll", CharSet = CharSet.Unicode)]
|
||||
public static extern
|
||||
int MkParseDisplayName( IBindCtx pbc, string szUserName,
|
||||
ref int pchEaten, out IMoniker ppmk );
|
||||
int MkParseDisplayName(IBindCtx pbc, string szUserName,
|
||||
ref int pchEaten, out IMoniker ppmk);
|
||||
|
||||
/// <summary>
|
||||
/// Copy a block of memory.
|
||||
@@ -76,12 +72,12 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
///
|
||||
/// <returns>Returns <b>S_OK</b> on success.</returns>
|
||||
///
|
||||
[DllImport( "oleaut32.dll" )]
|
||||
[DllImport("oleaut32.dll")]
|
||||
public static extern int OleCreatePropertyFrame(
|
||||
IntPtr hwndOwner,
|
||||
int x,
|
||||
int y,
|
||||
[MarshalAs( UnmanagedType.LPWStr )] string caption,
|
||||
[MarshalAs(UnmanagedType.LPWStr)] string caption,
|
||||
int cObjects,
|
||||
[MarshalAs( UnmanagedType.Interface, ArraySubType = UnmanagedType.IUnknown )]
|
||||
ref object ppUnk,
|
||||
@@ -89,6 +85,24 @@ namespace VAR.Toolbox.Code.DirectShow
|
||||
IntPtr lpPageClsID,
|
||||
int lcid,
|
||||
int dwReserved,
|
||||
IntPtr lpvReserved );
|
||||
IntPtr lpvReserved);
|
||||
|
||||
[DllImport("PowrProf.dll")]
|
||||
public static extern Boolean SetSuspendState(Boolean Hibernate, Boolean ForceCritical, Boolean DisableWakeEvent);
|
||||
|
||||
public static uint GetLastInputTime()
|
||||
{
|
||||
uint idleTime = 0;
|
||||
User32.LASTINPUTINFO lastInputInfo = new User32.LASTINPUTINFO();
|
||||
lastInputInfo.cbSize = (uint)Marshal.SizeOf(lastInputInfo);
|
||||
lastInputInfo.dwTime = 0;
|
||||
uint envTicks = (uint)Environment.TickCount;
|
||||
if (User32.GetLastInputInfo(ref lastInputInfo))
|
||||
{
|
||||
uint lastInputTick = lastInputInfo.dwTime;
|
||||
idleTime = envTicks - lastInputTick;
|
||||
}
|
||||
return ((idleTime > 0) ? (idleTime / 1000) : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ namespace VAR.Toolbox.Controls
|
||||
{
|
||||
#region Declarations
|
||||
|
||||
Image _imageShow = null;
|
||||
private Image _imageShow = null;
|
||||
|
||||
// Image projection
|
||||
private double offsetX = 0;
|
||||
|
||||
@@ -5,13 +5,13 @@ using VAR.Toolbox.UI;
|
||||
|
||||
namespace VAR.Toolbox
|
||||
{
|
||||
static class Program
|
||||
public static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
private static void Main()
|
||||
{
|
||||
Application.ThreadException += Application_ThreadException;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using VAR.Toolbox.Code;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
internal class FrmCover : Form
|
||||
public class FrmCover : Form
|
||||
{
|
||||
#region Declarations
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace VAR.Toolbox.UI
|
||||
catch (Exception ex)
|
||||
{
|
||||
StringBuilder sbException = new StringBuilder();
|
||||
while(ex != null)
|
||||
while (ex != null)
|
||||
{
|
||||
sbException.AppendFormat("{0}\r\n{1}\r\n\r\n", ex.Message, ex.StackTrace);
|
||||
ex = ex.InnerException;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using VAR.Toolbox.Code;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
|
||||
@@ -20,14 +20,15 @@ namespace VAR.Toolbox
|
||||
cboWebcams_LoadData();
|
||||
}
|
||||
|
||||
void webcam_NewFrame(object sender, Bitmap frame)
|
||||
private void webcam_NewFrame(object sender, Bitmap frame)
|
||||
{
|
||||
picWebcam.ImageShow = frame;
|
||||
}
|
||||
|
||||
private void FrmWebcam_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
if(webcam!=null){
|
||||
if (webcam != null)
|
||||
{
|
||||
webcam.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using VAR.Toolbox.Code;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
@@ -15,7 +15,7 @@ namespace VAR.Toolbox.UI
|
||||
{
|
||||
if (DesignMode) { return; }
|
||||
bool userInactive = false;
|
||||
uint inactiveTime = Win32API.GetLastInputTime();
|
||||
uint inactiveTime = Win32.GetLastInputTime();
|
||||
|
||||
lblInactive.Text = String.Format("Inactive by {0} seconds", inactiveTime);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace VAR.Toolbox.UI
|
||||
private void CoverScreen()
|
||||
{
|
||||
if (DesignMode) { return; }
|
||||
if(_frmCover != null)
|
||||
if (_frmCover != null)
|
||||
{
|
||||
_frmCover.Show();
|
||||
return;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using VAR.Toolbox.Code;
|
||||
using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
@@ -139,7 +139,7 @@ namespace VAR.Toolbox.UI
|
||||
|
||||
private void SuspendSystem()
|
||||
{
|
||||
Win32API.SetSuspendState(false, true, false);
|
||||
Win32.SetSuspendState(false, true, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,13 +42,9 @@
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
@@ -86,8 +82,7 @@
|
||||
<Compile Include="Code\DirectShow\Structures.cs" />
|
||||
<Compile Include="Code\DirectShow\Tools.cs" />
|
||||
<Compile Include="Code\DirectShow\Uuids.cs" />
|
||||
<Compile Include="Code\DirectShow\Win32.cs" />
|
||||
<Compile Include="Code\GDI32.cs" />
|
||||
<Compile Include="Code\Windows\GDI32.cs" />
|
||||
<Compile Include="Code\ITextCoder.cs" />
|
||||
<Compile Include="Code\IOutputHandler.cs" />
|
||||
<Compile Include="Code\IProxyCmdExecutor.cs" />
|
||||
@@ -100,9 +95,9 @@
|
||||
<Compile Include="Code\TextCoderFactory.cs" />
|
||||
<Compile Include="Code\TextCoderHexToAscii.cs" />
|
||||
<Compile Include="Code\TextCoderHexToUtf8.cs" />
|
||||
<Compile Include="Code\User32.cs" />
|
||||
<Compile Include="Code\Windows\User32.cs" />
|
||||
<Compile Include="Code\Webcam.cs" />
|
||||
<Compile Include="Code\Win32API.cs" />
|
||||
<Compile Include="Code\Windows\Win32.cs" />
|
||||
<Compile Include="Controls\CtrImageViewer.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
||||
Reference in New Issue
Block a user