Skip to content

Commit 8321943

Browse files
author
Clement Champetier
committed
VideoFrameDesc: remove unused attributes _dar, _interlaced, _topFieldFirst
1 parent 802f1f3 commit 8321943

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/AvTranscoder/frame/VideoFrame.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,17 @@ class AvExport VideoFrameDesc
2222
: _width( width )
2323
, _height( height )
2424
, _pixelFormat( pixelFormat )
25-
, _interlaced( false )
26-
, _topFieldFirst( false )
2725
{
28-
_displayAspectRatio.num = width;
29-
_displayAspectRatio.den = height;
3026
}
3127
VideoFrameDesc( const size_t width, const size_t height, const std::string& pixelFormat )
3228
: _width( width )
3329
, _height( height )
3430
, _pixelFormat( av_get_pix_fmt( pixelFormat.c_str() ) )
35-
, _interlaced( false )
36-
, _topFieldFirst( false )
3731
{
38-
_displayAspectRatio.num = width;
39-
_displayAspectRatio.den = height;
4032
}
4133

4234
size_t getWidth () const { return _width; }
4335
size_t getHeight() const { return _height; }
44-
Rational getDar() const { return _displayAspectRatio; }
45-
int getDarNum() const { return _displayAspectRatio.num; }
46-
int getDarDen() const { return _displayAspectRatio.den; }
4736
AVPixelFormat getPixelFormat() const { return _pixelFormat; }
4837
std::string getPixelFormatName() const
4938
{
@@ -67,8 +56,6 @@ class AvExport VideoFrameDesc
6756
void setHeight( const size_t height ) { _height = height; }
6857
void setPixelFormat( const std::string& pixelFormat ) { _pixelFormat = av_get_pix_fmt( pixelFormat.c_str() ); }
6958
void setPixelFormat( const AVPixelFormat pixelFormat ) { _pixelFormat = pixelFormat; }
70-
void setDar( const size_t num, const size_t den ) { _displayAspectRatio.num = num; _displayAspectRatio.den = den; }
71-
void setDar( const Rational& ratio ) { _displayAspectRatio = ratio; }
7259

7360
void setParameters( const ProfileLoader::Profile& profile )
7461
{
@@ -79,10 +66,7 @@ class AvExport VideoFrameDesc
7966
private:
8067
size_t _width;
8168
size_t _height;
82-
Rational _displayAspectRatio;
8369
AVPixelFormat _pixelFormat;
84-
bool _interlaced;
85-
bool _topFieldFirst;
8670
};
8771

8872
//template< template<typename> Alloc >

0 commit comments

Comments
 (0)