Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:40 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commita9e64d8613cc9f1286cece0e963562e57f48e233 (patch)
tree4c02ed065203cb5317749d0c2306537a737ed8e6 /source/blender/compositor/operations
parentb9d2e2ec973903eba5146fb078b0a41afbd77e1c (diff)
Cleanup: Use uint8_t for num of channels.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r--source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc2
-rw-r--r--source/blender/compositor/operations/COM_WriteBufferOperation.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc
index 922d6a859a3..4dded61fba5 100644
--- a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc
+++ b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc
@@ -122,7 +122,7 @@ void FastGaussianBlurOperation::IIR_gauss(MemoryBuffer *src,
unsigned int x, y, sz;
unsigned int i;
float *buffer = src->getBuffer();
- const unsigned int num_channels = src->get_num_channels();
+ const uint8_t num_channels = src->get_num_channels();
// <0.5 not valid, though can have a possibly useful sort of sharpening effect
if (sigma < 0.5f) {
diff --git a/source/blender/compositor/operations/COM_WriteBufferOperation.cc b/source/blender/compositor/operations/COM_WriteBufferOperation.cc
index e2d5c4de4cb..e426bc76ef3 100644
--- a/source/blender/compositor/operations/COM_WriteBufferOperation.cc
+++ b/source/blender/compositor/operations/COM_WriteBufferOperation.cc
@@ -60,7 +60,7 @@ void WriteBufferOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/
{
MemoryBuffer *memoryBuffer = this->m_memoryProxy->getBuffer();
float *buffer = memoryBuffer->getBuffer();
- const int num_channels = memoryBuffer->get_num_channels();
+ const uint8_t num_channels = memoryBuffer->get_num_channels();
if (this->m_input->isComplex()) {
void *data = this->m_input->initializeTileData(rect);
int x1 = rect->xmin;