|
- #ifndef _hls_media_h_
- #define _hls_media_h_
-
- #include <stdint.h>
- #include <stddef.h>
-
- #define HLS_FLAGS_KEYFRAME 0x8000
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- typedef struct hls_media_t hls_media_t;
-
-
-
-
-
-
-
-
- typedef int (*hls_media_handler)(void* param, const void* data, size_t bytes, int64_t pts, int64_t dts, int64_t duration);
-
-
- hls_media_t* hls_media_create(int64_t duration, hls_media_handler handler, void* param);
-
- void hls_media_destroy(hls_media_t* hls);
-
-
-
-
-
-
-
-
- int hls_media_input(hls_media_t* hls, int avtype, const void* data, size_t bytes, int64_t pts, int64_t dts, int flags);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
|