From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: 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 --- .../blender/imbuf/intern/openexr/openexr_stub.cpp | 119 +++++++++++++++++---- 1 file changed, 96 insertions(+), 23 deletions(-) (limited to 'source/blender/imbuf/intern/openexr/openexr_stub.cpp') diff --git a/source/blender/imbuf/intern/openexr/openexr_stub.cpp b/source/blender/imbuf/intern/openexr/openexr_stub.cpp index 23f4bae1bf8..bfc4291c7b1 100644 --- a/source/blender/imbuf/intern/openexr/openexr_stub.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_stub.cpp @@ -24,34 +24,107 @@ #include "openexr_api.h" #include "openexr_multi.h" -void *IMB_exr_get_handle (void) {return NULL;} -void *IMB_exr_get_handle_name (const char * /*name*/) { return NULL;} -void IMB_exr_add_channel (void * /*handle*/, const char * /*layname*/, const char * /*passname*/, const char * /*view*/, - int /*xstride*/, int /*ystride*/, float * /*rect*/, - bool /*use_half_float*/) { } +void *IMB_exr_get_handle(void) +{ + return NULL; +} +void *IMB_exr_get_handle_name(const char * /*name*/) +{ + return NULL; +} +void IMB_exr_add_channel(void * /*handle*/, + const char * /*layname*/, + const char * /*passname*/, + const char * /*view*/, + int /*xstride*/, + int /*ystride*/, + float * /*rect*/, + bool /*use_half_float*/) +{ +} -int IMB_exr_begin_read (void * /*handle*/, const char * /*filename*/, int * /*width*/, int * /*height*/) { return 0;} -int IMB_exr_begin_write (void * /*handle*/, const char * /*filename*/, int /*width*/, int /*height*/, int /*compress*/, const struct StampData * /*stamp*/) { return 0;} -void IMB_exrtile_begin_write (void * /*handle*/, const char * /*filename*/, int /*mipmap*/, int /*width*/, int /*height*/, int /*tilex*/, int /*tiley*/) { } +int IMB_exr_begin_read(void * /*handle*/, + const char * /*filename*/, + int * /*width*/, + int * /*height*/) +{ + return 0; +} +int IMB_exr_begin_write(void * /*handle*/, + const char * /*filename*/, + int /*width*/, + int /*height*/, + int /*compress*/, + const struct StampData * /*stamp*/) +{ + return 0; +} +void IMB_exrtile_begin_write(void * /*handle*/, + const char * /*filename*/, + int /*mipmap*/, + int /*width*/, + int /*height*/, + int /*tilex*/, + int /*tiley*/) +{ +} -void IMB_exr_set_channel (void * /*handle*/, const char * /*layname*/, const char * /*passname*/, int /*xstride*/, int /*ystride*/, float * /*rect*/) { } -float *IMB_exr_channel_rect (void * /*handle*/, const char * /*layname*/, const char * /*passname*/, const char * /*view*/) { return NULL; } +void IMB_exr_set_channel(void * /*handle*/, + const char * /*layname*/, + const char * /*passname*/, + int /*xstride*/, + int /*ystride*/, + float * /*rect*/) +{ +} +float *IMB_exr_channel_rect(void * /*handle*/, + const char * /*layname*/, + const char * /*passname*/, + const char * /*view*/) +{ + return NULL; +} -void IMB_exr_read_channels (void * /*handle*/) { } -void IMB_exr_write_channels (void * /*handle*/) { } -void IMB_exrtile_write_channels (void * /*handle*/, int /*partx*/, int /*party*/, int /*level*/, const char * /*viewname*/, bool /*empty*/) { } -void IMB_exr_clear_channels (void * /*handle*/) { } +void IMB_exr_read_channels(void * /*handle*/) +{ +} +void IMB_exr_write_channels(void * /*handle*/) +{ +} +void IMB_exrtile_write_channels(void * /*handle*/, + int /*partx*/, + int /*party*/, + int /*level*/, + const char * /*viewname*/, + bool /*empty*/) +{ +} +void IMB_exr_clear_channels(void * /*handle*/) +{ +} -void IMB_exr_multilayer_convert( - void * /*handle*/, void * /*base*/, - void * (* /*addview*/)(void *base, const char *str), - void * (* /*addlayer*/)(void *base, const char *str), - void (* /*addpass*/)(void *base, void *lay, const char *str, float *rect, int totchan, - const char *chan_id, const char *view)) +void IMB_exr_multilayer_convert(void * /*handle*/, + void * /*base*/, + void *(*/*addview*/)(void *base, const char *str), + void *(*/*addlayer*/)(void *base, const char *str), + void (*/*addpass*/)(void *base, + void *lay, + const char *str, + float *rect, + int totchan, + const char *chan_id, + const char *view)) { } -void IMB_exr_close (void * /*handle*/) { } +void IMB_exr_close(void * /*handle*/) +{ +} -void IMB_exr_add_view(void * /*handle*/, const char * /*name*/) { } -bool IMB_exr_has_multilayer(void * /*handle*/) { return false; } +void IMB_exr_add_view(void * /*handle*/, const char * /*name*/) +{ +} +bool IMB_exr_has_multilayer(void * /*handle*/) +{ + return false; +} -- cgit v1.2.3