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/imbuf
parent93e876c4f89909ff1e399d7f038aac134367b120 (diff)
Cleanup: comment blocks
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/IMB_imbuf.h26
-rw-r--r--source/blender/imbuf/intern/dds/BlockDXT.cpp18
-rw-r--r--source/blender/imbuf/intern/dds/DirectDrawSurface.cpp6
-rw-r--r--source/blender/imbuf/intern/indexer.c8
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_api.cpp2
-rw-r--r--source/blender/imbuf/intern/thumbs.c2
6 files changed, 33 insertions, 29 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h
index 27eb6a5eee5..8445c0f8f3a 100644
--- a/source/blender/imbuf/IMB_imbuf.h
+++ b/source/blender/imbuf/IMB_imbuf.h
@@ -272,18 +272,20 @@ void IMB_rectblend_threaded(struct ImBuf *dbuf,
*/
typedef enum IMB_Timecode_Type {
- IMB_TC_NONE = 0, /* don't use timecode files at all */
-
- IMB_TC_RECORD_RUN = 1, /* use images in the order as they are recorded
- * (currently, this is the only one implemented
- * and is a sane default) */
-
- IMB_TC_FREE_RUN = 2, /* use global timestamp written by recording
- * device (prosumer camcorders e.g. can do that) */
- IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN = 4, /* interpolate a global timestamp using the
- * record date and time written by recording
- * device (*every* consumer camcorder can do
- * that :) )*/
+ /** Don't use timecode files at all. */
+ IMB_TC_NONE = 0,
+ /** use images in the order as they are recorded
+ * (currently, this is the only one implemented
+ * and is a sane default) */
+ IMB_TC_RECORD_RUN = 1,
+ /** Use global timestamp written by recording
+ * device (prosumer camcorders e.g. can do that). */
+ IMB_TC_FREE_RUN = 2,
+ /** Interpolate a global timestamp using the
+ * record date and time written by recording
+ * device (*every* consumer camcorder can do
+ * that :) )*/
+ IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN = 4,
IMB_TC_RECORD_RUN_NO_GAPS = 8,
IMB_TC_MAX_SLOT = 4,
} IMB_Timecode_Type;
diff --git a/source/blender/imbuf/intern/dds/BlockDXT.cpp b/source/blender/imbuf/intern/dds/BlockDXT.cpp
index 9211f6a7ba6..f960faee1ab 100644
--- a/source/blender/imbuf/intern/dds/BlockDXT.cpp
+++ b/source/blender/imbuf/intern/dds/BlockDXT.cpp
@@ -53,9 +53,9 @@
#include <ColorBlock.h>
#include <BlockDXT.h>
-/*----------------------------------------------------------------------------
- BlockDXT1
-----------------------------------------------------------------------------*/
+/* ---------------------------------------------------------------------------
+ * BlockDXT1
+ * --------------------------------------------------------------------------*/
uint BlockDXT1::evaluatePalette(Color32 color_array[4]) const
{
@@ -262,9 +262,9 @@ inline void BlockDXT1::flip2()
swap(row[0], row[1]);
}
-/*----------------------------------------------------------------------------
- BlockDXT3
-----------------------------------------------------------------------------*/
+/* ---------------------------------------------------------------------------
+ * BlockDXT3
+ * ---------------------------------------------------------------------------*/
void BlockDXT3::decodeBlock(ColorBlock *block) const
{
@@ -328,9 +328,9 @@ void BlockDXT3::flip2()
color.flip2();
}
-/*----------------------------------------------------------------------------
- BlockDXT5
-----------------------------------------------------------------------------*/
+/* ---------------------------------------------------------------------------
+ * BlockDXT5
+ * ---------------------------------------------------------------------------*/
void AlphaBlockDXT5::evaluatePalette(uint8 alpha[8]) const
{
diff --git a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
index 3db9b65c461..89fe3bf5f25 100644
--- a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
+++ b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
@@ -721,9 +721,11 @@ void DDSHeader::setPixelFormat(uint bitcount, uint rmask, uint gmask, uint bmask
// D3DX functions do not like this:
this->pf.fourcc = 0; //findD3D9Format(bitcount, rmask, gmask, bmask, amask);
- /*if (this->pf.fourcc) {
+#if 0
+ if (this->pf.fourcc) {
this->pf.flags |= DDPF_FOURCC;
- }*/
+ }
+#endif
if (!(bitcount > 0 && bitcount <= 32)) {
printf("DDS: bad bit count, pixel format not set\n");
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c
index 106c04f39f6..ccab0164df7 100644
--- a/source/blender/imbuf/intern/indexer.c
+++ b/source/blender/imbuf/intern/indexer.c
@@ -305,8 +305,8 @@ void IMB_indexer_close(struct anim_index *idx)
int IMB_proxy_size_to_array_index(IMB_Proxy_Size pr_size)
{
switch (pr_size) {
- case IMB_PROXY_NONE: /* if we got here, something is broken anyways,
- * so sane defaults... */
+ case IMB_PROXY_NONE:
+ /* if we got here, something is broken anyways, so sane defaults... */
return 0;
case IMB_PROXY_25:
return 0;
@@ -981,8 +981,8 @@ static AviMovie *alloc_proxy_output_avi(
AviFormat format;
double framerate;
AviMovie *avi;
- short frs_sec = 25; /* it doesn't really matter for proxies,
- * but sane defaults help anyways...*/
+ /* it doesn't really matter for proxies, but sane defaults help anyways...*/
+ short frs_sec = 25;
float frs_sec_base = 1.0;
IMB_anim_get_fps(anim, &frs_sec, &frs_sec_base, false);
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
index d0f550feb0d..4e801c8e3aa 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
@@ -1094,7 +1094,7 @@ void IMB_exrtile_write_channels(
for (echan = (ExrChannel *)data->channels.first; echan; echan = echan->next) {
/* eventually we can make the parts' channels to include
- only the current view TODO */
+ * only the current view TODO */
if (strcmp(viewname, echan->m->view.c_str()) != 0)
continue;
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index fc5bfe42d60..6341192c40c 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -60,7 +60,7 @@
# define _WIN32_IE 0x0400
# endif
/* For SHGetSpecialFolderPath, has to be done before BLI_winstuff
- * because 'near' is disabled through BLI_windstuff */
+ * because 'near' is disabled through BLI_windstuff */
# include <shlobj.h>
# include <direct.h> /* chdir */
# include "BLI_winstuff.h"