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

📄 dvd_prm.h

📁 这是DVD中伺服部分的核心代码
💻 H
字号:
/*****************************************************************************
******************************************************************************
**                                                                          **
**  Copyright (c) 2003 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 dvd_prm.h
 *
 * The GPRM (General Parameter) and SPRM (System Parameter) interface is implemented here.
 *
 * $Id: dvd_prm.h,v 1.6 2006/10/17 14:13:08 rbehe Exp $
 */

#ifndef _dvd_prmh
#define _dvd_prmh

#ifdef __cplusplus
extern "C" {
#endif

#define SPRM_M_LCD               0      /* menu description language code */
#define SPRM_ASTN_TT_DOM         1      /* audio stream number for title
                                         * domain */
#define SPRM_SPSTN_TT_DOM        2      /* sp stream no & on/off flg for
                                         * TT_DOM */
#define SPRM_AGLN_TT_DOM         3      /* angle number for TT_DOM */
#define SPRM_TTN_TT_DOM          4      /* title number for TT_DOM */
#define SPRM_VTS_TTN_TT_DOM      5      /* VTS title number for TT_DOM */
#define SPRM_TT_PGCN_TT_DOM      6      /* title PGC number for TT_DOM */
#define SPRM_PTTN_ONE_SEQ_PGC    7      /* PTTN for one sequential PGC title */
#define SPRM_HL_BTNN             8      /* hilite button no for selection
                                         * state */
#define SPRM_NV_TMR              9      /* navigation timer */
#define SPRM_TT_PGCN_NV_TMR      10     /* title PGC no. for navigation timer */
#define SPRM_P_AMXMD             11     /* player audio mixing mode for
                                         * Karaoke */
#define SPRM_CTY_CD              12     /* country code for parental
                                         * management */
#define SPRM_PTL_LVL             13     /* parental level */
#define SPRM_P_CFG_VID           14     /* player configuration for video */
#define SPRM_P_CFG_AUD           15     /* player configuration for audio */
#define SPRM_INI_LCD_AST         16     /* initial lang. code for audio
                                         * stream */
#define SPRM_INI_LCD_EXT_AST     17     /* initial language code ext. for AST */
#define SPRM_INI_LCD_SPST        18     /* initial lang. code for sub-picture */
#define SPRM_INI_LCD_EXT_SPST    19     /* INI_LCD ext. for sub-picture
                                         * stream */
#define SPRM_REGION_COD          20     /* player region code */
#define SPRM_RESERVED_1          21
#define SPRM_RESERVED_2          22
#define SPRM_RESERVED_3          23     /* reserved for extended playback
                                         * mode */
#define MAX_SPRMN                23
#define NUM_SPRM                 MAX_SPRMN+1

extern USHORT sprm[NUM_SPRM];

#define MAX_GPRMN 15
#define NUM_GPRM  MAX_GPRMN+1
#define GPRM_REG_MODE 0
#define GPRM_CTR_MODE 1

#define region_all    0x00      /* all region */
#define region_1      0xfe      /* region 1 */
#define region_2      0xfd      /* region 2 */
#define region_3      0xfb      /* region 3 */
#define region_4      0xf7      /* region 4 */
#define region_5      0xef      /* region 5 */
#define region_6      0xdf      /* region 6 */
#define region_7      0xbf      /* region 7 */
#define region_8      0x7f      /* region 8 */

typedef struct _gprm_struct
{
    UBYTE mode;
    USHORT value;
} gprm_struct;

void set_gprm(UBYTE gprmn, UBYTE mode, USHORT value);
USHORT get_gprm(UBYTE gprmn);
void modify_gprm(UBYTE gprmn, USHORT mask, USHORT value);
void set_sprm(UBYTE sprmn, USHORT value);
void modify_sprm(UBYTE sprmn, USHORT mask, USHORT value);
USHORT get_sprm(UBYTE sprmn);
void gprm_init(void);
void sprm_init(void);
void sprm_init_from_system_params(void);
USHORT check_region_code(void);

void set_hl_btnn_sprm(UBYTE hl_btnn);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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