📄 psi_task.h
字号:
/*
* Copyright (c) 2004, 2005 Koninklijke Philips Electronics N V. Includes code
* copyright (c) 2004 by VCom Electronics Inc; copyright transferred by verbal
* agreement between Tim Meakin and Jonathan Coxhead, November 2004. All rights
* reserved.
*
* This source code and any compilation or derivative thereof is the proprietary
* information of Koninklijke Philips Electronics N V and is confidential in
* nature. Under no circumstances is this software to be exposed to or placed
* under an Open Source License of any type without the express written
* permission of Koninklijke Philips Electronics N V.
*
* #############################################################################
*
* Module: %name: psi_task.h % %version: 1 %
*
* %date_created: Fri Mar 11 11:55:16 2005 % %created_by: jcoxhead %
*
* %date_modified: Fri Jun 14 11:31:56 2002 %
*
* #############################################################################
*/
/* --------------------------------------------------------------------------
*
* DESCRIPTION: Header file for the PSI Data task
*
* --------------------------------------------------------------------------
*/
#ifndef _PSI_TASK_H
#define _PSI_TASK_H
#include "exolMpegTs.h"
#if defined(__cplusplus)
extern "C" {
#endif
//---------------------------------------------------------------------------
// Defines and Macros
//---------------------------------------------------------------------------
#define MPEG_2_VIDEO 0x02
#define MPEG_1_AUDIO 0x03
#define MPEG_2_AUDIO 0x04
#define AC3_AUDIO 0x81
#define SET_PIDS 0
#define GET_PIDS 1
#define NEW_PIDS 2
#define SET_PROGRAM_NO 4
#define GET_PROGRAM_NO 5
#define PIDS_ALREADY_SET 6
//---------------------------------------------------------------------------
// Type Definitions
//---------------------------------------------------------------------------
typedef struct pids
{
UInt32 videoPid;
UInt32 mainAudioPid;
UInt32 secondaryAudioPid;
UInt32 pcrPid;
Int programNum;
} pids_t;
//---------------------------------------------------------------------------
// Global data
//---------------------------------------------------------------------------
extern Bool bKillPsiDataTask;
//---------------------------------------------------------------------------
// Function prototypes
//---------------------------------------------------------------------------
void psiDataTask( pVoid pArgs );
tmErrorCode_t psiGetPids( pids_t *pid );
tmErrorCode_t psiGetProgramNo( Int *num );
tmErrorCode_t psiInit( void );
tmErrorCode_t psiPidsAlreadySet( void );
tmErrorCode_t psiSetPids( pids_t pid );
tmErrorCode_t psiSetProgramNo( Int num );
//---------------------------------------------------------------------------
#if defined(__cplusplus)
}
#endif
#endif // _PSI_TASK_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -