You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*******************************************************************************
  2. mp4_reader.h - A library for reading MPEG4.
  3. Copyright (C) 2007-2009 CodeShop B.V.
  4. http://www.code-shop.com
  5. For licensing see the LICENSE file
  6. ******************************************************************************/
  7. #ifndef MP4_READER_H_AKW
  8. #define MP4_READER_H_AKW
  9. #include "mod_streaming_export.h"
  10. #ifndef _MSC_VER
  11. #include <inttypes.h>
  12. #else
  13. #include "inttypes.h"
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. struct mp4_context_t;
  19. struct moov_t;
  20. struct atom_read_list_t
  21. {
  22. uint32_t type_;
  23. int (*destination_)(struct mp4_context_t const* mp4_context,
  24. void* parent, void* child);
  25. void* (*reader_)(struct mp4_context_t const* mp4_context,
  26. void* parent, unsigned char* buffer, uint64_t size);
  27. };
  28. typedef struct atom_read_list_t atom_read_list_t;
  29. MOD_STREAMING_DLL_LOCAL extern
  30. int atom_reader(struct mp4_context_t const* mp4_context,
  31. struct atom_read_list_t* atom_read_list,
  32. unsigned int atom_read_list_size,
  33. void* parent,
  34. unsigned char* buffer, uint64_t size);
  35. MOD_STREAMING_DLL_LOCAL extern
  36. void* moov_read(struct mp4_context_t const* mp4_context,
  37. void* parent,
  38. unsigned char* buffer, uint64_t size);
  39. MOD_STREAMING_DLL_LOCAL extern
  40. void* moof_read(struct mp4_context_t const* mp4_context,
  41. void* parent,
  42. unsigned char* buffer, uint64_t size);
  43. MOD_STREAMING_DLL_LOCAL extern
  44. int moov_build_index(struct mp4_context_t const* mp4_context,
  45. struct moov_t* moov);
  46. MOD_STREAMING_DLL_LOCAL extern
  47. void* mfra_read(struct mp4_context_t const* mp4_context,
  48. void* parent,
  49. unsigned char* buffer, uint64_t size);
  50. #ifdef __cplusplus
  51. } /* extern C definitions */
  52. #endif
  53. #endif // MP4_READER_H_AKW
  54. // End Of File