Пример #1
0
 internal static extern AviError AVIStreamSetFormat(IntPtr aviStream, Int32 lPos,
     ref BitmapInfoHeader lpFormat, Int32 cbFormat);
Пример #2
0
 /// <summary>
 /// The AVIStreamSetFormat function sets the format of a stream at the specified position.
 /// </summary>
 /// <param name="aviStream">Handle to an open stream.</param>
 /// <param name="lPos">Position in the stream to receive the format.</param>
 /// <param name="lpFormat">Pointer to a structure containing the new format.</param>
 /// <param name="cbFormat">Size, in bytes, of the block of memory referenced by lpFormat.
 /// </param>
 /// <returns>Returns zero if successful or an error otherwise. </returns>
 public static AviError AVIStreamSetFormat(IntPtr aviStream, Int32 lPos, ref BitmapInfoHeader lpFormat,
     Int32 cbFormat)
 {
     return Native.AVIStreamSetFormat(aviStream, lPos, ref lpFormat, cbFormat);
 }
Пример #3
0
 internal static extern int AVIStreamGetFrameOpen(IntPtr pAVIStream, ref BitmapInfoHeader bih);
Пример #4
0
 /// <summary>
 /// The AVIStreamGetFrameOpen function prepares to decompress video frames from the specified video stream.
 /// </summary>
 /// <param name="pAVIStream">Pointer to the video stream used as the video source (pointer to an IAVIStream interface).</param>
 /// <param name="bih">Pointer to a structure that defines the desired video format. Specify null to use a 
 /// default format. You can also specify AVIGETFRAMEF_BESTDISPLAYFMT to decode the frames to the best format for your display.</param>
 /// <returns>Returns a GetFrame object that can be used with the AVIStreamGetFrame function. If the system cannot find
 /// a decompressor that can decompress the stream to the given format, or to any RGB format, the function returns null.</returns>
 public static int AVIStreamGetFrameOpen(IntPtr pAVIStream, ref BitmapInfoHeader bih)
 {
     return Native.AVIStreamGetFrameOpen(pAVIStream, ref bih);
 }