diff options
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/rectop.c | 11 | ||||
-rw-r--r-- | source/blender/imbuf/intern/thumbs.c | 14 |
2 files changed, 19 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index 7150e41841b..7915f04b74e 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -213,7 +213,9 @@ void IMB_blend_color_float(float dst[4], } } -/** Crop */ +/* -------------------------------------------------------------------- */ +/** \name Crop + * \{ */ static void rect_crop_4bytes(void **buf_p, const int size_src[2], const rcti *crop) { @@ -279,8 +281,9 @@ void IMB_rect_crop(ImBuf *ibuf, const rcti *crop) ibuf->y = size_dst[1]; } -/** Re-alloc buffers at a new size */ - +/** + * Re-alloc buffers at a new size. + */ static void rect_realloc_4bytes(void **buf_p, const uint size[2]) { if (*buf_p == NULL) { @@ -318,6 +321,8 @@ void IMB_rect_size_set(ImBuf *ibuf, const uint size[2]) ibuf->y = size[1]; } +/** \} */ + /* clipping */ void IMB_rectclip(ImBuf *dbuf, diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 06b8019a24d..eb4b29e81c1 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -132,11 +132,17 @@ static bool get_thumb_dir(char *dir, ThumbSize size) #undef THUMBNAILS -/** ----- begin of adapted code from glib --- +/* --- Begin of adapted code from glib. --- */ + +/* -------------------------------------------------------------------- */ +/** \name Escape URI String + * * The following code is adapted from function g_escape_uri_string from the gnome glib * Source: http://svn.gnome.org/viewcvs/glib/trunk/glib/gconvert.c?view=markup * released under the Gnu General Public License. - */ + * + * \{ */ + typedef enum { UNSAFE_ALL = 0x1, /* Escape all unsafe characters */ UNSAFE_ALLOW_PLUS = 0x2, /* Allows '+' */ @@ -295,7 +301,9 @@ static void escape_uri_string(const char *string, *q = '\0'; } -/** ----- end of adapted code from glib --- */ +/** \} */ + +/* --- End of adapted code from glib. --- */ static bool thumbhash_from_path(const char *UNUSED(path), ThumbSource source, char *r_hash) { |