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-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/imbuf/IMB_thumbs.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/imbuf/IMB_thumbs.h')
-rw-r--r--source/blender/imbuf/IMB_thumbs.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/imbuf/IMB_thumbs.h b/source/blender/imbuf/IMB_thumbs.h
index 1c64edb21da..bac408e869b 100644
--- a/source/blender/imbuf/IMB_thumbs.h
+++ b/source/blender/imbuf/IMB_thumbs.h
@@ -21,7 +21,6 @@
* \ingroup imbuf
*/
-
#ifndef __IMB_THUMBS_H__
#define __IMB_THUMBS_H__
@@ -36,18 +35,17 @@ struct ImBuf;
* Reference: http://jens.triq.net/thumbnail-spec/index.html
*/
-
typedef enum ThumbSize {
- THB_NORMAL,
- THB_LARGE,
- THB_FAIL,
+ THB_NORMAL,
+ THB_LARGE,
+ THB_FAIL,
} ThumbSize;
typedef enum ThumbSource {
- THB_SOURCE_IMAGE,
- THB_SOURCE_MOVIE,
- THB_SOURCE_BLEND,
- THB_SOURCE_FONT,
+ THB_SOURCE_IMAGE,
+ THB_SOURCE_MOVIE,
+ THB_SOURCE_BLEND,
+ THB_SOURCE_FONT,
} ThumbSource;
/* don't generate thumbs for images bigger then this (100mb) */
@@ -58,7 +56,7 @@ typedef enum ThumbSource {
/* Note this can also be used as versioning system,
* to force refreshing all thumbnails if e.g. we change some thumb generating code or so.
* Only used by fonts so far. */
-#define THUMB_DEFAULT_HASH "00000000000000000000000000000000"
+#define THUMB_DEFAULT_HASH "00000000000000000000000000000000"
/* create thumbnail for file and returns new imbuf for thumbnail */
ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source, ImBuf *ibuf);
@@ -77,7 +75,7 @@ void IMB_thumb_makedirs(void);
/* special function for loading a thumbnail embedded into a blend file */
ImBuf *IMB_thumb_load_blend(const char *blen_path, const char *blen_group, const char *blen_id);
-void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float aspect);
+void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float aspect);
/* special function for previewing fonts */
ImBuf *IMB_thumb_load_font(const char *filename, unsigned int x, unsigned int y);