mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
32 lines
640 B
C++
32 lines
640 B
C++
/*
|
|
* @Author: DI JUNKUN
|
|
* @Date: 2025-01-23
|
|
* Copyright (c) 2025 by DI JUNKUN, All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef _RTP_PACKET_H264_H_
|
|
#define _RTP_PACKET_H264_H_
|
|
|
|
#include "rtp_packet.h"
|
|
|
|
class RtpPacketH264 : public RtpPacket {
|
|
public:
|
|
RtpPacketH264();
|
|
virtual ~RtpPacketH264();
|
|
|
|
public:
|
|
bool GetFrameHeaderInfo();
|
|
// NAL
|
|
rtp::NAL_UNIT_TYPE NalUnitType() {
|
|
return rtp::NAL_UNIT_TYPE(fu_indicator_.nal_unit_type);
|
|
}
|
|
bool FuAStart() { return fu_header_.start; }
|
|
bool FuAEnd() { return fu_header_.end; }
|
|
|
|
private:
|
|
rtp::FU_INDICATOR fu_indicator_;
|
|
rtp::FU_HEADER fu_header_;
|
|
bool fu_info_got_ = false;
|
|
};
|
|
|
|
#endif |