mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
优化代码结构
This commit is contained in:
37
src/Rtp/ProcessInterface.h
Normal file
37
src/Rtp/ProcessInterface.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
||||
*
|
||||
* This file is part of ZLMediaKit(https://github.com/xiongziliang/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_PROCESSINTERFACE_H
|
||||
#define ZLMEDIAKIT_PROCESSINTERFACE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <memory>
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
class ProcessInterface {
|
||||
public:
|
||||
using Ptr = std::shared_ptr<ProcessInterface>;
|
||||
ProcessInterface() = default;
|
||||
virtual ~ProcessInterface() = default;
|
||||
|
||||
/**
|
||||
* 输入rtp
|
||||
* @param is_udp 是否为udp模式
|
||||
* @param data rtp数据指针
|
||||
* @param data_len rtp数据长度
|
||||
* @return 是否解析成功
|
||||
*/
|
||||
virtual bool inputRtp(bool is_udp, const char *data, int data_len) = 0;
|
||||
};
|
||||
|
||||
}//namespace mediakit
|
||||
#endif //ZLMEDIAKIT_PROCESSINTERFACE_H
|
||||
Reference in New Issue
Block a user