ZLMediaKit/api/include/mk_h264_splitter.h

57 lines
1.5 KiB
C++
Raw Permalink Normal View History

/*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contributing project authors
* may be found in the AUTHORS file in the root of the source tree.
*/
#ifndef ZLMEDIAKIT_MK_H264_SPLITTER_H
#define ZLMEDIAKIT_MK_H264_SPLITTER_H
#include "mk_common.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void *mk_h264_splitter;
/**
* h264
* @param user_data
* @param splitter
* @param frame
* @param size
*/
typedef void(API_CALL *on_mk_h264_splitter_frame)(void *user_data, mk_h264_splitter splitter, const char *frame, int size);
/**
* h264分帧器
* @param cb
* @param user_data
* @return
*/
API_EXPORT mk_h264_splitter API_CALL mk_h264_splitter_create(on_mk_h264_splitter_frame cb, void *user_data);
/**
* h264分帧器
* @param ctx
*/
API_EXPORT void API_CALL mk_h264_splitter_release(mk_h264_splitter ctx);
/**
*
* @param ctx
* @param data h264/h265数据
* @param size
*/
API_EXPORT void API_CALL mk_h264_splitter_input_data(mk_h264_splitter ctx, const char *data, int size);
#ifdef __cplusplus
}
#endif
#endif //ZLMEDIAKIT_MK_H264_SPLITTER_H