live
H264VideoFileSink.hh
Go to the documentation of this file.
1 /**********
2 This library is free software; you can redistribute it and/or modify it under
3 the terms of the GNU Lesser General Public License as published by the
4 Free Software Foundation; either version 3 of the License, or (at your
5 option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
6 
7 This library is distributed in the hope that it will be useful, but WITHOUT
8 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
10 more details.
11 
12 You should have received a copy of the GNU Lesser General Public License
13 along with this library; if not, write to the Free Software Foundation, Inc.,
14 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 **********/
16 // "liveMedia"
17 // Copyright (c) 1996-2021 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
25 #include "H264or5VideoFileSink.hh"
26 #endif
27 
29 public:
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 
39 protected:
41  char const* sPropParameterSetsStr,
42  unsigned bufferSize, char const* perFrameFileNamePrefix);
43  // called only by createNew()
44  virtual ~H264VideoFileSink();
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()