Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline
- void elxLuminocity(const PixelRGBus& iPixel,
- LuminanceCell< PixelRGBus >& oCell)
- {
- oCell._luminance = uint16(0.2220f*iPixel._red +
- 0.7067f*iPixel._blue +
- 0.0713f*iPixel._green);
- oCell._pixel = iPixel;
- }
- inline
- void elxLuminocity(const PixelRGBi& iPixel,
- LuminanceCell< PixelRGBi >& oCell)
- {
- oCell._luminance = 2220*iPixel._red +
- 7067*iPixel._blue +
- 0713*iPixel._green; <<<---
- oCell._pixel = iPixel;
- }
- This suspicious code was found in eLynxSDK project by PVS-Studio static code analyzer.
- Warning message is:
- V536 Be advised that the utilized constant value is represented by an octal form. Oct: 0713, Dec: 459. IFF plugins pixelservices.inl 146
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement