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.

59 lines
1.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*******************************************************************************
  2. mp4_writer.h - A library for writing 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_WRITER_H_AKW
  8. #define MP4_WRITER_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 unknown_atom_t;
  19. struct moov_t;
  20. struct mfra_t;
  21. struct moof_t;
  22. struct atom_write_list_t
  23. {
  24. uint32_t type_;
  25. void const* source_;
  26. unsigned char* (*writer_)(void const* atom, unsigned char* buffer);
  27. };
  28. typedef struct atom_write_list_t atom_write_list_t;
  29. MOD_STREAMING_DLL_LOCAL extern
  30. unsigned char* atom_writer(struct unknown_atom_t* unknown_atoms,
  31. atom_write_list_t* atom_write_list,
  32. unsigned int atom_write_list_size,
  33. unsigned char* buffer);
  34. MOD_STREAMING_DLL_LOCAL extern
  35. uint32_t moov_write(struct moov_t* atom, unsigned char* buffer);
  36. MOD_STREAMING_DLL_LOCAL extern
  37. uint32_t mfra_write(struct mfra_t const* mfra, unsigned char* buffer);
  38. MOD_STREAMING_DLL_LOCAL extern
  39. uint32_t moof_write(struct moof_t* atom, unsigned char* buffer);
  40. #ifdef __cplusplus
  41. } /* extern C definitions */
  42. #endif
  43. #endif // MP4_WRITER_H_AKW
  44. // End Of File