mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Cleanup.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace bimg
|
||||
, void* _dst
|
||||
, uint32_t _width
|
||||
, uint32_t _height
|
||||
, uint32_t _pitch
|
||||
, uint32_t _srcPitch
|
||||
, float _edge
|
||||
, const void* _src
|
||||
);
|
||||
|
||||
@@ -236,7 +236,7 @@ namespace bimg
|
||||
return max(min(_val, _max), _min);
|
||||
}
|
||||
|
||||
void imageMakeDist(bx::AllocatorI* _allocator, void* _dst, uint32_t _width, uint32_t _height, uint32_t _pitch, float _edge, const void* _src)
|
||||
void imageMakeDist(bx::AllocatorI* _allocator, void* _dst, uint32_t _width, uint32_t _height, uint32_t _srcPitch, float _edge, const void* _src)
|
||||
{
|
||||
const uint32_t numPixels = _width*_height;
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace bimg
|
||||
|
||||
for (uint32_t yy = 0; yy < _height; ++yy)
|
||||
{
|
||||
const uint8_t* src = (const uint8_t*)_src + yy*_pitch;
|
||||
const uint8_t* src = (const uint8_t*)_src + yy*_srcPitch;
|
||||
double* dst = &imgIn[yy*_width];
|
||||
for (uint32_t xx = 0; xx < _width; ++xx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user