diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-16 12:53:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-16 12:53:11 +0400 |
commit | a2e2489f611eabcaa2d388379fcc4256bc0a6b38 (patch) | |
tree | 84e45e12b4782da9507796d5e64a24726e844414 | |
parent | 4cacff234225d81c44144551fd295a24a9b3c30c (diff) |
correct own naming error BLI -> BKE
-rw-r--r-- | source/blender/blenkernel/BKE_mask.h | 8 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/mask_rasterize.c | 8 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_MaskOperation.cpp | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/BKE_mask.h b/source/blender/blenkernel/BKE_mask.h index 5038ac5eb1b..411350764b3 100644 --- a/source/blender/blenkernel/BKE_mask.h +++ b/source/blender/blenkernel/BKE_mask.h @@ -213,13 +213,13 @@ void BKE_mask_init_layers(Mask *mask, struct layer_init_data *mlayer_data, int w struct MaskRasterHandle; typedef struct MaskRasterHandle MaskRasterHandle; -MaskRasterHandle *BLI_maskrasterize_handle_new(void); -void BLI_maskrasterize_handle_free(MaskRasterHandle *mr_handle); -void BLI_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mask, +MaskRasterHandle *BKE_maskrasterize_handle_new(void); +void BKE_maskrasterize_handle_free(MaskRasterHandle *mr_handle); +void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mask, const int width, const int height, const short do_aspect_correct, const short do_mask_aa, const short do_feather); -float BLI_maskrasterize_handle_sample(MaskRasterHandle *mr_handle, const float xy[2]); +float BKE_maskrasterize_handle_sample(MaskRasterHandle *mr_handle, const float xy[2]); #endif /* USE_RASKTER */ #endif /* __BKE_MASK_H__ */ diff --git a/source/blender/blenkernel/intern/mask_rasterize.c b/source/blender/blenkernel/intern/mask_rasterize.c index 8bac736e1c9..5428e8c6335 100644 --- a/source/blender/blenkernel/intern/mask_rasterize.c +++ b/source/blender/blenkernel/intern/mask_rasterize.c @@ -119,7 +119,7 @@ struct MaskRasterHandle { /* alloc / free functions */ /* --------------------------------------------------------------------- */ -MaskRasterHandle *BLI_maskrasterize_handle_new(void) +MaskRasterHandle *BKE_maskrasterize_handle_new(void) { MaskRasterHandle *mr_handle; @@ -128,7 +128,7 @@ MaskRasterHandle *BLI_maskrasterize_handle_new(void) return mr_handle; } -void BLI_maskrasterize_handle_free(MaskRasterHandle *mr_handle) +void BKE_maskrasterize_handle_free(MaskRasterHandle *mr_handle) { const unsigned int layers_tot = mr_handle->layers_tot; unsigned int i; @@ -452,7 +452,7 @@ static void layer_bucket_init(MaskRasterLayer *layer, const float pixel_size) BLI_memarena_free(arena); } -void BLI_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mask, +void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mask, const int width, const int height, const short do_aspect_correct, const short do_mask_aa, const short do_feather) @@ -963,7 +963,7 @@ static float layer_bucket_depth_from_xy(MaskRasterLayer *layer, const float xy[2 } } -float BLI_maskrasterize_handle_sample(MaskRasterHandle *mr_handle, const float xy[2]) +float BKE_maskrasterize_handle_sample(MaskRasterHandle *mr_handle, const float xy[2]) { /* can't do this because some layers may invert */ /* if (BLI_in_rctf_v(&mr_handle->bounds, xy)) */ diff --git a/source/blender/compositor/operations/COM_MaskOperation.cpp b/source/blender/compositor/operations/COM_MaskOperation.cpp index d2a4854efee..057a749080a 100644 --- a/source/blender/compositor/operations/COM_MaskOperation.cpp +++ b/source/blender/compositor/operations/COM_MaskOperation.cpp @@ -152,9 +152,9 @@ void MaskOperation::initExecution() const int width = this->getWidth(); const int height = this->getHeight(); - this->m_rasterMaskHandle = BLI_maskrasterize_handle_new(); + this->m_rasterMaskHandle = BKE_maskrasterize_handle_new(); - BLI_maskrasterize_handle_init(this->m_rasterMaskHandle, this->m_mask, width, height, TRUE, this->m_do_smooth, this->m_do_feather); + BKE_maskrasterize_handle_init(this->m_rasterMaskHandle, this->m_mask, width, height, TRUE, this->m_do_smooth, this->m_do_feather); } } } @@ -162,7 +162,7 @@ void MaskOperation::initExecution() void MaskOperation::deinitExecution() { if (this->m_rasterMaskHandle) { - BLI_maskrasterize_handle_free(this->m_rasterMaskHandle); + BKE_maskrasterize_handle_free(this->m_rasterMaskHandle); this->m_rasterMaskHandle = NULL; } @@ -197,7 +197,7 @@ void MaskOperation::executePixel(float *color, int x, int y, void *data) { const float xy[2] = {x / (float)this->m_maskWidth, y / (float)this->m_maskHeight}; if (this->m_rasterMaskHandle) { - color[0] = BLI_maskrasterize_handle_sample(this->m_rasterMaskHandle, xy); + color[0] = BKE_maskrasterize_handle_sample(this->m_rasterMaskHandle, xy); } else { color[0] = 0.0f; |