live
liveMedia
include
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-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
25
#include "
H264or5VideoFileSink.hh
"
26
#endif
27
28
class
H264VideoFileSink
:
public
H264or5VideoFileSink
{
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
:
40
H264VideoFileSink
(
UsageEnvironment
& env, FILE* fid,
41
char
const
* sPropParameterSetsStr,
42
unsigned
bufferSize,
char
const
* perFrameFileNamePrefix);
43
// called only by createNew()
44
virtual
~H264VideoFileSink
();
45
};
46
47
#endif
False
const Boolean False
Definition:
Boolean.hh:28
Boolean
unsigned char Boolean
Definition:
Boolean.hh:25
H264or5VideoFileSink.hh
NULL
#define NULL
Definition:
UsageEnvironment.hh:41
H264VideoFileSink
Definition:
H264VideoFileSink.hh:28
H264VideoFileSink::createNew
static H264VideoFileSink * createNew(UsageEnvironment &env, char const *fileName, char const *sPropParameterSetsStr=NULL, unsigned bufferSize=100000, Boolean oneFilePerFrame=False)
H264VideoFileSink::H264VideoFileSink
H264VideoFileSink(UsageEnvironment &env, FILE *fid, char const *sPropParameterSetsStr, unsigned bufferSize, char const *perFrameFileNamePrefix)
H264VideoFileSink::~H264VideoFileSink
virtual ~H264VideoFileSink()
H264or5VideoFileSink
Definition:
H264or5VideoFileSink.hh:28
UsageEnvironment
Definition:
UsageEnvironment.hh:53
Generated on Tue Jun 25 2024 22:52:35 for live by
1.9.5