live
MPEG4VideoStreamFramer.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// A filter that breaks up an MPEG-4 video elementary stream into
19// frames for:
20// - Visual Object Sequence (VS) Header + Visual Object (VO) Header
21// + Video Object Layer (VOL) Header
22// - Group of VOP (GOV) Header
23// - VOP frame
24// C++ header
25
26#ifndef _MPEG4_VIDEO_STREAM_FRAMER_HH
27#define _MPEG4_VIDEO_STREAM_FRAMER_HH
28
29#ifndef _MPEG_VIDEO_STREAM_FRAMER_HH
31#endif
32
34public:
37
40 }
41
42 unsigned char* getConfigBytes(unsigned& numBytes) const;
43
44 void setConfigInfo(u_int8_t profileAndLevelIndication, char const* configStr);
45 // Assigns the "profile_and_level_indication" number, and the 'config' bytes.
46 // If this function is not called, then this data is only assigned later, when it appears in the input stream.
47
48protected:
51 Boolean createParser = True);
52 // called only by createNew(), or by subclass constructors
54
56 void appendToNewConfig(unsigned char* newConfigBytes,
57 unsigned numNewBytes);
59
60private:
61 // redefined virtual functions:
63
64protected:
66 unsigned char* fConfigBytes;
68
69private:
70 unsigned char* fNewConfigBytes;
72 friend class MPEG4VideoStreamParser; // hack
73};
74
75#endif
const Boolean True
Definition: Boolean.hh:31
unsigned char Boolean
Definition: Boolean.hh:25
FramedSource * inputSource() const
Definition: FramedFilter.hh:30
virtual ~MPEG4VideoStreamFramer()
virtual Boolean isMPEG4VideoStreamFramer() const
unsigned char * getConfigBytes(unsigned &numBytes) const
void setConfigInfo(u_int8_t profileAndLevelIndication, char const *configStr)
MPEG4VideoStreamFramer(UsageEnvironment &env, FramedSource *inputSource, Boolean createParser=True)
u_int8_t profile_and_level_indication() const
void appendToNewConfig(unsigned char *newConfigBytes, unsigned numNewBytes)
static MPEG4VideoStreamFramer * createNew(UsageEnvironment &env, FramedSource *inputSource)