From c186b574e52b81c75e551cee46a6c4cc7d500c90 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Thu, 7 Sep 2017 09:48:04 +0100 Subject: COMPMID-481: Add thread info parameter Change-Id: Iebb50a88d017445b6b37a86563ebd4abd86c5cf5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86788 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- arm_compute/core/NEON/kernels/NEHistogramKernel.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEHistogramKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEHistogramKernel.h b/arm_compute/core/NEON/kernels/NEHistogramKernel.h index 2c0f34b5a7..75d00e9d31 100644 --- a/arm_compute/core/NEON/kernels/NEHistogramKernel.h +++ b/arm_compute/core/NEON/kernels/NEHistogramKernel.h @@ -77,7 +77,7 @@ public: void configure(const IImage *input, IDistribution1D *output); // Inherited methods overridden: - void run(const Window &window) override; + void run(const Window &window, const ThreadInfo &info) override; private: /** Function to merge multiple partial histograms. @@ -95,15 +95,17 @@ private: void merge_min(uint8_t *global_min, const uint8_t &local_min); /** Function to perform histogram on the given window * - * @param[in] win Region on which to execute the kernel + * @param[in] win Region on which to execute the kernel + * @param[in] info Info about the executing thread */ - void histogram_U8(Window win); + void histogram_U8(Window win, const ThreadInfo &info); /** Function to perform histogram on the given window where histogram is * of fixed size 256 without ranges and offsets. * - * @param[in] win Region on which to execute the kernel + * @param[in] win Region on which to execute the kernel + * @param[in] info Info about the executing thread */ - void histogram_fixed_U8(Window win); + void histogram_fixed_U8(Window win, const ThreadInfo &info); /** Pre-calculate the pixel windowing for every possible pixel * * Calculate (V - offset) * numBins / range where V is every possible pixel value. @@ -115,7 +117,7 @@ private: * * @param[in] window Region on which to execute the kernel. */ - using HistogramFunctionPtr = void (NEHistogramKernel::*)(Window window); + using HistogramFunctionPtr = void (NEHistogramKernel::*)(Window window, const ThreadInfo &info); HistogramFunctionPtr _func; ///< Histogram function to use for the particular image types passed to configure() const IImage *_input; -- cgit v1.2.1