📄 book.c
字号:
/**************************************************************************
* *
* Copyright (c) 2002 by Sunplus Technology Co., Ltd. *
* *
* This software is copyrighted by and is the property of Sunplus *
* Technology Co., Ltd. All rights are reserved by Sunplus Technology *
* Co., Ltd. This software may only be used in accordance with the *
* corresponding license agreement. Any unauthorized use, duplication, *
* distribution, or disclosure of this software is expressly forbidden. *
* *
* This Copyright notice MUST not be removed or modified without prior *
* written consent of Sunplus Technology Co., Ltd. *
* *
* Sunplus Technology Co., Ltd. reserves the right to modify this *
* software without notice. *
* *
* Sunplus Technology Co., Ltd. *
* 19, Innovation First Road, Science-Based Industrial Park, *
* Hsin-Chu, Taiwan, R.O.C. *
**************************************************************************/
/*--------------------------------------------------------------------------
| File Name : book.c
|
| Description : it's book mark function Interface,must define SUPPORT_BOOK,
| it can be used;
|
|
| Version : 0.1
|
|
| Rev Date Author(s) Status & Comments
|---------------------------------------------------------------------------------
| 0.1 2001/5/15s Kenny Creating
|--------------------------------------------------------------------------------*/
/*****************************************************\
Creater: Kenny
Date : 2001/5/15 02:39PM
Description: Search menu using
\*****************************************************/
#include "user_init.h"
#ifdef SUPPORT_BOOK
#include "global.h"
#include "osd.h"
#include "func.h"
#include "cfont.h"
#include "util.h"
#include "user_if.h"
#include "stdlib.h"
//#define BOOK_DBG 1
//#define BOOK_MODE 2
//#define BOOK_Y_ITEM 2
//#define BOOK_X_ITEM 3
//#define NO_ANTI 0
//#define ANTI 2
//#define ST_REGION REGION2
extern void DispUpdateMark(BYTE xStart, BYTE *pStr, BYTE bFocus);
void mark_UpdateOSD();
void mark_GetValidString(BYTE *strBook);
BYTE bookIndex; //Jeff 20020518
/**************************************************************************
* *
* Function Name: record_book *
* *
* Purposes: *
* record information *
* Descriptions: *
* record some useful information ,for example *
tiele and chapter for dvd *
* Arguments: NONE *
* Returns: NONE *
* *
* See also: NONE *
* *
**************************************************************************/
void record_book()
{
BYTE i;
i = bookIndex;
if (i<BOOK_MAX_ITEM) {
book_tm[i]=disp_time;
if (cd_type_loaded==CDDVD) {
book[i][0]=get_tt_info(DISP_TT);//dvd_title
book[i][1]=get_tt_info(DISP_CH);//dvd_chapter;
} else if ( psd_state!=(PSD_SEL_LIST|PSD_PLAY_SEG)) {
book[i][0]=cd_trk_now;
}
RSM_save(0xff,i+1);
}
}
//Jeff 20020411
void book_cancel(void)
{
}
/*
void book_func_up(void)
{
//printf("book_func_up\n");
}
void book_func_down(void)
{
//printf("book_func_down\n");
}*/
/**************************************************************************
* *
* Function Name: mark_func_right *
* *
* Purposes: *
* HL turn right *
* Descriptions: *
* HL turn right *
* Arguments: NONE *
* Returns: NONE *
* *
* See also: NONE *
* *
**************************************************************************/
void mark_func_right()
{
if (bookIndex < (BOOK_MAX_ITEM-1) ) {
bookIndex++;
mark_UpdateOSD();
}
//printf("mark_func_right:bookIndex=%d\n", bookIndex);
}
void mark_func_left()
{
if (bookIndex > 0) {
bookIndex--;
mark_UpdateOSD();
}
//printf("mark_func_left:bookIndex=%d\n", bookIndex);
}
extern void invalid_key(void); // in ircmd.c
//Jeff 200204112
/**************************************************************************
* *
* Function Name: book_func_select *
* *
* Purposes: *
* book function was select that use enter key *
* Descriptions: *
* according to the different states ,the *
* book function was select that use enter key *
* Arguments: VOID *
* Returns: NONE *
* *
* See also: NONE *
* *
**************************************************************************/
void book_func_select(void)
{
//printf("book_func_select:bookIndex=%d, play_state=%x\n", bookIndex, play_state);
#ifdef PULIANG_DVD //yaowh add 04-12-17
if(book[bookIndex][0])
{
if(play_state==VCD_STATE_PAUSE)
{ircmd_play();}
else
{
book_func_play();
book_func_clear();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -