mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Fix: 6 typos
Signed-off-by: Michael Seibt <github@roboschmie.de>
This commit is contained in:
parent
fc34554475
commit
8f4dbdad0e
@ -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;
|
||||
|
@ -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,
|
||||
@ -179,7 +179,7 @@ public:
|
||||
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;
|
||||
@ -193,7 +193,7 @@ private:
|
||||
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 );
|
||||
|
||||
|
@ -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);
|
||||
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user