Skip to content

Commit cac5c37

Browse files
committed
Remove PixelProperties::isPseudoPaletted() function
1 parent e35eb45 commit cac5c37

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/AvTranscoder/properties/PixelProperties.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,11 @@ bool PixelProperties::isRgbPixelData() const
204204
return (_pixelDesc->flags & AV_PIX_FMT_FLAG_RGB) == AV_PIX_FMT_FLAG_RGB;
205205
}
206206

207-
#if LIBAVCODEC_VERSION_MAJOR > 58
208207
bool PixelProperties::isPaletted() const {
209208
if (!_pixelDesc)
210209
throw std::runtime_error("unable to find pixel description.");
211210

212211
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
222212
}
223213

224214
std::vector<Channel> PixelProperties::getChannels() const

src/AvTranscoder/properties/PixelProperties.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ class AvExport PixelProperties
7171
bool isBitWisePacked() const;
7272
bool isHardwareAccelerated() const;
7373
bool isRgbPixelData() const;
74-
#if LIBAVCODEC_VERSION_MAJOR > 58
7574
bool isPaletted() const;
76-
#else
77-
bool isPseudoPaletted() const;
78-
#endif
7975

8076
std::vector<Channel> getChannels() const;
8177

0 commit comments

Comments
 (0)