diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-09-07 09:48:04 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | c186b574e52b81c75e551cee46a6c4cc7d500c90 (patch) | |
tree | 682add7d1b705eb6d0b79b1f9a7a039dbaa4287b /arm_compute/core/NEON/kernels/NEHistogramKernel.h | |
parent | 3e05e4e85912e745b8555102e1bcef13478d2ceb (diff) | |
download | ComputeLibrary-c186b574e52b81c75e551cee46a6c4cc7d500c90.tar.gz |
COMPMID-481: Add thread info parameter
Change-Id: Iebb50a88d017445b6b37a86563ebd4abd86c5cf5
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86788
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/NEHistogramKernel.h')
-rw-r--r-- | arm_compute/core/NEON/kernels/NEHistogramKernel.h | 14 |
1 files changed, 8 insertions, 6 deletions
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; |