summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/rpi/focus.cpp
diff options
context:
space:
mode:
authorNicholas Roth <nicholas@rothemail.net>2022-10-27 22:17:18 -0500
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-10-28 11:37:41 +0100
commit88d059105b611be03d67559aa7fbbab7c45c8ace (patch)
treee65e5728e080f28c7808ea8530ad7d28752c61bd /src/ipa/raspberrypi/controller/rpi/focus.cpp
parenta8113fb3a89984cc65d51436480cee45b60543e8 (diff)
ipa: add missing thread-safety annotations
The raspberrypi IPA is missing thread-safety annotations, which breaks the build. Add required thread-safety annotations. ../src/ipa/raspberrypi/controller/metadata.h:108:31: error: mutex 'mutex_' is still held at the end of function [-Werror,-Wthread-safety-analysis] void lock() { mutex_.lock(); } ^ ../src/ipa/raspberrypi/controller/metadata.h:108:23: note: mutex acquired here void lock() { mutex_.lock(); } ^ ../src/ipa/raspberrypi/controller/metadata.h:109:25: error: releasing mutex 'mutex_' that was not held [-Werror,-Wthread-safety-analysis] void unlock() { mutex_.unlock(); } ^ Signed-off-by: Nicholas Roth <nicholas@rothemail.net> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/focus.cpp')
0 files changed, 0 insertions, 0 deletions
c"># module. sector_shape=(17, 17), sector_x_gradient=lt.gradient.Linear(lt.Remainder.DistributeFront), sector_y_gradient=lt.gradient.Linear(lt.Remainder.DistributeFront), # This is the function that will be used to average the pixels in # each sector. This can also be a custom function. sector_average_function=lt.average.Mean(), # This is the function that will be used to smooth the color ratio # values. This can also be a custom function. smoothing_function=lt.smoothing.MedianBlur(3), )) tuner.set_input_parser(YamlParser()) tuner.set_output_formatter(YamlOutput()) tuner.set_output_order([LSCRkISP1]) if __name__ == '__main__': sys.exit(tuner.run(sys.argv))