ai_subtitle.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Copyright(c) 2011 Sunmedia Technologies - All Rights Reserved.
  3. *
  4. * @file
  5. *
  6. * @brief this file defines subtitle interface for afw layer.
  7. *
  8. * The interface includes: subtitle init and uninit function that is used by afw module,
  9. * subtitle parsing descriptor function that is used by psi listener module.
  10. * When pmt monitor listener callback function gets the pes private datas and if the pes
  11. * private datas inlcude subtitle descriptor, the subtitle parsing descriptor function will
  12. * be used to start to parse subtitle descriptor.
  13. */
  14. #ifndef __AI_SUBTITLE_H__
  15. #define __AI_SUBTITLE_H__
  16. #include "al_basictypes.h"
  17. #ifdef __cplusplus
  18. extern "C"{
  19. #endif
  20. /**
  21. * @brief subtitle init function.
  22. *
  23. * This api is used to create mutex for protecting the shared resource and so on.
  24. *
  25. * @param al_void.
  26. *
  27. * @return AL_SUCCESS if initialization is successful, AL_FAILURE otherwise.
  28. */
  29. AL_Return_t AI_Subtitle_Init(al_void);
  30. /**
  31. * @brief subtitle uninit function.
  32. *
  33. * This api is used to delete mutex for protecting the shared resource and so on.
  34. *
  35. * @param al_void.
  36. *
  37. * @return AL_SUCCESS if uninitialization is successful, AL_FAILURE otherwise.
  38. */
  39. AL_Return_t AI_Subtitle_Uninit(al_void);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif