live
H264VideoFileSink.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// H.264 Video File Sinks
19// C++ header
20
21#ifndef _H264_VIDEO_FILE_SINK_HH
22#define _H264_VIDEO_FILE_SINK_HH
23
24#ifndef _H264_OR_5_VIDEO_FILE_SINK_HH
26#endif
27
29public:
30 static H264VideoFileSink* createNew(UsageEnvironment& env, char const* fileName,
31 char const* sPropParameterSetsStr = NULL,
32 // "sPropParameterSetsStr" is an optional 'SDP format' string
33 // (comma-separated Base64-encoded) representing SPS and/or PPS NAL-units
34 // to prepend to the output
35 unsigned bufferSize = 100000,
36 Boolean oneFilePerFrame = False);
37 // See "FileSink.hh" for a description of these parameters.
38
39protected:
41 char const* sPropParameterSetsStr,
42 unsigned bufferSize, char const* perFrameFileNamePrefix);
43 // called only by createNew()
45};
46
47#endif
const Boolean False
Definition: Boolean.hh:28
unsigned char Boolean
Definition: Boolean.hh:25
#define NULL
static H264VideoFileSink * createNew(UsageEnvironment &env, char const *fileName, char const *sPropParameterSetsStr=NULL, unsigned bufferSize=100000, Boolean oneFilePerFrame=False)
H264VideoFileSink(UsageEnvironment &env, FILE *fid, char const *sPropParameterSetsStr, unsigned bufferSize, char const *perFrameFileNamePrefix)
virtual ~H264VideoFileSink()