live
H264or5VideoRTPSink.hh
Go to the documentation of this file.
1/**********
2This library is free software; you can redistribute it and/or modify it under
3the terms of the GNU Lesser General Public License as published by the
4Free Software Foundation; either version 3 of the License, or (at your
5option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
6
7This library is distributed in the hope that it will be useful, but WITHOUT
8ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
10more details.
11
12You should have received a copy of the GNU Lesser General Public License
13along with this library; if not, write to the Free Software Foundation, Inc.,
1451 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15**********/
16// "liveMedia"
17// Copyright (c) 1996-2024 Live Networks, Inc. All rights reserved.
18// RTP sink for H.264 or H.265 video
19// C++ header
20
21#ifndef _H264_OR_5_VIDEO_RTP_SINK_HH
22#define _H264_OR_5_VIDEO_RTP_SINK_HH
23
24#ifndef _VIDEO_RTP_SINK_HH
25#include "VideoRTPSink.hh"
26#endif
27#ifndef _FRAMED_FILTER_HH
28#include "FramedFilter.hh"
29#endif
30
32protected:
33 H264or5VideoRTPSink(int hNumber, // 264 or 265
34 UsageEnvironment& env, Groupsock* RTPgs, unsigned char rtpPayloadFormat,
35 u_int8_t const* vps = NULL, unsigned vpsSize = 0,
36 u_int8_t const* sps = NULL, unsigned spsSize = 0,
37 u_int8_t const* pps = NULL, unsigned ppsSize = 0);
38 // we're an abstrace base class
40
41private: // redefined virtual functions:
43 virtual void doSpecialFrameHandling(unsigned fragmentationOffset,
44 unsigned char* frameStart,
45 unsigned numBytesInFrame,
46 struct timeval framePresentationTime,
47 unsigned numRemainingBytes);
48 virtual Boolean frameCanAppearAfterPacketStart(unsigned char const* frameStart,
49 unsigned numBytesInFrame) const;
50
51protected:
55 u_int8_t* fVPS; unsigned fVPSSize;
56 u_int8_t* fSPS; unsigned fSPSSize;
57 u_int8_t* fPPS; unsigned fPPSSize;
58};
59
60#endif
unsigned char Boolean
Definition: Boolean.hh:25
#define NULL
H264or5VideoRTPSink(int hNumber, UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, u_int8_t const *vps=NULL, unsigned vpsSize=0, u_int8_t const *sps=NULL, unsigned spsSize=0, u_int8_t const *pps=NULL, unsigned ppsSize=0)
virtual void doSpecialFrameHandling(unsigned fragmentationOffset, unsigned char *frameStart, unsigned numBytesInFrame, struct timeval framePresentationTime, unsigned numRemainingBytes)
virtual Boolean continuePlaying()
FramedFilter * fOurFragmenter
virtual Boolean frameCanAppearAfterPacketStart(unsigned char const *frameStart, unsigned numBytesInFrame) const
virtual ~H264or5VideoRTPSink()