pmt.h

来自「Zoran V966 DVD 解码 Soc芯片的源程序」· C头文件 代码 · 共 70 行

H
70
字号
/****************************************************************************************
 *  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
 *
 *  File: $Workfile: pmt.h $             
 *
 * Description: 
 * ============
 * 
 * 
 * Log:
 * ====
 * $Revision: $
 * Last Modified by $Author: $ at $Modtime: $ 
 ****************************************************************************************
 * Updates:
 ****************************************************************************************/
#include "Config.h"		// Global Configuration - do not remove!

#ifdef FTA_SUPPORT

#ifndef __PMT_H_
#define __PMT_H_

#include "Include\sysdefs.h"
#include "Playcore\FTA\PSI\section.h"
#include "Playcore\FTA\PSI\descriptors.h"

/////////////////////////////////////////////////////////////////////////////////////////////////
// Macros

#define MAX_STREAM_TYPE		0xFF
#define MAX_PMT_TABLE		4096

/////////////////////////////////////////////////////////////////////////////////////////////////
// Structures

typedef struct
{
	UINT16 sElementaryPid;		// The elementary PID
	UINT8 cStreamType;			// The stream type
	BOOL bCADesExist;
} PMT_ENTRY;

typedef struct 
{
	SECTION_HEADER bMpgHeader;
	UINT32 iCompSize;					// The number of components in the PMT
	PMT_ENTRY *sPmtInfo;				// The elementary stream information
	UINT16 sPcrPid;						// PCR PID
	BOOL bCADesExist;
} PMT_SECTION;

/////////////////////////////////////////////////////////////////////////////////////////////////
// Public Services

void PSI_PmtReset(void);
BOOL PSI_ParsePmtSection(UINT32 ulSectionAddr, UINT16 uiSectionOffset);
UINT16 PSI_PmtGetNumberOfComponents(void);
UINT16 PSI_PmtGetPcrPid(void);
BOOL PSI_PmtGetComponentInfo(int iCompIndex, UINT16* pCompInfo);
BOOL PSI_PmtCAExit(UINT16 uiCompIndex);

#ifdef _DEBUG
void PSI_PrintPmt(void);
#endif

#endif // __PMT_H_

#endif // FTA_SUPPORT

⌨️ 快捷键说明

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