Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads
 
Add your own
alternative version

Intelligent Screen Saver

, 15 Aug 2007 CPOL
A utility to control screen saver on your computer using computer vision (human face detection), rather than idle timer.
intelligentsaver.zip
intelligentsaver2.zip
IntelligentSaver.suo
DxCam
dshow
Core
DxCam.csproj.user
DxCam.suo
Gui
VideoSource
FaceDetection
App.ico
FaceDetection.GUI.csproj.user
FaceDetection.suo
FaceDetectionWrapper
app.ico
release.zip
Release
cv099.dll
cxcore099.dll
DxCam.dll
FaceDetection.exe
FaceDetection.Wrapper.dll
libguide40.dll
Tiger.Video.VFW.dll
requiredbinaries.zip
References
Tiger.Video.VFW.dll
Cascades
OpenCV
cv099.dll
cxcore099.dll
libguide40.dll
vs2005.zip
VS2005
DxCam
dshow
Core
DxCam.csproj.user
DxCam.suo
Gui
VideoSource
FaceDetection
App.ico
FaceDetection.GUI.csproj.user
FaceDetection.suo
FaceDetectionWrapper
app.ico
Bayesian_ML_DLL.vcproj.Z.Zeeshan.user
IntelligentSaver.suo
/*
 * DirectShow UUIDs (Universally Unique Identifiers)
 */

namespace dshow.Core
{
	using System;
	using System.Runtime.InteropServices;

	/// <summary>
	/// DirectShow Classes IDs
	/// </summary>
	[ComVisible(false)]
	internal class Clsid
	{
		// CLSID_SystemDeviceEnum
		internal static readonly Guid SystemDeviceEnum =
			new Guid(0x62BE5D10, 0x60EB, 0x11D0, 0xBD, 0x3B, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);

		// CLSID_FilterGraph
		internal static readonly Guid FilterGraph =
			new Guid(0xE436EBB3, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// CLSID_SampleGrabber
		internal static readonly Guid SampleGrabber =
			new Guid(0xC1F400A0, 0x3F08, 0x11D3, 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37);

		// CLSID_AsyncReader
		internal static readonly Guid AsyncReader =
			new Guid(0xE436EBB5, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// 
		internal static readonly Guid WindowsMediaSource =
			new Guid(0x6B6D0800, 0x9ADA, 0x11D0, 0xA5, 0x20, 0x00, 0xA0, 0xD1, 0x01, 0x29, 0xC0);
	}

	/// <summary>
	/// DirectShow Filter categories
	/// </summary>
	[ComVisible(false)]
	internal class FilterCategory
	{
		// CLSID_AudioInputDeviceCategory
		internal static readonly Guid AudioInputDevice =
			new Guid(0x33D9A762, 0x90C8, 0x11D0, 0xBD, 0x43, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);

		// CLSID_VideoInputDeviceCategory
		internal static readonly Guid VideoInputDevice =
			new Guid(0x860BB310, 0x5D01, 0x11D0, 0xBD, 0x3B, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);

		// CLSID_VideoCompressorCategory
		internal static readonly Guid VideoCompressorCategory =
			new Guid(0x33D9A760, 0x90C8, 0x11D0, 0xBD, 0x43, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);

		// CLSID_AudioCompressorCategory
		internal static readonly Guid AudioCompressorCategory =
			new Guid(0x33D9A761, 0x90C8, 0x11D0, 0xBD, 0x43, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);

		// CLSID_LegacyAmFilterCategory
		internal static readonly Guid LegacyAmFilterCategory =
			new Guid(0x083863F1, 0x70DE, 0x11D0, 0xBD, 0x40, 0x00, 0xA0, 0xC9, 0x11, 0xCE, 0x86);
	}


	/// <summary>
	/// DirectShow media types
	/// </summary>
	[ComVisible(false)]
	internal class MediaType
	{
		// MEDIATYPE_Video
		internal static readonly Guid Video =
			new Guid(0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIATYPE_Interleaved
		internal static readonly Guid Interleaved =
			new Guid(0x73766169, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIATYPE_Audio
		internal static readonly Guid Audio =
			new Guid(0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIATYPE_Text
		internal static readonly Guid Text =
			new Guid(0x73747874, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIATYPE_Stream
		internal static readonly Guid Stream =
			new Guid(0xE436EB83, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);
	}

	/// <summary>
	/// DirectShow media subtypes
	/// </summary>
	[ComVisible(false)]
	internal class MediaSubType
	{
		// MEDIASUBTYPE_YUYV
		internal static readonly Guid YUYV =
			new Guid(0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIASUBTYPE_IYUV
		internal static readonly Guid IYUV =
			new Guid(0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIASUBTYPE_DVSD
		internal static readonly Guid DVSD =
			new Guid(0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);

		// MEDIASUBTYPE_RGB1
		internal static readonly Guid RGB1 =
			new Guid(0xE436EB78, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB4
		internal static readonly Guid RGB4 =
			new Guid(0xE436EB79, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB8
		internal static readonly Guid RGB8 =
			new Guid(0xE436EB7A, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB565
		internal static readonly Guid RGB565 =
			new Guid(0xE436EB7B, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB555
		internal static readonly Guid RGB555 =
			new Guid(0xE436EB7C, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB24
		internal static readonly Guid RGB24 =
			new Guid(0xE436Eb7D, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_RGB32
		internal static readonly Guid RGB32 =
			new Guid(0xE436EB7E, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_Avi
		internal static readonly Guid Avi =
			new Guid(0xE436EB88, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70);

		// MEDIASUBTYPE_Asf
		internal static readonly Guid Asf =
			new Guid(0x3DB80F90, 0x9412, 0x11D1, 0xAD, 0xED, 0x00, 0x00, 0xF8, 0x75, 0x4B, 0x99);
	}
}

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 Code Project Open License (CPOL)

Share

About the Author

Zeeshan Ejaz Bhatti
Web Developer
Pakistan Pakistan
BCSE - Software Engineering (2000 - 2004)
Foundation University Institute of Management and Computer Sciences.
Pakistan.
 
MS - Computer Sciences (2004 - 2005)
Lahore Univeristy of Management Sciences
Pakistan.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 15 Aug 2007
Article Copyright 2007 by Zeeshan Ejaz Bhatti
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid