Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/imgcodecs/src/exif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void ExifReader::parseExif()
*
* @return INTEL, MOTO or NONE
*/
Endianess_t ExifReader::getFormat() const
Endianness_t ExifReader::getFormat() const
{
if (m_data.size() < 1)
return NONE;
Expand Down
6 changes: 3 additions & 3 deletions modules/imgcodecs/src/exif.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ enum ExifTagName
INVALID_TAG = 0xFFFF ///< Shows that the tag was not recognized
};

enum Endianess_t
enum Endianness_t
{
INTEL = 0x49,
MOTO = 0x4D,
Expand Down Expand Up @@ -179,7 +179,7 @@ class ExifReader
private:
std::vector<unsigned char> m_data;
std::map<int, ExifEntry_t > m_exif;
Endianess_t m_format;
Endianness_t m_format;

void parseExif();
bool checkTagMark() const;
Expand All @@ -193,7 +193,7 @@ class ExifReader
uint16_t getResolutionUnit( const size_t offset ) const;
uint16_t getYCbCrPos( const size_t offset ) const;

Endianess_t getFormat() const;
Endianness_t getFormat() const;

ExifEntry_t parseExifEntry( const size_t offset );

Expand Down
4 changes: 2 additions & 2 deletions modules/imgcodecs/src/grfmt_pfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bool is_byte_order_swapped(double scale)
#endif
}

void swap_endianess(uint32_t& ui)
void swap_endianness(uint32_t& ui)
{
static const uint32_t A(0x000000ffU);
static const uint32_t B(0x0000ff00U);
Expand Down Expand Up @@ -137,7 +137,7 @@ bool PFMDecoder::readData(Mat& mat)
for (int i = 0; i < m_width * buffer.channels(); ++i) {
static_assert( sizeof(uint32_t) == sizeof(float),
"uint32_t and float must have same size." );
swap_endianess(buffer.ptr<uint32_t>(y)[i]);
swap_endianness(buffer.ptr<uint32_t>(y)[i]);
}
}
}
Expand Down