#pragma once// Plugin Specifications
// Version: 1.1#define MAX_NUM_FLAGS 4
#define MAX_NUM_CHOICES 4// Specifies the type of codec in the list
enum _CodecType {CTYPE_NONE, CTYPE_SPEECH, CTYPE_AUDIO, CTYPE_IMAGE, CTYPE_VIDEO};
typedef enum _CodecType CodecType;// Codec info structure
typedef struct _CodecInfo
{
CodecType Type;
char Name[32];
char Extension[8];
char Rates[256];
char Flags[256];
char Choices[256];
} CodecInfo;// Video sample info structure
typedef struct _VideoSampleInfo
{
int Width;
int Height;
float Framerate;
int NumFrames;
} VideoSampleInfo;// Audio sample info structure
typedef struct _AudioSampleInfo
{
int NumChannels;
int SampleRate;
int NumBits;
} AudioSampleInfo;// Encoder parameter structure
typedef struct _CodecParam
{
// Sample settings
VideoSampleInfo VideoSample;
AudioSampleInfo AudioSample;

// File settings
char SrcFile[MAX_PATH];
char TempFile[MAX_PATH];
char DestFile[MAX_PATH];
long OriginalSize;
long EncodedSize; // UI interaction settings
void (*Callback)(void *, float);
void *UserData;
BOOL *Cancel; // Codec settings
int Rate;
BOOL Flag[4];
int Choice;} CodecParam;// Function pointers
typedef void (*GetCodecInfoFPtr)(CodecInfo *);
typedef BOOL (*RunCodecFPtr)(CodecParam *);
/*********************下面是错误*************************/codecplugin.h(10) : error C2011: '_CodecType' : 'enum' type redefinition
error C2011: '_CodecInfo' : 'struct' type redefinition
error C2011: '_VideoSampleInfo' : 'struct' type redefinition
error C2011: '_AudioSampleInfo' : 'struct' type redefinition
error C2011: '_CodecParam' : 'struct' type redefinition
这些错误怎么更改啊~小弟是初学者,望楼下的前辈指教~