⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3_demux.h

📁 这是DVD中伺服部分的核心代码
💻 H
字号:
/************************************************************************/
/************************************************************************/
/**                                                                    **/
/** 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -