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

📄 book.c

📁 Sunplus 8202S source code.
💻 C
📖 第 1 页 / 共 2 页
字号:
        return;
    }
#endif
	//terry,2004/1/30 03:11PM
	if( (play_state == VCD_STATE_STOP)||is_menu()||((cd_type_loaded!=CDDVD)&&((cd_trk_now<cd_trk_lo_now)||(cd_trk_now>cd_trk_hi))) )
	{
		invalid_key();
		return;
	}
	record_book();
	mark_UpdateOSD();
}

#ifdef FUSS_DVD
#if defined(FUSS_PANEL)||defined(FUSS2_PANEL)
extern BYTE book_flag;
#endif
#endif
//Jeff 200204112
/**************************************************************************
 *                                                                        *
 *  Function Name: book_func_play                                         *
 *                                                                        *
 *  Purposes:                                                             *
 *    use play key to play the book mark                                  *
 *  Descriptions:                                                         *
 *    use play key to play the book mark                                  *
 *  Arguments: NONE                                                       *
 *  Returns:   NONE                                                       *
 *                                                                        *
 *  See also:  NONE                                                       *
 *                                                                        *
 **************************************************************************/
void book_func_play()
{
        UINT32 c;

        //printf("book_func_play\n");

        if(book[bookIndex][0]) {
            
                #ifdef CANCEL_PRG_WHEN_BOOKMARK     //linrc 2004-6-9 13:37
                if (prog_cnt)
                {
                    prog_func_clear();
                    prog_func_off();                  
                    prog_cnt = 0; 
                    ircmd_book();   //I call this function again in order to build the bookmark parameter again.
                }
                #endif 
                if(rep_ab_mode != REPEAT_IDLE) // 2004-5-10 15:34 linrc add for when bookmark play that REPEAT=IDLE
                {
		            rep_ab_mode = REPEAT_AB_IDLE;
		            show_repeatAB(1);
	            }
                
                NCMD_exec_RSM(bookIndex+1);       //Jeff 20020411
                if(cd_type_loaded==CDDVD) {
                        c=CMD_FUNC | CMD_FUNC_BOOK;
                } else {
                        if ( IsPBCOn() ) {
                                pbcoff_init();	       	       
                        }/* else {	//Jeff 20020418
                        	psd_state=0;
                        }*///2002-4-26
                        resumeTRK=book[bookIndex][0];
                        c=CMD_FUNC | CMD_FUNC_RESUME;            
                        goto_active = 1;//nono 2003-10-27 13:48 avoid ntsc->pal pic size error.            
                #ifdef FUSS_DVD        
	            #if defined(FUSS_PANEL)||defined(FUSS2_PANEL)
	                book_flag=bookIndex+1; //2002-6-24 for fuss          
                    #endif
                #endif
                }

                ircmd_post_func(c);

                if (user_mute) {    //restore MUTE OSD, Jeff 20020522
                    PrintOsdMsg(STR_OS_MUTE,REGION1,0,0);
                }
        }
}

/**************************************************************************
 *                                                                        *
 *  Function Name: book_func_clear                                        *
 *                                                                        *
 *  Purposes:                                                             *
 *    clear the book mark information and refresh  the osd display        *
 *  Descriptions:                                                         *
 *    clear the book mark information and refresh  the osd display        *
 *  Arguments: void                                                       *
 *  Returns:   NONE                                                       *
 *                                                                        *
 *  See also:  NONE                                                       *
 *                                                                        *
 **************************************************************************/
void book_func_clear(void)
{
        //printf("book_func_clear\n");
        book[bookIndex][0]=0;   
        mark_UpdateOSD();
}
/**************************************************************************
 *                                                                        *
 *  Function Name: mark_UpdateOSD                                         *
 *                                                                        *
 *  Purposes:                                                             *
 *    display book function bar on screen                                 *
 *  Descriptions:                                                         *
 *    display book function bar on screen                                 *
 *  Arguments:    NONE                                                    *
 *  Returns:   NONE                                                       *
 *                                                                        *
 *  See also:  NONE                                                       *
 *                                                                        *
 **************************************************************************/
void mark_UpdateOSD()
{
        BYTE    strBook[20];
        BYTE    strTemp[20];

        mark_GetValidString(strBook);

        if (bookIndex > 0) {
                strcpy(strTemp, strBook);
                strTemp[bookIndex]=0;
                DispUpdateMark(0, strTemp, 0);
        }

        strTemp[0] = strBook[bookIndex];
        strTemp[1] = 0;
        DispUpdateMark(bookIndex, strTemp, 1);

        if (bookIndex < (BOOK_MAX_ITEM-1) ) {
                strcpy(strTemp, strBook+bookIndex+1);
                DispUpdateMark(bookIndex+1, strTemp, 0);
        }
}
/**************************************************************************
 *                                                                        *
 *  Function Name: mark_GetValidString                                    *
 *                                                                        *
 *  Purposes:                                                             *
 *    draw the "_" on the book bar                                        *
 *  Descriptions:                                                         *
 *    draw the "_" on the book bar                                        *
 *  Arguments:    array address strBook                                   *
 *  Returns:   NONE                                                       *
 *                                                                        *
 *  See also:  NONE                                                       *
 *                                                                        *
 **************************************************************************/
void mark_GetValidString(BYTE *strBook)
{
        int     i;

        for (i=0; i<BOOK_MAX_ITEM; i++) {
                if (book[i][0]) {
                        strBook[i] = i+'1';
                } else {
                        strBook[i] = '-';
                }
        }
        strBook[i] = 0;
}
//#ifdef support_book
#else
//void mark_GetValidString(BYTE *strBook) {}
void mark_UpdateOSD() {}
void book_func_clear() {}
void book_func_play() {}
void mark_func_right() {}
void mark_func_left() {}
void book_func_select() {}
#endif


⌨️ 快捷键说明

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