📄 mpginfo.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 mpginfo.h
*
* Mpeg parsing utility routines
*
* $Id: mpginfo.h,v 1.3 2006/10/25 20:09:19 rbehe Exp $
*/
#ifndef MPGINFO_H
#define MPGINFO_H
#ifdef __cplusplus
extern "C" {
#endif
// Pes Routines
SHORT MpgPutPes ( BYTE *pVideoPacket, SHORT wLength, BYTE *pVideoStorage, SHORT *pwCurrent, SHORT *pwUsed, SHORT wSize );
BOOLEAN MpgIsPes ( ULONG dwStartCode );
BYTE * MpgFindStartCode ( BYTE *pBuffer, SHORT wLength, ULONG dwStartCode );
ULONG MpgShowSyncCode ( PVOID pData );
BYTE MpgGetPackStuffingLength ( BYTE *pbData );
ULONG MpgShowStart ( PVOID pData );
PVOID MpgSkipStart ( PVOID pData );
PVOID MpgFindStart ( PVOID pData, PVOID pBoundary );
PVOID MpgReadPack ( PMPG_PACK_HDR pmpgPack, PVOID pData );
PVOID MpgReadGop ( PMPG_GOP_HDR pmpgGop, PVOID pData );
PVOID MpgReadPESHdr ( PMPG_PES_HDR pmpgPes, PVOID pData );
ULONG MpgGetPackSCR32 ( BYTE *pbData );
ULONG MpgGetPESPTS32 ( BYTE *pbData );
ULONG MpgGetPESDTS32 ( BYTE *pbData );
PVOID MpgReadSeqHdr ( PMPG_SEQ_HDR pmpgSeq, PVOID pData );
PVOID MpgReadExtSeqHdr ( PMPG_EXT_SEQ_HDR pmpgSeq, PVOID pData );
PVOID MpgReadPS1Hdr ( PMPG_PS1_HDR pmpgPS1, PVOID pData);
PVOID MpgReadAC3Hdrs ( PAC3_SYNC_HDR pAC3Sync, PAC3_BSI_HDR pAC3Bsi, PVOID pData);
// Transport Parsing returns
// These do byte swapping on Words mainly
void MpgConvertTransportHeader ( BYTE *pmpgTrans );
ULONG MpgGetPCR ( BYTE *pmpgPCR );
void MpgConvertPSIHeader ( BYTE *pmpgPsi );
void MpgConvertPATHeader ( BYTE *pmpgPat );
void MpgConvertPASNumber ( BYTE *pmpgPasNum );
void MpgConvertPMTHeader ( BYTE *pmpgPmt );
void MpgConvertPidDescriptor ( BYTE *pmpgPid );
// This gives a pointer to the payload of a packet
BYTE * MpgGetPayload ( BYTE *pmpgData );
// Above Converted to good format
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -