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

📄 timer.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 timer.h
 *
 * support for display timer, debounce timer
 *
 * $Id: timer.h,v 1.25 2006/05/01 19:28:04 rbehe Exp $
 */

#ifndef _TIMER_H
#define _TIMER_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum
{
    TIMEDISP_OFF = 0,
    BUFF_DISP,
    CHAP_UP,
    CHAP_DOWN,
    TITLE_UP,
    TITLE_DOWN
} TIME_MODE;

typedef struct
{
    BOOLEAN   title_valid;
    BOOLEAN   chapter_valid;
    ULONG     title_tot;
    ULONG     chap_tot;
    USHORT    title_n;
    USHORT    chap_n;
    UBYTE     hour;
    UBYTE     min;
    UBYTE     sec;
    TIME_MODE display_mode;     /* Indicates direction of timer count and if
                                 * display is on */
} TIME_STRUCT;

typedef struct
{
#if VDVD_PLATFORM_ENDIANESS == VDVD_BIG_ENDIAN
    ULONG ht:4; /* Hour (tens) */
    ULONG hu:4; /* Hour (units) */
    ULONG mt:4; /* Minutes (tens) */
    ULONG mu:4; /* Minutes (units) */
    ULONG st:4; /* Seconds (tens) */
    ULONG su:4; /* Seconds (units) */
    ULONG tc:2;
    ULONG vft:2;
    ULONG vfu:4;
#else
    ULONG vfu:4;
    ULONG vft:2;
    ULONG tc:2;
    ULONG su:4; /* Seconds (units) */
    ULONG st:4; /* Seconds (tens) */
    ULONG mu:4; /* Minutes (units) */
    ULONG mt:4; /* Minutes (tens) */
    ULONG hu:4; /* Hour (units) */
    ULONG ht:4; /* Hour (tens) */
#endif
} ELTM_STRUCT;

typedef union e_tag
{
    ULONG ltime;
    ELTM_STRUCT eltm[1];
} TIME_FORMAT;

extern TIME_STRUCT *time_info;

void init_dvddisptimer(void);
ULONG time_to_bin(ULONG);
void update_timedisp(ULONG);

void CreateNavTimer(void);
void DeleteNavTimer(void);
void EnableNavTimer(void);
void DisableNavTimer(void);

void CreateNavCmdTimer(void);
void DeleteNavCmdTimer(void);
void EnableNavCmdTimer(void);
void DisableNavCmdTimer(void);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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