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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-18 08:21:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-18 08:59:28 +0300
commit333cdbb41025db012239e0549a439515880aad9b (patch)
tree7f34b68d8d412bd69073eabee1ed01e2ded0437f /source/blender/render
parent93e876c4f89909ff1e399d7f038aac134367b120 (diff)
Cleanup: comment blocks
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/extern/include/RE_pipeline.h15
-rw-r--r--source/blender/render/intern/include/render_types.h7
-rw-r--r--source/blender/render/intern/source/imagetexture.c7
3 files changed, 18 insertions, 11 deletions
diff --git a/source/blender/render/extern/include/RE_pipeline.h b/source/blender/render/extern/include/RE_pipeline.h
index 0e7399d4a0d..145508b514e 100644
--- a/source/blender/render/extern/include/RE_pipeline.h
+++ b/source/blender/render/extern/include/RE_pipeline.h
@@ -95,20 +95,23 @@ typedef struct RenderPass {
typedef struct RenderLayer {
struct RenderLayer *next, *prev;
- /* copy of RenderData */
+ /** copy of RenderData */
char name[RE_MAXNAME];
int layflag, passflag, pass_xor;
/* MULTIVIEW_TODO: acolrect and scolrect are not supported by multiview at the moment.
* If they are really required they should be in RenderView instead */
- float *acolrect; /* 4 float, optional transparent buffer, needs storage for display updates */
- float *scolrect; /* 4 float, optional strand buffer, needs storage for display updates */
- int *display_buffer; /* 4 char, optional color managed display buffer which is used when
- * Save Buffer is enabled to display combined pass of the screen. */
+ /** 4 float, optional transparent buffer, needs storage for display updates */
+ float *acolrect;
+ /** 4 float, optional strand buffer, needs storage for display updates */
+ float *scolrect;
+ /** 4 char, optional color managed display buffer which is used when
+ * Save Buffer is enabled to display combined pass of the screen. */
+ int *display_buffer;
int rectx, recty;
- /* optional saved endresult on disk */
+ /** Optional saved endresult on disk. */
void *exrhandle;
ListBase passes;
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;