diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-18 08:21:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-18 08:59:28 +0300 |
commit | 333cdbb41025db012239e0549a439515880aad9b (patch) | |
tree | 7f34b68d8d412bd69073eabee1ed01e2ded0437f /source/blender/render/intern | |
parent | 93e876c4f89909ff1e399d7f038aac134367b120 (diff) |
Cleanup: comment blocks
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/include/render_types.h | 7 | ||||
-rw-r--r-- | source/blender/render/intern/source/imagetexture.c | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h index 69e2ea991dd..63fd3f1d0bd 100644 --- a/source/blender/render/intern/include/render_types.h +++ b/source/blender/render/intern/include/render_types.h @@ -82,9 +82,10 @@ struct Render { * to not conflict with writes, so no lock used for that */ ThreadRWMutex resultmutex; - /* window size, display rect, viewplane */ - int winx, winy; /* buffer width and height with percentage applied - * without border & crop. convert to long before multiplying together to avoid overflow. */ + /** Window size, display rect, viewplane. + * \note Buffer width and height with percentage applied + * without border & crop. convert to long before multiplying together to avoid overflow. */ + int winx, winy; rcti disprect; /* part within winx winy */ rctf viewplane; /* mapped on winx winy */ diff --git a/source/blender/render/intern/source/imagetexture.c b/source/blender/render/intern/source/imagetexture.c index a9b06edf558..df114ed9c1d 100644 --- a/source/blender/render/intern/source/imagetexture.c +++ b/source/blender/render/intern/source/imagetexture.c @@ -877,9 +877,12 @@ static void feline_eval(TexResult *texr, ImBuf *ibuf, float fx, float fy, afdata float tc[4]; const float hn = n * 0.5f; const float u = fx + hn * du, v = fy + hn * dv; - /*const float wt = expf(n*n*D); - * can use ewa table here too */ + /* Can use ewa table here too. */ +#if 0 + const float wt = expf(n * n * D); +#else const float wt = EWA_WTS[(int)(n * n * D)]; +#endif /*const int out =*/ibuf_get_color_clip_bilerp( tc, ibuf, ibuf->x * u, ibuf->y * v, AFD->intpol, AFD->extflag); /* TXF alpha: clip |= out; |