#ifndef __MID_LIBSUB_H__ #define __MID_LIBSUB_H__ #include #include #include #include "region.h" #define ENCODETYPE_AUTO MCP_AUTO #define ENCODETYPE_MAX MEDIA_CODEPAGE_MAX #define ENCODETYPE MediaCodePage_e /*====================== subtitle new feature =======================*/ typedef enum { Sub_POS_Y_TOP_H = 0, Sub_POS_Y_TOP_M = 1, Sub_POS_Y_TOP_L = 2, Sub_POS_Y_BOTTOM_H = 3, Sub_POS_Y_BOTTOM_M = 4, Sub_POS_Y_BOTTOM_L = 5, } Subtitle_PosY_t; typedef enum { Sub_FONT_COLOR_R = 0, // Red Sub_FONT_COLOR_G, // Green Sub_FONT_COLOR_Y, // Yellow Sub_FONT_COLOR_B, // Blue Sub_FONT_COLOR_P, // Purple Sub_FONT_COLOR_W, // White } Subtitle_FontColor_t; typedef enum { Sub_FONT_SIZE_LARGE_L = 0, // largest Sub_FONT_SIZE_LARGE_M = 1, Sub_FONT_SIZE_LARGE_S = 2, Sub_FONT_SIZE_SMALL_L = 3, Sub_FONT_SIZE_SMALL_M = 4, Sub_FONT_SIZE_SMALL_S = 5, // Smallest } Subtitle_FontSize_t; void Sub_ColorSet(Subtitle_FontColor_t ColorSet); void Sub_PositionSet(Subtitle_PosY_t PosYSet); void Sub_SizeSet(int SizeSet); int Sub_SetUserLangEncode(MediaCodePage_e encode); void *rav_intf_init(const char *pmedianame, void *arg); int rav_intf_set_data(int index, char *data, int size, UINT64 pts, UINT64 Audio_pts, UINT64 Video_pts,int duration, UINT64 convergence_duration); int rav_intf_subt_off(void); int rav_intf_subt_on(int id, char magNo, char pageNo); int rav_intf_change_state(int movie_state); int rav_intf_exit(void); int SetEncode(MediaCodePage_e encode); int GetEncode(); #if 0 // newfontmask void Sub_SetFontInfo(FONTInfo_t *FontInfo, UINT32 FontBlockNum, UINT32 FontStyleNum, UINT8 LangNum); #endif void mid_sub_media_uninit(); void MID_Subtitle_constructor(); void MID_Subtitle_destructor(void); extern SubInfoListPtr pSubInfoList; #endif //__SUBPARSER_H__