Skip to content

Commit ee02960

Browse files
author
Clement Champetier
committed
PixelProperties: rename getMaxBitPerChannel to getMaxNbBitsInChannels
1 parent 05ac080 commit ee02960

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/AvTranscoder/mediaProperty/PixelProperties.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ size_t PixelProperties::getBitsPerPixel() const
5656
return av_get_bits_per_pixel( _pixelDesc );
5757
}
5858

59-
size_t PixelProperties::getMaxBitPerChannel() const
59+
size_t PixelProperties::getMaxNbBitsInChannels() const
6060
{
6161
if( ! _pixelDesc )
6262
throw std::runtime_error( "unable to find pixel description." );
6363

64-
size_t maxBitPerChannel = 0;
64+
size_t maxNbBitsInChannels = 0;
6565
for( unsigned int channelIndex = 0; channelIndex < _pixelDesc->nb_components; ++channelIndex )
6666
{
6767
const size_t nbBits = _pixelDesc->comp[channelIndex].depth_minus1 + 1;
68-
if( nbBits > maxBitPerChannel )
69-
maxBitPerChannel = nbBits;
68+
if( nbBits > maxNbBitsInChannels )
69+
maxNbBitsInChannels = nbBits;
7070
}
71-
return maxBitPerChannel;
71+
return maxNbBitsInChannels;
7272
}
7373

7474
size_t PixelProperties::getNbComponents() const
@@ -245,7 +245,7 @@ PropertyVector PixelProperties::getPropertiesAsVector() const
245245
addProperty( data, "pixelName", &PixelProperties::getPixelName );
246246
addProperty( data, "pixelFormatName", &PixelProperties::getPixelFormatName );
247247
addProperty( data, "bitDepth", &PixelProperties::getBitsPerPixel );
248-
addProperty( data, "maxBitPerChannel", &PixelProperties::getMaxBitPerChannel );
248+
addProperty( data, "maxNbBitsInChannels", &PixelProperties::getMaxNbBitsInChannels );
249249
addProperty( data, "nbComponents", &PixelProperties::getNbComponents );
250250
addProperty( data, "chromaWidth", &PixelProperties::getChromaWidth );
251251
addProperty( data, "chromaHeight", &PixelProperties::getChromaHeight );

src/AvTranscoder/mediaProperty/PixelProperties.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AvExport PixelProperties
5656
std::string getPixelFormatName() const;
5757

5858
size_t getBitsPerPixel() const; ///< padding bits are not counted
59-
size_t getMaxBitPerChannel() const;
59+
size_t getMaxNbBitsInChannels() const;
6060
size_t getNbComponents() const;
6161
size_t getChromaWidth() const;
6262
size_t getChromaHeight() const;

0 commit comments

Comments
 (0)