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

📄 textst_api.h

📁 这是DVD中伺服部分的核心代码
💻 H
字号:
/*****************************************************************************
******************************************************************************
**                                                                          **
**  Copyright (c) 2005-2006 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 textst_api.h
 *
 * $Revision: 1.3 $ 
 *
 * Defines the public API to the TextST Module.
 * The TextST Module is responsible for decoding text subtitle
 * streams and rendering text subtitles.
 *
 */

#ifndef TEXTST_H
#define TEXTST_H

#ifdef __cplusplus
extern "C" {
#endif

#include <directfb.h>
#include "vdvd_types.h"

/**
 * TextST Handle Definition
 */
typedef PVOID TEXTST_HANDLE;

/**
 * TextST Module Status types
 */
typedef  ERR_CODE TEXTST_STATUS;
#define  TEXTST_SUCCESS             (TEXTST_STATUS)(0)
#define  TEXTST_FAILURE             (TEXTST_STATUS)(-1)
#define  TEXTST_INVALID_STATE       (TEXTST_STATUS)(-2)
#define  TEXTST_NOT_INITIALIZED     (TEXTST_STATUS)(-3)
#define  TEXTST_ALREADY_INITIALIZED (TEXTST_STATUS)(-4)
#define  TEXTST_NULL_PTR            (TEXTST_STATUS)(-5)
#define  TEXTST_NOT_IMPLEMENTED     (TEXTST_STATUS)(-6)

/**
 * TextST Module States
 */
typedef enum tagTEXTST_STATE
{
    TEXTST_STATE_INVALID = 0,
    TEXTST_STATE_STOPPED,
    TEXTST_STATE_RUNNING
} TEXTST_STATE;

/**
 * TextST Module Function Definitions
 */
TEXTST_STATUS   TextSTCreate(TEXTST_HANDLE *handle,  int screen_width, int screen_height,
                             IDirectFB *dfb, IDirectFBDisplayLayer *disp_layer);
TEXTST_STATUS   TextSTDelete(TEXTST_HANDLE handle);
TEXTST_STATE    TextSTGetState(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTAddData(TEXTST_HANDLE handle, PVOID pvBuffer, ULONG ulSize);
TEXTST_STATUS   TextSTLoad(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTFlush(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTRun(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTStop(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTShow(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTHide(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTLoadFonts(TEXTST_HANDLE handle, PVOID pvFontList);
TEXTST_STATUS   TextSTUnloadFonts(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTStyleChange(TEXTST_HANDLE handle, ULONG ulStyleID);
TEXTST_STATUS   TextSTSetTimeBase(TEXTST_HANDLE handle, ULONG ulTimeBase);
TEXTST_STATUS   TextSTUpdateTimeStamp(TEXTST_HANDLE handle, TIME45k time45k_currTime);
UBYTE           TextSTGetNumberOfUserStyles(TEXTST_HANDLE handle);
UBYTE           TextSTGetCurrentUserStyle(TEXTST_HANDLE handle);
TEXTST_STATUS   TextSTSetColorSpace(TEXTST_HANDLE handle, int ColorSpace);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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