wmatypes.h

来自「ESS3890+SL原代码(1*16内存)」· C头文件 代码 · 共 202 行

H
202
字号
/* Copyright 1997, ESS Technology, Inc.                                 *//* SCCSID @(#)wmatypes.h	1.1 01/23/02 *//* Based on DVD code version  	1.10 08/30/01 */ #ifndef WMATYPES_H#define WMATYPES_H#define PACKED/****************************************************************************/#ifndef _T_OR_F_DEFINED#define _T_OR_F_DEFINED#define TRUE	1#define FALSE	0#endif /* _T_OR_F_DEFINED */#ifndef _BYTE_DEFINED#define _BYTE_DEFINEDtypedef unsigned char   BYTE;#endif /* _BYTE_DEFINED */#ifndef _WORD_DEFINED#define _WORD_DEFINEDtypedef unsigned short  WORD;#endif /* _WORD_DEFINED */#ifndef _DWORD_DEFINED#define _DWORD_DEFINEDtypedef unsigned long    DWORD;	/* actually long, but this should be okay */#endif /* _DWORD_DEFINED */#ifndef _QWORD_DEFINED#define _QWORD_DEFINEDtypedef PACKED struct tQWORD{    DWORD   dwLo;    DWORD   dwHi;}   QWORD;#endif /* _QWORD_DEFINED */#ifndef _BOOL1_DEFINED#define _BOOL1_DEFINEDtypedef PACKED DWORD BOOL1;#endif /* _BOOL1_DEFINED *//****************************************************************************/#ifndef GUID_DEFINED#define GUID_DEFINEDtypedef PACKED struct tGUID{    DWORD   data[4];}	GUID;#endif#ifndef OBJHDR_DEFINED#define OBJHDR_DEFINEDtypedef PACKED struct tOBJHDR{    GUID	guid;    QWORD	qw;} OBJHDR;#endif/****************************************************************************/#ifndef _WAVEFORMATEX_#define _WAVEFORMATEX_typedef PACKED struct tWAVEFORMATEX{    WORD    wFormatTag;         /* format type */    WORD    nChannels;          /* number of channels (i.e. mono, stereo...) */    DWORD   nSamplesPerSec;     /* sample rate */    DWORD   nAvgBytesPerSec;    /* for buffer estimation */    WORD    nBlockAlign;        /* block size of data */    WORD    wBitsPerSample;     /* number of bits per sample of mono data */    WORD    cbSize;             /* the count in bytes of the size of */}   WAVEFORMATEX;typedef const WAVEFORMATEX *LPCWAVEFORMATEX;#endif#define WAVE_FORMAT_MSAUDIO1  0x0160typedef PACKED struct tMSAUDIO1WAVEFORMAT{    WAVEFORMATEX wfx;    WORD         wSamplesPerBlock;    WORD         wEncodeOptions;}   MSAUDIO1WAVEFORMAT;#define WAVE_FORMAT_WMAUDIO2  0x0161typedef PACKED struct tWMAUDIO2WAVEFORMAT{    WAVEFORMATEX wfx;    DWORD        dwSamplesPerBlock;    WORD         wEncodeOptions;    DWORD        dwSuperBlockAlign;}   WMAUDIO2WAVEFORMAT;/****************************************************************************/typedef PACKED struct tAsfXAcmAudioErrorMaskingData{    BYTE    span;    WORD    virtualPacketLen;    WORD    virtualChunkLen;    WORD    silenceLen;    BYTE    silence[1];}   AsfXAcmAudioErrorMaskingData;/****************************************************************************/typedef PACKED struct tAsfXSignatureAudioErrorMaskingData{    DWORD maxObjectSize;    WORD  chunkLen;    WORD  signatureLen;    BYTE  signature[1];}   AsfXSignatureAudioErrorMaskingData;/****************************************************************************/typedef struct tPACKET_PARSE_INFO_EX{    DWORD fParityPacket;    DWORD cbParseOffset;    DWORD fEccPresent;    DWORD bECLen;    DWORD bPacketLenType;    DWORD cbPacketLenTypeOffset;    DWORD bPadLenType;    DWORD bSequenceLenType;    DWORD fMultiPayloads;    DWORD bOffsetBytes;    DWORD bOffsetLenType;    DWORD cbPacketLenOffset;    DWORD cbExplicitPacketLength;     DWORD cbSequenceOffset;        DWORD dwSequenceNum;     DWORD cbPadLenOffset;    DWORD cbPadding;    DWORD dwSCR;    DWORD wDuration;    DWORD bPayLenType;    DWORD bPayBytes;    DWORD cbPayLenTypeOffset;    DWORD cPayloads;}   PACKET_PARSE_INFO_EX;/****************************************************************************/typedef struct tPAYLOAD_MAP_ENTRY_EX{    DWORD cbPacketOffset;    DWORD cbTotalSize;    DWORD bStreamId;    DWORD bObjectId;    DWORD cbObjectOffset;    DWORD cbObjectSize;    DWORD msObjectPres;    DWORD cbRepData;    DWORD bJunk;    DWORD cbPayloadSize;/* Added by Amit */    /*    BYTE bIsKeyFrame; *//*    BYTE bFrameRate; */    DWORD wBytesRead;    DWORD wTotalDataBytes;    DWORD bSubPayloadState;    DWORD bIsCompressedPayload;    DWORD bNextSubPayloadSize;    DWORD wSubpayloadLeft;}   PAYLOAD_MAP_ENTRY_EX;#endif  /* WMATYPES_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?