123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef __SUBPARSER_H__
- #define __SUBPARSER_H__
- #include "middleware/common/gui_eng/font_common.h"
- /*======================
- 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 SetEncode(LANGName_t encode);
- int GetEncode();
- #endif //__SUBPARSER_H__
|