subparser.h 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __SUBPARSER_H__
  2. #define __SUBPARSER_H__
  3. #include "middleware/common/gui_eng/font_common.h"
  4. /*======================
  5. subtitle new feature
  6. =======================*/
  7. typedef enum {
  8. Sub_POS_Y_TOP_H = 0,
  9. Sub_POS_Y_TOP_M = 1,
  10. Sub_POS_Y_TOP_L = 2,
  11. Sub_POS_Y_BOTTOM_H = 3,
  12. Sub_POS_Y_BOTTOM_M = 4,
  13. Sub_POS_Y_BOTTOM_L = 5,
  14. } Subtitle_PosY_t;
  15. typedef enum {
  16. Sub_FONT_COLOR_R = 0, // Red
  17. Sub_FONT_COLOR_G, // Green
  18. Sub_FONT_COLOR_Y, // Yellow
  19. Sub_FONT_COLOR_B, // Blue
  20. Sub_FONT_COLOR_P, // Purple
  21. Sub_FONT_COLOR_W, // White
  22. } Subtitle_FontColor_t;
  23. typedef enum {
  24. Sub_FONT_SIZE_LARGE_L = 0, // largest
  25. Sub_FONT_SIZE_LARGE_M = 1,
  26. Sub_FONT_SIZE_LARGE_S = 2,
  27. Sub_FONT_SIZE_SMALL_L = 3,
  28. Sub_FONT_SIZE_SMALL_M = 4,
  29. Sub_FONT_SIZE_SMALL_S = 5, // Smallest
  30. } Subtitle_FontSize_t;
  31. void Sub_ColorSet(Subtitle_FontColor_t ColorSet);
  32. void Sub_PositionSet(Subtitle_PosY_t PosYSet);
  33. void Sub_SizeSet(int SizeSet);
  34. int SetEncode(LANGName_t encode);
  35. int GetEncode();
  36. #endif //__SUBPARSER_H__