nav_xtra.h

来自「这是DVD中伺服部分的核心代码」· C头文件 代码 · 共 79 行

H
79
字号
/*****************************************************************************
******************************************************************************
**                                                                          **
**  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 nav_xtra.h
 *
 * Navigation header/messages
 *
 * $Id: nav_xtra.h,v 1.6 2006/10/04 21:30:24 rbehe Exp $
 */

#ifndef _NAV_XTRA_H
#define _NAV_XTRA_H

#ifdef __cplusplus
extern "C" {
#endif

#define DISC_N          5       /* Number of discs to save data for bookmarks */
#define BOOK_N          5       /* Number of bookmarks per disk */

#define IDENTIFIER_SIZE  sizeof (disc[0].identifier)
#define ORDER_ARRY_SIZE  sizeof (order) /* DISC_N; */

#define BOOKMARK_SIZE  sizeof (BOOKMARK_STRUCT)
#define BOOKMARK_ARRY_SIZE sizeof (disc[0].bookmark);

#define DISC_SIZE  sizeof (DISC_STRUCT)
#define DISC_ARRY_SIZE  sizeof (disc)

#define ALL_ORDER_AND_DISC_SIZE  ORDER_ARRY_SIZE + DISC_ARRY_SIZE

#ifdef ERROR_REPORTING
/*
 * Name:        ERROR_CHECK
 *
 * Description:  prints an error message to OSD during parsing
 *
 * Arguments:
 *              INDEX
 *              MAX_LENGTH
 *              ERROR_STRING
 */
#define ERROR_CHECK(INDEX, MAX_LENGTH, ERROR_STRING) \
        if ((INDEX) >= (MAX_LENGTH)) prints (ERROR_STRING)
#else
#define ERROR_CHECK(INDEX, MAX_LENGTH, ERROR_STRING)
#endif

typedef struct
{
    rsm_info_struct rsm_info;   /* position */
    UBYTE angle_num;            /* angle number */
} BOOKMARK_STRUCT;

typedef struct
{
    ULONG identifier;           /* unique identifier */
    BOOKMARK_STRUCT bookmark[BOOK_N];
} DISC_STRUCT;

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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