diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/imbuf/intern/openexr/openexr_stub.cpp | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/intern/openexr/openexr_stub.cpp')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_stub.cpp | 119 |
1 files changed, 96 insertions, 23 deletions
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; +} |