@@ -22,28 +22,17 @@ class AvExport VideoFrameDesc
22
22
: _width( width )
23
23
, _height( height )
24
24
, _pixelFormat( pixelFormat )
25
- , _interlaced( false )
26
- , _topFieldFirst( false )
27
25
{
28
- _displayAspectRatio.num = width;
29
- _displayAspectRatio.den = height;
30
26
}
31
27
VideoFrameDesc ( const size_t width, const size_t height, const std::string& pixelFormat )
32
28
: _width( width )
33
29
, _height( height )
34
30
, _pixelFormat( av_get_pix_fmt( pixelFormat.c_str() ) )
35
- , _interlaced( false )
36
- , _topFieldFirst( false )
37
31
{
38
- _displayAspectRatio.num = width;
39
- _displayAspectRatio.den = height;
40
32
}
41
33
42
34
size_t getWidth () const { return _width; }
43
35
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 ; }
47
36
AVPixelFormat getPixelFormat () const { return _pixelFormat; }
48
37
std::string getPixelFormatName () const
49
38
{
@@ -67,8 +56,6 @@ class AvExport VideoFrameDesc
67
56
void setHeight ( const size_t height ) { _height = height; }
68
57
void setPixelFormat ( const std::string& pixelFormat ) { _pixelFormat = av_get_pix_fmt ( pixelFormat.c_str () ); }
69
58
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; }
72
59
73
60
void setParameters ( const ProfileLoader::Profile& profile )
74
61
{
@@ -79,10 +66,7 @@ class AvExport VideoFrameDesc
79
66
private:
80
67
size_t _width;
81
68
size_t _height;
82
- Rational _displayAspectRatio;
83
69
AVPixelFormat _pixelFormat;
84
- bool _interlaced;
85
- bool _topFieldFirst;
86
70
};
87
71
88
72
// template< template<typename> Alloc >
0 commit comments