reactos/include/dxsdk/mpegtype.h
Hermès Bélusca-Maïto e1ef078741 Create this branch to work on loading of different Kernel-Debugger DLL providers, and see whether it is possible to move KDBG from ntoskrnl to a new DLL called, say, KDROSDBG.DLL.
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line):

/DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible.
/DEBUGPORT=FOO  --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...)
/DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port.

svn path=/branches/kd++/; revision=58883
2013-04-28 13:26:45 +00:00

54 lines
1.7 KiB
C

#ifndef __MPEGTYPE__
#define __MPEGTYPE__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct tagAM_MPEGSTREAMTYPE
{
DWORD dwStreamId;
DWORD dwReserved;
AM_MEDIA_TYPE mt;
BYTE bFormat[1];
} AM_MPEGSTREAMTYPE;
typedef struct tagAM_MPEGSYSTEMTYPE
{
DWORD dwBitRate;
DWORD cStreams;
AM_MPEGSTREAMTYPE Streams[1];
} AM_MPEGSYSTEMTYPE;
DECLARE_INTERFACE_(IMpegAudioDecoder, IUnknown)
{
STDMETHOD(get_FrequencyDivider) (THIS_ unsigned long *pDivider) PURE;
STDMETHOD(put_FrequencyDivider) (THIS_ unsigned long Divider) PURE;
STDMETHOD(get_DecoderAccuracy) (THIS_ unsigned long *pAccuracy) PURE;
STDMETHOD(put_DecoderAccuracy) (THIS_ unsigned long Accuracy) PURE;
STDMETHOD(get_Stereo) (THIS_ unsigned long *pStereo ) PURE;
STDMETHOD(put_Stereo) (THIS_ unsigned long Stereo) PURE;
STDMETHOD(get_DecoderWordSize) (THIS_ unsigned long *pWordSize) PURE;
STDMETHOD(put_DecoderWordSize) (THIS_ unsigned long WordSize) PURE;
STDMETHOD(get_IntegerDecode) (THIS_ unsigned long *pIntDecode) PURE;
STDMETHOD(put_IntegerDecode) (THIS_ unsigned long IntDecode) PURE;
STDMETHOD(get_DualMode) (THIS_ unsigned long *pIntDecode) PURE;
STDMETHOD(put_DualMode) (THIS_ unsigned long IntDecode) PURE;
STDMETHOD(get_AudioFormat) (THIS_ MPEG1WAVEFORMAT *lpFmt) PURE;
};
#ifdef
}
#endif
#endif
#define AM_MPEGSTREAMTYPE_ELEMENTLENGTH(pStreamType) FIELD_OFFSET(AM_MPEGSTREAMTYPE, bFormat[(pStreamType)->mt.cbFormat])
#define AM_MPEGSTREAMTYPE_NEXT(pStreamType) ((AM_MPEGSTREAMTYPE *)((PBYTE)(pStreamType) + ((AM_MPEGSTREAMTYPE_ELEMENTLENGTH(pStreamType) + 7) & ~7)))
#define AM_MPEG_AUDIO_DUAL_MERGE 0
#define AM_MPEG_AUDIO_DUAL_LEFT 1
#define AM_MPEG_AUDIO_DUAL_RIGHT 2