请问Streams.h是什么头文件? 请问Streams.h是什么头文件?主要用在什么领域,哪里可以下载呀? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 找到了,最新 ms sdk有!//------------------------------------------------------------------------------// File: Streams.h//// Desc: DirectShow base classes - defines overall streams architecture.//// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.//------------------------------------------------------------------------------#ifndef __STREAMS__#define __STREAMS__// disable some level-4 warnings, use #pragma warning(enable:###) to re-enable#pragma warning(disable:4100) // warning C4100: unreferenced formal parameter#pragma warning(disable:4127) // warning C4127: conditional expression is constant#pragma warning(disable:4189) // warning C4189: local variable is initialized but not referenced#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union#pragma warning(disable:4511) // warning C4511: copy constructor could not be generated#pragma warning(disable:4512) // warning C4512: assignment operator could not be generated#pragma warning(disable:4514) // warning C4514: unreferenced inline function has been removed#pragma warning(disable:4710) // warning C4710: 'function' not inlined#ifdef _MSC_VER#if _MSC_VER>=1100#define AM_NOVTABLE __declspec(novtable)#else#define AM_NOVTABLE#endif#endif // MSC_VER#include <windows.h>#include <windowsx.h>#include <olectl.h>#include <ddraw.h>#include <mmsystem.h>#ifndef NUMELMS #define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0]))#endif///////////////////////////////////////////////////////////////////////////// The following definitions come from the Platform SDK and are required if// the applicaiton is being compiled with the headers from Visual C++ 6.0.///////////////////////////////////////////////////////////////////////////#ifndef InterlockedExchangePointer #define InterlockedExchangePointer(Target, Value) \ (PVOID)InterlockedExchange((PLONG)(Target), (LONG)(Value))#endif#ifndef _WAVEFORMATEXTENSIBLE_#define _WAVEFORMATEXTENSIBLE_typedef struct { WAVEFORMATEX Format; union { WORD wValidBitsPerSample; /* bits of precision */ WORD wSamplesPerBlock; /* valid if wBitsPerSample==0 */ WORD wReserved; /* If neither applies, set to zero. */ } Samples; DWORD dwChannelMask; /* which channels are */ /* present in stream */ GUID SubFormat;} WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;#endif // !_WAVEFORMATEXTENSIBLE_#if !defined(WAVE_FORMAT_EXTENSIBLE)#define WAVE_FORMAT_EXTENSIBLE 0xFFFE#endif // !defined(WAVE_FORMAT_EXTENSIBLE)#ifndef GetWindowLongPtr #define GetWindowLongPtrA GetWindowLongA #define GetWindowLongPtrW GetWindowLongW #ifdef UNICODE #define GetWindowLongPtr GetWindowLongPtrW #else #define GetWindowLongPtr GetWindowLongPtrA #endif // !UNICODE#endif // !GetWindowLongPtr#ifndef SetWindowLongPtr #define SetWindowLongPtrA SetWindowLongA #define SetWindowLongPtrW SetWindowLongW #ifdef UNICODE #define SetWindowLongPtr SetWindowLongPtrW #else #define SetWindowLongPtr SetWindowLongPtrA #endif // !UNICODE#endif // !SetWindowLongPtr#ifndef GWLP_WNDPROC #define GWLP_WNDPROC (-4)#endif#ifndef GWLP_HINSTANCE #define GWLP_HINSTANCE (-6)#endif#ifndef GWLP_HWNDPARENT #define GWLP_HWNDPARENT (-8)#endif#ifndef GWLP_USERDATA #define GWLP_USERDATA (-21)#endif#ifndef GWLP_ID #define GWLP_ID (-12)#endif#ifndef DWLP_MSGRESULT #define DWLP_MSGRESULT 0#endif#ifndef DWLP_DLGPROC #define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)#endif#ifndef DWLP_USER #define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)#endif///////////////////////////////////////////////////////////////////////////// End Platform SDK definitions///////////////////////////////////////////////////////////////////////////#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union#include <strmif.h> // Generated IDL header file for streams interfaces#include <reftime.h> // Helper class for REFERENCE_TIME management#include <wxdebug.h> // Debug support for logging and ASSERTs#include <amvideo.h> // ActiveMovie video interfaces and definitions//include amaudio.h explicitly if you need it. it requires the DX SDK.//#include <amaudio.h> // ActiveMovie audio interfaces and definitions#include <wxutil.h> // General helper classes for threads etc#include <combase.h> // Base COM classes to support IUnknown#include <dllsetup.h> // Filter registration support functions#include <measure.h> // Performance measurement#include <comlite.h> // Light weight com function prototypes#include <cache.h> // Simple cache container class#include <wxlist.h> // Non MFC generic list class#include <msgthrd.h> // CMsgThread#include <mtype.h> // Helper class for managing media types#include <fourcc.h> // conversions between FOURCCs and GUIDs#include <control.h> // generated from control.odl#include <ctlutil.h> // control interface utility classes#include <evcode.h> // event code definitions#include <amfilter.h> // Main streams architecture class hierachy#include <transfrm.h> // Generic transform filter#include <transip.h> // Generic transform-in-place filter#include <uuids.h> // declaration of type GUIDs and well-known clsids#include <source.h> // Generic source filter#include <outputq.h> // Output pin queueing#include <errors.h> // HRESULT status and error definitions#include <renbase.h> // Base class for writing ActiveX renderers#include <winutil.h> // Helps with filters that manage windows#include <winctrl.h> // Implements the IVideoWindow interface#include <videoctl.h> // Specifically video related classes#include <refclock.h> // Base clock class#include <sysclock.h> // System clock#include <pstream.h> // IPersistStream helper class#include <vtrans.h> // Video Transform Filter base class#include <amextra.h>#include <cprop.h> // Base property page class#include <strmctl.h> // IAMStreamControl support#include <edevdefs.h> // External device control interface defines#include <audevcod.h> // audio filter device error event codes#else #ifdef DEBUG #pragma message("STREAMS.H included TWICE") #endif#endif // __STREAMS__ 如果哪位朋友有这个头文件,请发到我的e_mail里: [email protected] 怎么使控件中字体的大小随控件的变化而变化 深入浅出mfc越来越看不懂了 列表控件 每一行的一个字段最多能够插入多长的字节数?? waveInOpen()怎样录制麦克风声音 请教redefinition 的问题 关于CTreeView和数据库 一个简单的C函数问题 如何在打开TXT文件后,在TXT文件的末尾再追加一段字符 如何输出二进制的值? 简单问题,先到先得:请大家总结一下,在哪些情况下一个变量用完后要让它等于NULL以释放资源。 菜鸟请教幼稚问题? 如何解析字符串?
//------------------------------------------------------------------------------
// File: Streams.h
//
// Desc: DirectShow base classes - defines overall streams architecture.
//
// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#ifndef __STREAMS__
#define __STREAMS__// disable some level-4 warnings, use #pragma warning(enable:###) to re-enable
#pragma warning(disable:4100) // warning C4100: unreferenced formal parameter
#pragma warning(disable:4127) // warning C4127: conditional expression is constant
#pragma warning(disable:4189) // warning C4189: local variable is initialized but not referenced
#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
#pragma warning(disable:4511) // warning C4511: copy constructor could not be generated
#pragma warning(disable:4512) // warning C4512: assignment operator could not be generated
#pragma warning(disable:4514) // warning C4514: unreferenced inline function has been removed
#pragma warning(disable:4710) // warning C4710: 'function' not inlined#ifdef _MSC_VER
#if _MSC_VER>=1100
#define AM_NOVTABLE __declspec(novtable)
#else
#define AM_NOVTABLE
#endif
#endif // MSC_VER
#include <windows.h>
#include <windowsx.h>
#include <olectl.h>
#include <ddraw.h>
#include <mmsystem.h>#ifndef NUMELMS
#define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0]))
#endif///////////////////////////////////////////////////////////////////////////
// The following definitions come from the Platform SDK and are required if
// the applicaiton is being compiled with the headers from Visual C++ 6.0.
///////////////////////////////////////////////////////////////////////////
#ifndef InterlockedExchangePointer
#define InterlockedExchangePointer(Target, Value) \
(PVOID)InterlockedExchange((PLONG)(Target), (LONG)(Value))
#endif#ifndef _WAVEFORMATEXTENSIBLE_
#define _WAVEFORMATEXTENSIBLE_
typedef struct {
WAVEFORMATEX Format;
union {
WORD wValidBitsPerSample; /* bits of precision */
WORD wSamplesPerBlock; /* valid if wBitsPerSample==0 */
WORD wReserved; /* If neither applies, set to zero. */
} Samples;
DWORD dwChannelMask; /* which channels are */
/* present in stream */
GUID SubFormat;
} WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;
#endif // !_WAVEFORMATEXTENSIBLE_#if !defined(WAVE_FORMAT_EXTENSIBLE)
#define WAVE_FORMAT_EXTENSIBLE 0xFFFE
#endif // !defined(WAVE_FORMAT_EXTENSIBLE)#ifndef GetWindowLongPtr
#define GetWindowLongPtrA GetWindowLongA
#define GetWindowLongPtrW GetWindowLongW
#ifdef UNICODE
#define GetWindowLongPtr GetWindowLongPtrW
#else
#define GetWindowLongPtr GetWindowLongPtrA
#endif // !UNICODE
#endif // !GetWindowLongPtr#ifndef SetWindowLongPtr
#define SetWindowLongPtrA SetWindowLongA
#define SetWindowLongPtrW SetWindowLongW
#ifdef UNICODE
#define SetWindowLongPtr SetWindowLongPtrW
#else
#define SetWindowLongPtr SetWindowLongPtrA
#endif // !UNICODE
#endif // !SetWindowLongPtr#ifndef GWLP_WNDPROC
#define GWLP_WNDPROC (-4)
#endif
#ifndef GWLP_HINSTANCE
#define GWLP_HINSTANCE (-6)
#endif
#ifndef GWLP_HWNDPARENT
#define GWLP_HWNDPARENT (-8)
#endif
#ifndef GWLP_USERDATA
#define GWLP_USERDATA (-21)
#endif
#ifndef GWLP_ID
#define GWLP_ID (-12)
#endif
#ifndef DWLP_MSGRESULT
#define DWLP_MSGRESULT 0
#endif
#ifndef DWLP_DLGPROC
#define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
#endif
#ifndef DWLP_USER
#define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
#endif
///////////////////////////////////////////////////////////////////////////
// End Platform SDK definitions
///////////////////////////////////////////////////////////////////////////
#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
#include <strmif.h> // Generated IDL header file for streams interfaces#include <reftime.h> // Helper class for REFERENCE_TIME management
#include <wxdebug.h> // Debug support for logging and ASSERTs
#include <amvideo.h> // ActiveMovie video interfaces and definitions//include amaudio.h explicitly if you need it. it requires the DX SDK.
//#include <amaudio.h> // ActiveMovie audio interfaces and definitions#include <wxutil.h> // General helper classes for threads etc
#include <combase.h> // Base COM classes to support IUnknown
#include <dllsetup.h> // Filter registration support functions
#include <measure.h> // Performance measurement
#include <comlite.h> // Light weight com function prototypes#include <cache.h> // Simple cache container class
#include <wxlist.h> // Non MFC generic list class
#include <msgthrd.h> // CMsgThread
#include <mtype.h> // Helper class for managing media types
#include <fourcc.h> // conversions between FOURCCs and GUIDs
#include <control.h> // generated from control.odl
#include <ctlutil.h> // control interface utility classes
#include <evcode.h> // event code definitions
#include <amfilter.h> // Main streams architecture class hierachy
#include <transfrm.h> // Generic transform filter
#include <transip.h> // Generic transform-in-place filter
#include <uuids.h> // declaration of type GUIDs and well-known clsids
#include <source.h> // Generic source filter
#include <outputq.h> // Output pin queueing
#include <errors.h> // HRESULT status and error definitions
#include <renbase.h> // Base class for writing ActiveX renderers
#include <winutil.h> // Helps with filters that manage windows
#include <winctrl.h> // Implements the IVideoWindow interface
#include <videoctl.h> // Specifically video related classes
#include <refclock.h> // Base clock class
#include <sysclock.h> // System clock
#include <pstream.h> // IPersistStream helper class
#include <vtrans.h> // Video Transform Filter base class
#include <amextra.h>
#include <cprop.h> // Base property page class
#include <strmctl.h> // IAMStreamControl support
#include <edevdefs.h> // External device control interface defines
#include <audevcod.h> // audio filter device error event codes#else
#ifdef DEBUG
#pragma message("STREAMS.H included TWICE")
#endif
#endif // __STREAMS__
[email protected]