| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/zlmediakit/include/ |
| H A D | mk_events_objects.h | 23 API_EXPORT uint64_t API_CALL mk_mp4_info_get_start_time(const mk_mp4_info ctx); 25 API_EXPORT float API_CALL mk_mp4_info_get_time_len(const mk_mp4_info ctx); 27 API_EXPORT size_t API_CALL mk_mp4_info_get_file_size(const mk_mp4_info ctx); 29 API_EXPORT const char* API_CALL mk_mp4_info_get_file_path(const mk_mp4_info ctx); 31 API_EXPORT const char* API_CALL mk_mp4_info_get_file_name(const mk_mp4_info ctx); 33 API_EXPORT const char* API_CALL mk_mp4_info_get_folder(const mk_mp4_info ctx); 35 API_EXPORT const char* API_CALL mk_mp4_info_get_url(const mk_mp4_info ctx); 37 API_EXPORT const char* API_CALL mk_mp4_info_get_vhost(const mk_mp4_info ctx); 39 API_EXPORT const char* API_CALL mk_mp4_info_get_app(const mk_mp4_info ctx); 41 API_EXPORT const char* API_CALL mk_mp4_info_get_stream(const mk_mp4_info ctx); [all …]
|
| H A D | mk_frame.h | 30 API_EXPORT extern const int MKCodecH264; 31 API_EXPORT extern const int MKCodecH265; 32 API_EXPORT extern const int MKCodecAAC; 33 API_EXPORT extern const int MKCodecG711A; 34 API_EXPORT extern const int MKCodecG711U; 35 API_EXPORT extern const int MKCodecOpus; 36 API_EXPORT extern const int MKCodecL16; 37 API_EXPORT extern const int MKCodecVP8; 38 API_EXPORT extern const int MKCodecVP9; 39 API_EXPORT extern const int MKCodecAV1; [all …]
|
| H A D | mk_tcp.h | 33 API_EXPORT mk_buffer API_CALL mk_buffer_from_char(const char *data, size_t len, on_mk_buffer_free c… 34 API_EXPORT mk_buffer API_CALL mk_buffer_ref(mk_buffer buffer); 35 API_EXPORT void API_CALL mk_buffer_unref(mk_buffer buffer); 36 API_EXPORT const char* API_CALL mk_buffer_get_data(mk_buffer buffer); 37 API_EXPORT size_t API_CALL mk_buffer_get_size(mk_buffer buffer); 44 API_EXPORT const char* API_CALL mk_sock_info_peer_ip(const mk_sock_info ctx, char *buf); 46 API_EXPORT const char* API_CALL mk_sock_info_local_ip(const mk_sock_info ctx, char *buf); 48 API_EXPORT uint16_t API_CALL mk_sock_info_peer_port(const mk_sock_info ctx); 50 API_EXPORT uint16_t API_CALL mk_sock_info_local_port(const mk_sock_info ctx); 72 API_EXPORT mk_sock_info API_CALL mk_tcp_session_get_sock_info(const mk_tcp_session ctx); [all …]
|
| H A D | mk_transcode.h | 40 API_EXPORT mk_decoder API_CALL mk_decoder_create(mk_track track, int thread_num); 47 API_EXPORT void API_CALL mk_decoder_release(mk_decoder ctx, int flush_frame); 56 API_EXPORT void API_CALL mk_decoder_decode(mk_decoder ctx, mk_frame frame, int async, int enable_me… 61 API_EXPORT void API_CALL mk_decoder_set_max_async_frame_size(mk_decoder ctx, size_t size); 69 API_EXPORT void API_CALL mk_decoder_set_cb(mk_decoder ctx, on_mk_decode cb, void *user_data); 75 API_EXPORT const AVCodecContext* API_CALL mk_decoder_get_context(mk_decoder ctx); 84 API_EXPORT mk_frame_pix API_CALL mk_frame_pix_ref(mk_frame_pix frame); 90 API_EXPORT void API_CALL mk_frame_pix_unref(mk_frame_pix frame); 97 API_EXPORT mk_frame_pix API_CALL mk_frame_pix_from_av_frame(AVFrame *frame); 104 API_EXPORT AVFrame* API_CALL mk_frame_pix_get_av_frame(mk_frame_pix frame); [all …]
|
| H A D | mk_media.h | 36 API_EXPORT mk_media API_CALL mk_media_create(const char *vhost, const char *app, const char *stream, 43 API_EXPORT void API_CALL mk_media_release(mk_media ctx); 50 API_EXPORT void API_CALL mk_media_init_track(mk_media ctx, mk_track track); 65 API_EXPORT int API_CALL mk_media_init_video(mk_media ctx, int codec_id, int width, int height, floa… 76 API_EXPORT int API_CALL mk_media_init_audio(mk_media ctx, int codec_id, int sample_rate, int channe… 84 API_EXPORT void API_CALL mk_media_init_complete(mk_media ctx); 92 API_EXPORT int API_CALL mk_media_input_frame(mk_media ctx, mk_frame frame); 103 API_EXPORT int API_CALL mk_media_input_h264(mk_media ctx, const void *data, int len, uint64_t dts, … 114 API_EXPORT int API_CALL mk_media_input_h265(mk_media ctx, const void *data, int len, uint64_t dts, … 123 API_EXPORT void API_CALL mk_media_input_yuv(mk_media ctx, const char *yuv[3], int linesize[3], uint… [all …]
|
| H A D | mk_common.h | 30 # define API_EXPORT __declspec(dllexport) macro 32 # define API_EXPORT __declspec(dllimport) macro 36 # define API_EXPORT macro 80 API_EXPORT void API_CALL mk_env_init(const mk_config *cfg); 85 API_EXPORT void API_CALL mk_stop_all_server(); 100 API_EXPORT void API_CALL mk_env_init1(int thread_num, 116 API_EXPORT void API_CALL mk_set_log(int file_max_size, int file_max_count); 123 API_EXPORT void API_CALL mk_set_option(const char *key, const char *val); 129 API_EXPORT const char * API_CALL mk_get_option(const char *key); 138 API_EXPORT uint16_t API_CALL mk_http_server_start(uint16_t port, int ssl); [all …]
|
| H A D | mk_track.h | 46 API_EXPORT mk_track API_CALL mk_track_create(int codec_id, codec_args *args); 52 API_EXPORT void API_CALL mk_track_unref(mk_track track); 59 API_EXPORT mk_track API_CALL mk_track_ref(mk_track track); 64 API_EXPORT int API_CALL mk_track_codec_id(mk_track track); 69 API_EXPORT const char* API_CALL mk_track_codec_name(mk_track track); 74 API_EXPORT int API_CALL mk_track_bit_rate(mk_track track); 82 API_EXPORT void *API_CALL mk_track_add_delegate(mk_track track, on_mk_frame_out cb, void *user_data… 89 API_EXPORT void API_CALL mk_track_del_delegate(mk_track track, void *tag); 94 API_EXPORT void API_CALL mk_track_input_frame(mk_track track, mk_frame frame); 99 API_EXPORT int API_CALL mk_track_is_video(mk_track track); [all …]
|
| H A D | mk_httpclient.h | 37 API_EXPORT mk_http_downloader API_CALL mk_http_downloader_create(); 43 API_EXPORT void API_CALL mk_http_downloader_release(mk_http_downloader ctx); 53 API_EXPORT void API_CALL mk_http_downloader_start(mk_http_downloader ctx, const char *url, const ch… 75 API_EXPORT mk_http_requester API_CALL mk_http_requester_create(); 80 API_EXPORT void API_CALL mk_http_requester_clear(mk_http_requester ctx); 87 API_EXPORT void API_CALL mk_http_requester_release(mk_http_requester ctx); 92 API_EXPORT void API_CALL mk_http_requester_set_method(mk_http_requester ctx,const char *method); 98 API_EXPORT void API_CALL mk_http_requester_set_header(mk_http_requester ctx, const char *header[]); 106 API_EXPORT void API_CALL mk_http_requester_add_header(mk_http_requester ctx,const char *key,const c… 112 API_EXPORT void API_CALL mk_http_requester_set_body(mk_http_requester ctx, mk_http_body body); [all …]
|
| H A D | mk_thread.h | 30 API_EXPORT mk_thread API_CALL mk_thread_from_tcp_session(mk_tcp_session ctx); 37 API_EXPORT mk_thread API_CALL mk_thread_from_tcp_client(mk_tcp_client ctx); 45 API_EXPORT mk_thread API_CALL mk_thread_from_pool(); 53 API_EXPORT mk_thread API_CALL mk_thread_from_pool_work(); 64 API_EXPORT mk_thread_pool API_CALL mk_thread_pool_create(const char *name, size_t n_thread, int pri… 71 API_EXPORT int API_CALL mk_thread_pool_release(mk_thread_pool pool); 78 API_EXPORT mk_thread API_CALL mk_thread_from_thread_pool(mk_thread_pool pool); 89 API_EXPORT void API_CALL mk_async_do(mk_thread ctx, on_mk_async cb, void *user_data); 98 API_EXPORT void API_CALL mk_async_do_delay(mk_thread ctx, size_t ms, on_mk_async cb, void *user_dat… 106 API_EXPORT void API_CALL mk_sync_do(mk_thread ctx, on_mk_async cb, void *user_data); [all …]
|
| H A D | mk_player.h | 39 API_EXPORT mk_player API_CALL mk_player_create(); 45 API_EXPORT void API_CALL mk_player_release(mk_player ctx); 53 API_EXPORT void API_CALL mk_player_set_option(mk_player ctx, const char *key, const char *val); 60 API_EXPORT void API_CALL mk_player_play(mk_player ctx, const char *url); 67 API_EXPORT void API_CALL mk_player_pause(mk_player ctx, int pause); 74 API_EXPORT void API_CALL mk_player_speed(mk_player ctx, float speed); 81 API_EXPORT void API_CALL mk_player_seekto(mk_player ctx, float progress); 88 API_EXPORT void API_CALL mk_player_seekto_pos(mk_player ctx, int seek_pos); 96 API_EXPORT void API_CALL mk_player_set_on_result(mk_player ctx, on_mk_play_event cb, void *user_dat… 104 API_EXPORT void API_CALL mk_player_set_on_shutdown(mk_player ctx, on_mk_play_event cb, void *user_d… [all …]
|
| H A D | mk_pusher.h | 42 API_EXPORT mk_pusher API_CALL mk_pusher_create(const char *schema,const char *vhost,const char *app… 52 API_EXPORT mk_pusher API_CALL mk_pusher_create_src(mk_media_source src); 58 API_EXPORT void API_CALL mk_pusher_release(mk_pusher ctx); 66 API_EXPORT void API_CALL mk_pusher_set_option(mk_pusher ctx, const char *key, const char *val); 73 API_EXPORT void API_CALL mk_pusher_publish(mk_pusher ctx,const char *url); 81 API_EXPORT void API_CALL mk_pusher_set_on_result(mk_pusher ctx, on_mk_push_event cb, void *user_dat… 89 API_EXPORT void API_CALL mk_pusher_set_on_shutdown(mk_pusher ctx, on_mk_push_event cb, void *user_d…
|
| H A D | mk_recorder.h | 28 API_EXPORT mk_flv_recorder API_CALL mk_flv_recorder_create(); 34 API_EXPORT void API_CALL mk_flv_recorder_release(mk_flv_recorder ctx); 45 API_EXPORT int API_CALL mk_flv_recorder_start(mk_flv_recorder ctx, const char *vhost, const char *a… 57 API_EXPORT int API_CALL mk_recorder_is_recording(int type, const char *vhost, const char *app, cons… 69 API_EXPORT int API_CALL mk_recorder_start(int type, const char *vhost, const char *app, const char … 79 API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char *app, const char *…
|
| H A D | mk_proxyplayer.h | 32 API_EXPORT mk_proxy_player API_CALL mk_proxy_player_create(const char *vhost, const char *app, cons… 38 API_EXPORT void API_CALL mk_proxy_player_release(mk_proxy_player ctx); 46 API_EXPORT void API_CALL mk_proxy_player_set_option(mk_proxy_player ctx, const char *key, const cha… 53 API_EXPORT void API_CALL mk_proxy_player_play(mk_proxy_player ctx, const char *url); 72 API_EXPORT void API_CALL mk_proxy_player_set_on_close(mk_proxy_player ctx, on_mk_proxy_player_close… 79 API_EXPORT int API_CALL mk_proxy_player_total_reader_count(mk_proxy_player ctx);
|
| H A D | mk_util.h | 25 API_EXPORT char* API_CALL mk_util_get_exe_path(); 32 API_EXPORT char* API_CALL mk_util_get_exe_dir(const char *relative_path); 38 API_EXPORT uint64_t API_CALL mk_util_get_current_millisecond(); 45 API_EXPORT char* API_CALL mk_util_get_current_time_string(const char *fmt); 53 API_EXPORT char* API_CALL mk_util_hex_dump(const void *buf, int len); 65 API_EXPORT void API_CALL mk_log_printf(int level, const char *file, const char *function, int line,…
|
| H A D | mk_export.h | 6 # define API_EXPORT macro 9 # ifndef API_EXPORT 12 # define API_EXPORT __attribute__((visibility("default"))) macro 15 # define API_EXPORT __attribute__((visibility("default"))) macro 29 # define MK_API_DEPRECATED_EXPORT API_EXPORT MK_API_DEPRECATED
|
| H A D | mk_rtp_server.h | 26 API_EXPORT mk_rtp_server API_CALL mk_rtp_server_create(uint16_t port, int tcp_mode, const char *str… 42 API_EXPORT void API_CALL mk_rtp_server_connect(mk_rtp_server ctx, const char *dst_url, uint16_t dst… 48 API_EXPORT void API_CALL mk_rtp_server_release(mk_rtp_server ctx); 55 API_EXPORT uint16_t API_CALL mk_rtp_server_port(mk_rtp_server ctx); 69 API_EXPORT void API_CALL mk_rtp_server_set_on_detach(mk_rtp_server ctx, on_mk_rtp_server_detach cb,…
|
| H A D | mk_h264_splitter.h | 37 API_EXPORT mk_h264_splitter API_CALL mk_h264_splitter_create(on_mk_h264_splitter_frame cb, void *us… 43 API_EXPORT void API_CALL mk_h264_splitter_release(mk_h264_splitter ctx); 51 API_EXPORT void API_CALL mk_h264_splitter_input_data(mk_h264_splitter ctx, const char *data, int si…
|
| H A D | mk_events.h | 176 API_EXPORT void API_CALL mk_events_listen(const mk_events *events);
|