File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
src/AvTranscoder/properties Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -204,21 +204,11 @@ bool PixelProperties::isRgbPixelData() const
204
204
return (_pixelDesc->flags & AV_PIX_FMT_FLAG_RGB) == AV_PIX_FMT_FLAG_RGB;
205
205
}
206
206
207
- #if LIBAVCODEC_VERSION_MAJOR > 58
208
207
bool PixelProperties::isPaletted () const {
209
208
if (!_pixelDesc)
210
209
throw std::runtime_error (" unable to find pixel description." );
211
210
212
211
return (_pixelDesc->flags & AV_PIX_FMT_FLAG_PAL) == AV_PIX_FMT_FLAG_PAL;
213
- #elif LIBAVCODEC_VERSION_MAJOR > 53
214
- bool PixelProperties::isPseudoPaletted () const {
215
- if (!_pixelDesc)
216
- throw std::runtime_error (" unable to find pixel description." );
217
-
218
- return (_pixelDesc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) == AV_PIX_FMT_FLAG_PSEUDOPAL;
219
- #else
220
- return false ;
221
- #endif
222
212
}
223
213
224
214
std::vector<Channel> PixelProperties::getChannels () const
Original file line number Diff line number Diff line change @@ -71,11 +71,7 @@ class AvExport PixelProperties
71
71
bool isBitWisePacked () const ;
72
72
bool isHardwareAccelerated () const ;
73
73
bool isRgbPixelData () const ;
74
- #if LIBAVCODEC_VERSION_MAJOR > 58
75
74
bool isPaletted () const ;
76
- #else
77
- bool isPseudoPaletted () const ;
78
- #endif
79
75
80
76
std::vector<Channel> getChannels () const ;
81
77
You can’t perform that action at this time.
0 commit comments