@@ -56,19 +56,19 @@ size_t PixelProperties::getBitsPerPixel() const
56
56
return av_get_bits_per_pixel ( _pixelDesc );
57
57
}
58
58
59
- size_t PixelProperties::getMaxBitPerChannel () const
59
+ size_t PixelProperties::getMaxNbBitsInChannels () const
60
60
{
61
61
if ( ! _pixelDesc )
62
62
throw std::runtime_error ( " unable to find pixel description." );
63
63
64
- size_t maxBitPerChannel = 0 ;
64
+ size_t maxNbBitsInChannels = 0 ;
65
65
for ( unsigned int channelIndex = 0 ; channelIndex < _pixelDesc->nb_components ; ++channelIndex )
66
66
{
67
67
const size_t nbBits = _pixelDesc->comp [channelIndex].depth_minus1 + 1 ;
68
- if ( nbBits > maxBitPerChannel )
69
- maxBitPerChannel = nbBits;
68
+ if ( nbBits > maxNbBitsInChannels )
69
+ maxNbBitsInChannels = nbBits;
70
70
}
71
- return maxBitPerChannel ;
71
+ return maxNbBitsInChannels ;
72
72
}
73
73
74
74
size_t PixelProperties::getNbComponents () const
@@ -245,7 +245,7 @@ PropertyVector PixelProperties::getPropertiesAsVector() const
245
245
addProperty ( data, " pixelName" , &PixelProperties::getPixelName );
246
246
addProperty ( data, " pixelFormatName" , &PixelProperties::getPixelFormatName );
247
247
addProperty ( data, " bitDepth" , &PixelProperties::getBitsPerPixel );
248
- addProperty ( data, " maxBitPerChannel " , &PixelProperties::getMaxBitPerChannel );
248
+ addProperty ( data, " maxNbBitsInChannels " , &PixelProperties::getMaxNbBitsInChannels );
249
249
addProperty ( data, " nbComponents" , &PixelProperties::getNbComponents );
250
250
addProperty ( data, " chromaWidth" , &PixelProperties::getChromaWidth );
251
251
addProperty ( data, " chromaHeight" , &PixelProperties::getChromaHeight );
0 commit comments