summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/percent.svg
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-24 14:41:15 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-06-25 16:09:46 +0100
commitbdca9ab14ef3198b635af6043fc1d7e31be79f51 (patch)
tree6bf22c3e825e920defc81b5c0d3f3a823fe0a723 /src/qcam/assets/feathericons/percent.svg
parent1ad25efa60c131a0386f251431c2f11d41f4e009 (diff)
libcamera: Move libcamera.so pkg-config file generation
The pkg-config file for the main libcamera.so is generated at the top level meson.build. Move this to the actual core libcamera build structure to be consistent and keep it next to the library construction. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/percent.svg')
0 files changed, 0 insertions, 0 deletions
pan class="hl opt">[2][3::4]))/2 ap_b = np.mean(patches[3][3::4]) Cam.log += '\nAverage channel values on grey patches:' Cam.log += '\nRed = {:.0f} Green = {:.0f} Blue = {:.0f}'.format(ap_r, ap_b, ap_g) # print(ap_r, ap_g, ap_b) """ calculate channel gains """ gr = ap_g/ap_r gb = ap_g/ap_b Cam.log += '\nChannel gains: Red = {:.3f} Blue = {:.3f}'.format(gr, gb) """ find means color channels on image and scale by gain note greens are averaged together (treated as one channel) """ a_r = np.mean(channels[0])*gr a_g = (np.mean(channels[1])+np.mean(channels[2]))/2 a_b = np.mean(channels[3])*gb Cam.log += '\nAverage channel values over entire image scaled by channel gains:' Cam.log += '\nRed = {:.0f} Green = {:.0f} Blue = {:.0f}'.format(a_r, a_b, a_g) # print(a_r, a_g, a_b) """ Calculate y with top row of yuv matrix """ y = 0.299*a_r + 0.587*a_g + 0.114*a_b Cam.log += '\nY value calculated: {}'.format(int(y)) # print(y) return int(y)