|
- #ifndef _hls_fmp4_h_
- #define _hls_fmp4_h_
-
- #include <stdint.h>
- #include <stddef.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- typedef struct hls_fmp4_t hls_fmp4_t;
-
-
-
-
-
-
-
-
- typedef int (*hls_fmp4_handler)(void* param, const void* data, size_t bytes, int64_t pts, int64_t dts, int64_t duration);
-
-
- hls_fmp4_t* hls_fmp4_create(int64_t duration, hls_fmp4_handler handler, void* param);
-
- void hls_fmp4_destroy(hls_fmp4_t* hls);
-
-
-
-
- int hls_fmp4_add_audio(hls_fmp4_t* hls, uint8_t object, int channel_count, int bits_per_sample, int sample_rate, const void* extra_data, size_t extra_data_size);
- int hls_fmp4_add_video(hls_fmp4_t* hls, uint8_t object, int width, int height, const void* extra_data, size_t extra_data_size);
-
-
-
-
-
-
-
- int hls_fmp4_input(hls_fmp4_t* hls, int track, const void* data, size_t bytes, int64_t pts, int64_t dts, int flags);
-
-
-
-
-
- int hls_fmp4_init_segment(hls_fmp4_t* hls, void* data, size_t bytes);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
|