mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-26 03:42:21 +08:00
AI automatically translates all comments in the code into English (#3917)
This commit is contained in:
@@ -18,6 +18,9 @@ namespace mediakit{
|
||||
|
||||
/**
|
||||
* 通用 rtp解码类
|
||||
* Generic rtp decoder class
|
||||
|
||||
* [AUTO-TRANSLATED:41b57089]
|
||||
*/
|
||||
class CommonRtpDecoder : public RtpCodec {
|
||||
public:
|
||||
@@ -27,6 +30,11 @@ public:
|
||||
* 构造函数
|
||||
* @param codec 编码id
|
||||
* @param max_frame_size 允许的最大帧大小
|
||||
* Constructor
|
||||
* @param codec codec id
|
||||
* @param max_frame_size maximum allowed frame size
|
||||
|
||||
* [AUTO-TRANSLATED:c6b0414f]
|
||||
*/
|
||||
CommonRtpDecoder(CodecId codec, size_t max_frame_size = 2 * 1024);
|
||||
|
||||
@@ -34,6 +42,11 @@ public:
|
||||
* 输入rtp并解码
|
||||
* @param rtp rtp数据包
|
||||
* @param key_pos 此参数内部强制转换为false,请忽略之
|
||||
* Input rtp and decode
|
||||
* @param rtp rtp data packet
|
||||
* @param key_pos This parameter is internally forced to false, please ignore it
|
||||
|
||||
* [AUTO-TRANSLATED:2993fcbe]
|
||||
*/
|
||||
bool inputRtp(const RtpPacket::Ptr &rtp, bool key_pos = false) override;
|
||||
|
||||
@@ -51,6 +64,9 @@ private:
|
||||
|
||||
/**
|
||||
* 通用 rtp编码类
|
||||
* Generic rtp encoder class
|
||||
|
||||
* [AUTO-TRANSLATED:bb3991a5]
|
||||
*/
|
||||
class CommonRtpEncoder : public RtpCodec {
|
||||
public:
|
||||
@@ -58,6 +74,10 @@ public:
|
||||
|
||||
/**
|
||||
* 输入帧数据并编码成rtp
|
||||
* Input frame data and encode into rtp
|
||||
|
||||
|
||||
* [AUTO-TRANSLATED:02bc9009]
|
||||
*/
|
||||
bool inputFrame(const Frame::Ptr &frame) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user