ai_cc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * Copyright(c) 2012 Sunmedia Technologies - All Rights Reserved.
  3. *
  4. * @file
  5. *
  6. * @brief this file defines closed caption and vchip interface for app layer.
  7. *
  8. * The file supports the closed caption and vchip functions by used for app layer.
  9. * The datas related closed caption functions include analog and digitial datas and
  10. * the datas related vchip functions include analog datas only.
  11. */
  12. #ifndef __AI_CLOSEDCAPTION_H__
  13. #define __AI_CLOSEDCAPTION_H__
  14. #include "al_basictypes.h"
  15. #ifdef CONFIG_ATSC_SYSTEM
  16. #include "psip.h"
  17. #endif
  18. #include "mid_cc.h"
  19. #ifdef __cplusplus
  20. extern "C"{
  21. #endif
  22. /**
  23. * @brief closed caption init function.
  24. *
  25. * This api is used to create mutex for protecting the shared resource.
  26. * the closed caption decoder task
  27. *
  28. * @param al_void.
  29. *
  30. * @return AL_SUCCESS if initialization is successful, AL_FAILURE
  31. * otherwise.
  32. */
  33. AL_Return_t AI_CC_Init(Vchip_Callback_f VChip_CallBack);
  34. /**
  35. * @brief closed caption uninit function.
  36. *
  37. * This api is used to delete mutex for protecting the shared resource
  38. * and so on.
  39. *
  40. * @param al_void.
  41. *
  42. * @return AL_SUCCESS if uninitialization is successful, AL_FAILURE
  43. * otherwise.
  44. */
  45. AL_Return_t AI_CC_Uninit(al_void);
  46. /**
  47. * @brief the function will get digital caption service descriptor information.
  48. *
  49. * @param *CCDescInfo gotten the caption service descriptor information.
  50. *
  51. * @return AL_SUCCESS if gotten descriptor information is successful, AL_FAILURE
  52. * otherwise.
  53. */
  54. #ifdef CONFIG_ATSC_SYSTEM
  55. AL_Return_t AI_CC_GetDescInfo(CaptionServiceDesc_t *CCDescInfo);
  56. #endif
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif