diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-05 14:15:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-05 14:16:56 +0300 |
commit | c795d31a1faf15853a1e8315bb60f73f9a534df5 (patch) | |
tree | 377331b06cf52a52e1e1524b728baa49aae88fa8 /source/blender/imbuf/IMB_imbuf.h | |
parent | f5dcb137f1fb90d80b03ce4db8217be13232dfa5 (diff) |
Simplify scanline threaded processor used by GPU_verify_image
Just avoid some unneeded initialization functions when the threaded
processor is simple enough to only depend on current chunk start
scanline and number of scanlines.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 043f1602a76..bd19271ff65 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -580,6 +580,14 @@ void IMB_processor_apply_threaded(int buffer_lines, int handle_size, void *init_ void *customdata), void *(do_thread) (void *)); +typedef void (*ScanlineThreadFunc) (void *custom_data, + int start_scanline, + int num_scanlines); +void IMB_processor_apply_threaded_scanlines(int buffer_lines, + ScanlineThreadFunc do_thread, + void *custom_data); + + /* ffmpeg */ void IMB_ffmpeg_init(void); const char *IMB_ffmpeg_last_error(void); |