Skip to content

Commit 6e5f044

Browse files
author
Clement Champetier
committed
Pixel: clean constructor from an AVPixelFormat
1 parent 0011865 commit 6e5f044

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/AvTranscoder/frame/Pixel.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,12 @@ Pixel::Pixel( const std::string& avPixelFormat )
1818
}
1919

2020
Pixel::Pixel( const AVPixelFormat avPixelFormat )
21-
: _pixelSize ( 24 )
22-
, _components ( 3 )
23-
, _componentType ( eComponentYuv )
24-
, _subsamplingType ( eSubsamplingNone )
25-
, _endianess ( false )
26-
, _withAlpha ( false )
27-
, _planar ( true )
2821
{
2922
init( avPixelFormat );
3023
}
3124

3225
AVPixelFormat Pixel::findPixel() const
3326
{
34-
//av_register_all();
3527
#if LIBAVUTIL_VERSION_MAJOR > 51
3628
const AVPixFmtDescriptor *pix_desc = NULL;
3729
while( ( pix_desc = av_pix_fmt_desc_next( pix_desc ) ) )

src/AvTranscoder/frame/Pixel.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class AvExport Pixel
4444
{ }
4545

4646
Pixel( const std::string& avPixelFormat );
47-
4847
Pixel( const AVPixelFormat avPixelFormat );
4948

5049
void setBitsPerPixel ( const size_t pixelSize ) { _pixelSize = pixelSize; }

0 commit comments

Comments
 (0)