Author: greatlrd
Date: Sat Apr 14 22:54:57 2007
New Revision: 26344
URL:
http://svn.reactos.org/svn/reactos?rev=26344&view=rev
Log:
Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean
up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I
will upgrade this folder file to more resent dxsdk headers.
Added:
trunk/reactos/include/dxsdk/Mpeg2Bits.h (with props)
trunk/reactos/include/dxsdk/audevcod.h (with props)
trunk/reactos/include/dxsdk/d3dx9.h (with props)
trunk/reactos/include/dxsdk/dmort.h (with props)
trunk/reactos/include/dxsdk/dmusbuff.h (with props)
trunk/reactos/include/dxsdk/dxerr8.h (with props)
trunk/reactos/include/dxsdk/vpnotify.h (with props)
Added: trunk/reactos/include/dxsdk/Mpeg2Bits.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/Mpeg2Bits.h?…
==============================================================================
--- trunk/reactos/include/dxsdk/Mpeg2Bits.h (added)
+++ trunk/reactos/include/dxsdk/Mpeg2Bits.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,45 @@
+
+#pragma once
+#pragma pack(push)
+
+#ifdef __midl
+ typedef struct
+ {
+ WORD Bits;
+ } PID_BITS_MIDL;
+
+ typedef struct
+ {
+ WORD Bits;
+ } MPEG_HEADER_BITS_MIDL;
+
+ typedef struct
+ {
+ BYTE Bits;
+ } MPEG_HEADER_VERSION_BITS_MIDL;
+
+#else
+
+ typedef struct
+ {
+ WORD Reserved : 3;
+ WORD ProgramId : 13;
+ } PID_BITS, *PPID_BITS;
+ typedef struct
+ {
+ WORD SectionLength : 12;
+ WORD Reserved : 2;
+ WORD PrivateIndicator : 1;
+ WORD SectionSyntaxIndicator : 1;
+ } MPEG_HEADER_BITS, *PMPEG_HEADER_BITS;
+
+ typedef struct
+ {
+ BYTE CurrentNextIndicator : 1;
+ BYTE VersionNumber : 5;
+ BYTE Reserved : 2;
+ } MPEG_HEADER_VERSION_BITS, *PMPEG_HEADER_VERSION_BITS;
+#endif
+
+#pragma pack(pop)
+
Propchange: trunk/reactos/include/dxsdk/Mpeg2Bits.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/audevcod.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/audevcod.h?r…
==============================================================================
--- trunk/reactos/include/dxsdk/audevcod.h (added)
+++ trunk/reactos/include/dxsdk/audevcod.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,28 @@
+
+#ifndef __AUDEVCOD__
+#define __AUDEVCOD__
+
+#define EC_SND_DEVICE_ERROR_BASE 0x0200
+#define EC_SNDDEV_IN_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x00)
+#define EC_SNDDEV_OUT_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x01)
+
+typedef enum _tagSND_DEVICE_ERROR
+{
+ SNDDEV_ERROR_Open=1,
+ SNDDEV_ERROR_Close=2,
+ SNDDEV_ERROR_GetCaps=3,
+ SNDDEV_ERROR_PrepareHeader=4,
+ SNDDEV_ERROR_UnprepareHeader=5,
+ SNDDEV_ERROR_Reset=6,
+ SNDDEV_ERROR_Restart=7,
+ SNDDEV_ERROR_GetPosition=8,
+ SNDDEV_ERROR_Write=9,
+ SNDDEV_ERROR_Pause=10,
+ SNDDEV_ERROR_Stop=11,
+ SNDDEV_ERROR_Start=12,
+ SNDDEV_ERROR_AddBuffer=13,
+ SNDDEV_ERROR_Query=14,
+} SNDDEV_ERR;
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/audevcod.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/d3dx9.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/d3dx9.h?rev=…
==============================================================================
--- trunk/reactos/include/dxsdk/d3dx9.h (added)
+++ trunk/reactos/include/dxsdk/d3dx9.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,64 @@
+
+#ifdef __D3DX_INTERNAL__
+#error Incorrect D3DX header used
+#endif
+
+#ifndef __D3DX9_H__
+#define __D3DX9_H__
+
+#include <limits.h>
+
+#define D3DFMT_FROM_FILE ((D3DFORMAT) -3)
+#define D3DX_DEFAULT ((UINT) -1)
+#define D3DX_DEFAULT_FLOAT FLT_MAX
+#define D3DX_DEFAULT_NONPOW2 ((UINT) -2)
+#define D3DX_FROM_FILE ((UINT) -3)
+
+#ifndef D3DXINLINE
+ #ifdef _MSC_VER
+ #if (_MSC_VER >= 1200)
+ #define D3DXINLINE __forceinline
+ #else
+ #define D3DXINLINE __inline
+ #endif
+ #elif __GNUC__
+ #define D3DXINLINE __inline
+ #else
+ #ifdef __cplusplus
+ #define D3DXINLINE inline
+ #else
+ #define D3DXINLINE
+ #endif
+ #endif
+#endif
+
+#include "d3d9.h"
+#include "d3dx9math.h"
+#include "d3dx9core.h"
+#include "d3dx9xof.h"
+#include "d3dx9mesh.h"
+#include "d3dx9shader.h"
+#include "d3dx9effect.h"
+#include "d3dx9tex.h"
+#include "d3dx9shape.h"
+#include "d3dx9anim.h"
+
+#define _FACDD 0x876
+#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
+
+enum _D3DXERR
+{
+ D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
+ D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
+ D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
+ D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
+ D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
+ D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
+ D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
+ D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907),
+ D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908),
+};
+
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/d3dx9.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/dmort.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/dmort.h?rev=…
==============================================================================
--- trunk/reactos/include/dxsdk/dmort.h (added)
+++ trunk/reactos/include/dxsdk/dmort.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,13 @@
+
+#ifndef __DMORT_H__
+#define __DMORT_H__
+
+STDAPI MoCopyMediaType(DMO_MEDIA_TYPE *pmtDest, const DMO_MEDIA_TYPE *pmtSrc);
+STDAPI MoCreateMediaType(DMO_MEDIA_TYPE **ppmt, DWORD cbFormat);
+STDAPI MoDeleteMediaType(DMO_MEDIA_TYPE *pmt);
+STDAPI MoDuplicateMediaType(DMO_MEDIA_TYPE **ppmtDest, const DMO_MEDIA_TYPE *pmtSrc);
+STDAPI MoFreeMediaType(DMO_MEDIA_TYPE *pmt);
+STDAPI MoInitMediaType(DMO_MEDIA_TYPE *pmt, DWORD cbFormat);
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/dmort.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/dmusbuff.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/dmusbuff.h?r…
==============================================================================
--- trunk/reactos/include/dxsdk/dmusbuff.h (added)
+++ trunk/reactos/include/dxsdk/dmusbuff.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,19 @@
+#ifndef _DMusBuff_
+#define _DMusBuff_
+
+#define DMUS_EVENT_STRUCTURED 0x00000001
+#define QWORD_ALIGN(x) (((x) + 7) & ~7)
+#define DMUS_EVENT_SIZE(cb) QWORD_ALIGN(sizeof(DMUS_EVENTHEADER) + cb)
+
+#include <pshpack4.h>
+typedef struct _DMUS_EVENTHEADER
+{
+ DWORD cbEvent;
+ DWORD dwChannelGroup;
+ REFERENCE_TIME rtDelta;
+ DWORD dwFlags;
+} DMUS_EVENTHEADER, *LPDMUS_EVENTHEADER;
+#include <poppack.h>
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/dmusbuff.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/dxerr8.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/dxerr8.h?rev…
==============================================================================
--- trunk/reactos/include/dxsdk/dxerr8.h (added)
+++ trunk/reactos/include/dxsdk/dxerr8.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,45 @@
+
+
+#ifndef _DXERR8_H_
+#define _DXERR8_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char* WINAPI DXGetErrorString8A(HRESULT hr);
+const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
+HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char*
strMsg, BOOL bPopMsgBox );
+
+const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
+const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
+HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR*
strMsg, BOOL bPopMsgBox );
+
+
+#ifdef UNICODE
+ #define DXGetErrorString8 DXGetErrorString8W
+ #define DXGetErrorDescription8 DXGetErrorDescription8W
+ #define DXTrace DXTraceW
+#else
+ #define DXGetErrorString8 DXGetErrorString8A
+ #define DXGetErrorDescription8 DXGetErrorDescription8A
+ #define DXTrace DXTraceA
+#endif
+
+#if defined(DEBUG) | defined(_DEBUG)
+ #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str,
FALSE )
+ #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str,
TRUE )
+ #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str,
FALSE )
+#else
+ #define DXTRACE_MSG(str) (0L)
+ #define DXTRACE_ERR(str,hr) (hr)
+ #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/dxerr8.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/include/dxsdk/vpnotify.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/dxsdk/vpnotify.h?r…
==============================================================================
--- trunk/reactos/include/dxsdk/vpnotify.h (added)
+++ trunk/reactos/include/dxsdk/vpnotify.h Sat Apr 14 22:54:57 2007
@@ -1,0 +1,38 @@
+#ifndef __IVPNotify__
+#define __IVPNotify__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+DECLARE_INTERFACE_(IVPBaseNotify, IUnknown)
+{
+ public:
+ STDMETHOD (RenegotiateVPParameters)(THIS_) PURE;
+};
+
+DECLARE_INTERFACE_(IVPNotify, IVPBaseNotify)
+{
+ public:
+ STDMETHOD (SetDeinterlaceMode)(THIS_ IN AMVP_MODE mode) PURE;
+ STDMETHOD (GetDeinterlaceMode)(THIS_ OUT AMVP_MODE *pMode) PURE;
+};
+
+DECLARE_INTERFACE_(IVPNotify2, IVPNotify)
+{
+ public:
+ STDMETHOD (SetVPSyncMaster)(THIS_ IN BOOL bVPSyncMaster) PURE;
+ STDMETHOD (GetVPSyncMaster)(THIS_ OUT BOOL *pbVPSyncMaster) PURE;
+};
+
+DECLARE_INTERFACE_(IVPVBINotify, IVPBaseNotify)
+{
+ public:
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
Propchange: trunk/reactos/include/dxsdk/vpnotify.h
------------------------------------------------------------------------------
svn:eol-style = native