Click here to Skip to main content
15,884,473 members
Articles / Multimedia / GDI+

Visual Surveillance Laboratory

Rate me:
Please Sign up or sign in to vote.
4.85/5 (45 votes)
6 Aug 2008Apache8 min read 147.1K   11K   241  
A description of surveillance systems
namespace dshow.Core
{
	using System;
	using System.Runtime.InteropServices;

	// IMediaSeeking interface
	//
	// Contains methods for seeking to a position within a stream,
	// and for setting the playback rate
	//
	[ComImport,
	Guid("36B73880-C2C8-11CF-8B46-00805F6CEF60"),
	InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	public interface IMediaSeeking
	{
		// Retrieves all the seeking capabilities of the stream
		[PreserveSig]
		int GetCapabilities(
			out SeekingCapabilities pCapabilities);

		// Queries whether a stream has specified seeking capabilities
		[PreserveSig]
		int CheckCapabilities(
			[In, Out] ref SeekingCapabilities pCapabilities);

		// Determines whether a specified time format is supported
		[PreserveSig]
		int IsFormatSupported(
			[In] ref Guid pFormat);

		// Retrieves the preferred time format for the stream
		[PreserveSig]
		int QueryPreferredFormat(
			[Out] out Guid pFormat);

		// Retrieves the current time format
		[PreserveSig]
		int GetTimeFormat(
			[Out] out Guid pFormat);

		// Determines whether a specified time format
		// is the format currently in use
		[PreserveSig]
		int IsUsingTimeFormat(
			[In] ref Guid pFormat);

		// Sets the time format
		[PreserveSig]
		int SetTimeFormat(
			[In] ref Guid pFormat);

		// Retrieves the duration of the stream
		[PreserveSig]
		int GetDuration(
			out long pDuration);

		// Retrieves the time at which the playback will stop,
		// relative to the duration of the stream
		[PreserveSig]
		int GetStopPosition(
			out long pStop);

		// Retrieves the current position, relative to the
		// total duration of the stream
		[PreserveSig]
		int GetCurrentPosition(
			out long pCurrent);

		// Converts from one time format to another
		[PreserveSig]
		int ConvertTimeFormat(
			out long pTarget,
			[In] ref Guid pTargetFormat,
			long Source, 
			[In] ref Guid pSourceFormat);

		// Sets the current position and the stop position
		[PreserveSig]
		int SetPositions(
			[In, Out] ref long pCurrent,
			SeekingFlags dwCurrentFlags,
			[In, Out] ref long pStop,
			SeekingFlags dwStopFlags);

		// Retrieves the current position and the stop position,
		// relative to the total duration of the stream
		[PreserveSig]
		int GetPositions(
			out long pCurrent,
			out long pStop);

		// Retrieves the range of times in which seeking is efficient
		[PreserveSig]
		int GetAvailable(
			out long pEarliest,
			out long pLatest);

		// Sets the playback rate
		[PreserveSig]
		int SetRate(
			double dRate);

		// Retrieves the playback rate
		[PreserveSig]
		int GetRate(
			out double pdRate);

		// Retrieves the amount of data that will be queued before
		// the start position
		[PreserveSig]
		int GetPreroll(
			out long pllPreroll);
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer
Israel Israel
A computer science master student at Bar Ilan University under the supervision of Dr. Gal Kaminka.
Dealing mainly with trajectory mining.

Comments and Discussions