mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Merge pull request #25269 from RoboSchmied:RoboSchmied-AGfixT56
Fix 6 typos
This commit is contained in:
commit
f36dbef74e
@ -165,7 +165,7 @@ void ExifReader::parseExif()
|
|||||||
*
|
*
|
||||||
* @return INTEL, MOTO or NONE
|
* @return INTEL, MOTO or NONE
|
||||||
*/
|
*/
|
||||||
Endianess_t ExifReader::getFormat() const
|
Endianness_t ExifReader::getFormat() const
|
||||||
{
|
{
|
||||||
if (m_data.size() < 1)
|
if (m_data.size() < 1)
|
||||||
return NONE;
|
return NONE;
|
||||||
|
@ -79,7 +79,7 @@ enum ExifTagName
|
|||||||
INVALID_TAG = 0xFFFF ///< Shows that the tag was not recognized
|
INVALID_TAG = 0xFFFF ///< Shows that the tag was not recognized
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Endianess_t
|
enum Endianness_t
|
||||||
{
|
{
|
||||||
INTEL = 0x49,
|
INTEL = 0x49,
|
||||||
MOTO = 0x4D,
|
MOTO = 0x4D,
|
||||||
@ -179,7 +179,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::vector<unsigned char> m_data;
|
std::vector<unsigned char> m_data;
|
||||||
std::map<int, ExifEntry_t > m_exif;
|
std::map<int, ExifEntry_t > m_exif;
|
||||||
Endianess_t m_format;
|
Endianness_t m_format;
|
||||||
|
|
||||||
void parseExif();
|
void parseExif();
|
||||||
bool checkTagMark() const;
|
bool checkTagMark() const;
|
||||||
@ -193,7 +193,7 @@ private:
|
|||||||
uint16_t getResolutionUnit( const size_t offset ) const;
|
uint16_t getResolutionUnit( const size_t offset ) const;
|
||||||
uint16_t getYCbCrPos( 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 );
|
ExifEntry_t parseExifEntry( const size_t offset );
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ bool is_byte_order_swapped(double scale)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void swap_endianess(uint32_t& ui)
|
void swap_endianness(uint32_t& ui)
|
||||||
{
|
{
|
||||||
static const uint32_t A(0x000000ffU);
|
static const uint32_t A(0x000000ffU);
|
||||||
static const uint32_t B(0x0000ff00U);
|
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) {
|
for (int i = 0; i < m_width * buffer.channels(); ++i) {
|
||||||
static_assert( sizeof(uint32_t) == sizeof(float),
|
static_assert( sizeof(uint32_t) == sizeof(float),
|
||||||
"uint32_t and float must have same size." );
|
"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