Skip to content

Commit f8863f0

Browse files
author
Clement Champetier
committed
OutputFile: add documentation
* Also remove unused attribute _packetCount.
1 parent 2abc652 commit f8863f0

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ namespace avtranscoder
1515
{
1616

1717
OutputFile::OutputFile( const std::string& filename )
18-
: _outputFormat ( NULL )
19-
, _formatContext ( NULL )
18+
: _formatContext ( NULL )
19+
, _outputFormat ( NULL )
2020
, _stream ( NULL )
2121
, _filename ( filename )
22-
, _packetCount ( 0 )
2322
, _previousProcessedStreamDuration( 0.0 )
2423
, _verbose ( false )
2524
{
@@ -194,7 +193,6 @@ IOutputStream::EWrappingStatus OutputFile::wrap( const CodedData& data, const si
194193

195194
_previousProcessedStreamDuration = currentStreamDuration;
196195

197-
_packetCount++;
198196
_frameCount.at( streamId )++;
199197
return IOutputStream::eWrappingSuccess;
200198
}

src/AvTranscoder/file/OutputFile.hpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,18 @@ class AvExport OutputFile
113113
virtual double getProgressDuration();
114114

115115
private:
116-
std::vector<AvOutputStream*> _outputStreams;
117-
AVOutputFormat* _outputFormat;
118-
AVFormatContext* _formatContext;
119-
116+
std::vector<AvOutputStream*> _outputStreams; ///< Has ownership
117+
AVFormatContext* _formatContext; ///< Has ownership
118+
AVOutputFormat* _outputFormat; ///< Output format (has link, no ownership)
120119
AVStream* _stream;
121120

122-
std::vector<size_t> _frameCount;
121+
std::vector<size_t> _frameCount; ///< Number of wrapped frames
123122

124-
std::string _filename;
123+
std::string _filename; ///< Output filename
125124

126-
size_t _packetCount;
127-
128-
double _previousProcessedStreamDuration;
125+
double _previousProcessedStreamDuration; ///< To manage process streams order
129126

130-
bool _verbose;
127+
bool _verbose;
131128
};
132129

133130
}

0 commit comments

Comments
 (0)