mp3_demux.h

来自「这是DVD中伺服部分的核心代码」· C头文件 代码 · 共 108 行

H
108
字号
/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** Copyright (c) 2002 Videon Central, Inc.                            **/
/** All rights reserved.                                               **/
/**                                                                    **/
/** The computer program contained herein contains proprietary         **/
/** information which is the property of Videon Central, Inc.  The     **/
/** program may be used and/or copied only with the written permission **/
/** of Videon Central, Inc. or in accordance with the terms and        **/
/** conditions stipulated in the agreement/contract under which the    **/
/** programs have been supplied.                                       **/
/**                                                                    **/
/************************************************************************/
/************************************************************************/
/**
 * @file mp3_demux.h
 *
 * MP3 Demux header file.
 *
 */
#ifndef MP3_DEMUX_H
#define MP3_DEMUX_H

#include "vcitypes.h"
#include "utility.h"
#include "mp3struct.h"

/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** MP3 Demux Defines                                                  **/
/**                                                                    **/
/************************************************************************/
/************************************************************************/
#define MP3_SUCCESS   FALSE
#define MP3_FAILURE   TRUE

/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** MP3 Demux Enumerations                                             **/
/**                                                                    **/
/************************************************************************/
/************************************************************************/

/**
 * @def MP3 Demux State Enumeration
 * @brief The possible states of the MP3 Demux
 */
enum
{
  MP3_HEADER,
  MP3_DATA,
	MP3_DEMUX_EXIT
};

/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** MP3 Demux Information Structure Definition                         **/
/**                                                                    **/
/************************************************************************/
/************************************************************************/

/**
 * @def DEMUXINFO
 * @brief Defines the information structure of the Demux.
 *
 * Records the information of the Demux including the state information and
 * the configuration information.
 */
typedef struct tagMP3DemuxInfo
{
  ULONG   ulDemuxState;

  MP3_HDR tMP3Header;  //Current MP3 header
  ULONG   ulFrameSize;

  BYTE         *pbData;         //Pointer to frame data
  ULONG        ulSize;          //Size of frame data
  DEMUXPAYLOAD *ptFramePayload; //Payload of frame data

  DEMUXINPUTMESSAGE *messInput;
  BYTE              *pbInputData;
  ULONG             ulInputSize;

  DEMUXCONFIGINFO   tConfigInfo;
  DEMUXCONFIGINFO   *pDynamicConfigInfo;

  DEMUXOUTPUTPIN tOutputPin;

} MP3DEMUXINFO;

/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** MP3 Demux Function Prototypes                                      **/
/**                                                                    **/
/************************************************************************/
/************************************************************************/
ULONG MP3DemuxThreadProc(PVOID pvDemuxInfo);
ULONG MP3DemuxGetErrorCnt( void );
void  MP3FlushPayload( void );

#endif

⌨️ 快捷键说明

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