mp4parse.h 533 B

123456789101112131415161718192021222324
  1. // This Source Code Form is subject to the terms of the Mozilla Public
  2. // License, v. 2.0. If a copy of the MPL was not distributed with this
  3. // file, You can obtain one at https://mozilla.org/MPL/2.0/.
  4. #ifndef _MP4PARSE_RUST_H
  5. #define _MP4PARSE_RUST_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. struct mp4parse_state;
  10. struct mp4parse_state* mp4parse_new(void);
  11. void mp4parse_free(struct mp4parse_state* state);
  12. int32_t mp4parse_read(struct mp4parse_state* state, uint8_t *buffer, size_t size);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif