/** * Copyright(c) 2012 Sunmedia Technologies - All Rights Reserved. * * @file * * @brief this file defines closed caption and vchip interface for app layer. * * The file supports the closed caption and vchip functions by used for app layer. * The datas related closed caption functions include analog and digitial datas and * the datas related vchip functions include analog datas only. */ #ifndef __AL_CC_H__ #define __AL_CC_H__ #include "al_basictypes.h" #ifdef __cplusplus extern "C"{ #endif /** * @brief number definition for closed caption service. * * before starting to start closed caption funtion, it needs select closed caption * service number for gotten source data. */ typedef enum { AL_CC_SERV_CC1 = 1, /**< CC1 service*/ AL_CC_SERV_CC2, /**< CC2 service*/ AL_CC_SERV_CC3, /**< CC3 service*/ AL_CC_SERV_CC4, /**< CC4 service*/ AL_CC_SERV_TXT1, /**< TEXT1 service*/ AL_CC_SERV_TXT2, /**< TEXT2 service*/ AL_CC_SERV_TXT3, /**< TEXT3 service*/ AL_CC_SERV_TXT4, /**< TEXT4 service*/ AL_CC_SERV_CS1, /**< CS1 service*/ AL_CC_SERV_CS2, /**< CS2 service*/ AL_CC_SERV_CS3, /**< CS3 service*/ AL_CC_SERV_CS4, /**< CS4 service*/ AL_CC_SERV_CS5, /**< CS5 service*/ AL_CC_SERV_CS6, /**< CS6 service*/ AL_CC_SERV_MAX /**< invalid service*/ }AL_CC_Serv_Num_t; typedef enum { AL_CC_SRC_ATV = 0, AL_CC_SRC_DTV, AL_CC_SRC_MAX }AL_CC_Source_Type_t; /** * @brief font size definition for closed caption. */ typedef enum { AL_CC_FONT_SIZE_DEFAULT, /**< default font size*/ AL_CC_FONT_SIZE_SMALL, /**< small font size*/ AL_CC_FONT_SIZE_MEDIUM, /**< medium font size*/ AL_CC_FONT_SIZE_LARGE /**< large font size*/ } AL_CC_Font_Size_t; /** * @brief font style definition for closed caption. */ typedef enum { AL_CC_FONT_STYLE_DEFAULT = 0, /**< default style*/ AL_CC_FONT_STYLE_MONO_SERIF, /**< monospaced with serifs style*/ AL_CC_FONT_STYLE_PROPORTIONAL_SERIF, /**< proportionally spaced with serifs style*/ AL_CC_FONT_STYLE_MONO_SANS_SERIF, /**< monospaced without serifs style*/ AL_CC_FONT_STYLE_PROPORTIONAL_SANS_SERIF,/**