../../../../core/gui_osd.c: In function 'gui_osd_draw_dof':../../../../core/gui_osd.c:232:38: error: 'CAM_SENSOR_WIDTH' undeclared (first use in this function) aov_rad_h = 2.0 * arctan(CAM_SENSOR_WIDTH / (2.0 * focal_length), 19); ^../../../../core/gui_osd.c:232:38: note: each undeclared identifier is reported only once for each function it appears in../../../../core/gui_osd.c:233:38: error: 'CAM_SENSOR_HEIGHT' undeclared (first use in this function) aov_rad_v = 2.0 * arctan(CAM_SENSOR_HEIGHT / (2.0 * focal_length), 19); ^../../../../core/gui_osd.c:234:38: error: 'CAM_SENSOR_DIAGONAL' undeclared (first use in this function) aov_rad_d = 2.0 * arctan(CAM_SENSOR_DIAGONAL / (2.0 * focal_length), 19);
Search "CAM_SENSOR_WIDTH" (20 hits in 18 files) D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\core\gui_osd.c (2 hits) Line 232: aov_rad_h = 2.0 * arctan(CAM_SENSOR_WIDTH / (2.0 * focal_length), 19); Line 240: aov_rad_h = 2.0 * arctan(CAM_SENSOR_WIDTH / (2.0 * S2), 19); D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\s2is\platform_camera.h (1 hit) Line 28: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\s3is\platform_camera.h (1 hit) Line 28: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\s5is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\sx10\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 6.17f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\sx100is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\sx110is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 6.16f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\sx120is\platform_camera.h (1 hit) Line 30: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\CHDK-master\platform\sx20\platform_camera.h (1 hit) Line 30: #define CAM_SENSOR_WIDTH 6.16f D:\hostluaPortable\CHDK-Shell\trunk\core\gui_osd.c (2 hits) Line 232: aov_rad_h = 2.0 * arctan(CAM_SENSOR_WIDTH / (2.0 * focal_length), 19); Line 240: aov_rad_h = 2.0 * arctan(CAM_SENSOR_WIDTH / (2.0 * S2), 19); D:\hostluaPortable\CHDK-Shell\trunk\platform\s2is\platform_camera.h (1 hit) Line 28: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\platform\s3is\platform_camera.h (1 hit) Line 28: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\platform\s5is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\platform\sx10\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 6.17f D:\hostluaPortable\CHDK-Shell\trunk\platform\sx100is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\platform\sx110is\platform_camera.h (1 hit) Line 29: #define CAM_SENSOR_WIDTH 6.16f D:\hostluaPortable\CHDK-Shell\trunk\platform\sx120is\platform_camera.h (1 hit) Line 30: #define CAM_SENSOR_WIDTH 5.744f D:\hostluaPortable\CHDK-Shell\trunk\platform\sx20\platform_camera.h (1 hit) Line 30: #define CAM_SENSOR_WIDTH 6.16f
This code requires refactoring, mainly an alternative text-based configuration system. A second configuration system is used next to the basic one without interfering with the existing configuration file.
The auto ETTR system in AutoISO2 based on the percentage of overexposed pixels will not work in every case. I tested on landscapes and it often works there.
The include/camera.h was updated, defult sensor is 1/2.5". This is example for 1/2.3" sensor in platform_camera.h
../../include/properties.h:28:6: error: #error unknown camera processor #error unknown camera processor
Ix265, Ix275,Sx610+620hskbd.c:26:7: error: 'KEY_WIFI' undeclared here (not in a function) { 2, KEY_WIFI ,0x00000200 }, ^Sx620:shooting.c:8:30: error: 'MODE_DISABLE_RAW' undeclared here (not in a function) { MODE_HIGHSPEED_BURST | MODE_DISABLE_RAW, 32776 }, .lua scripts: bi.build_revision or bi.digic=nil if ( tonumber(bi.build_revision) or 0 > 0 ) then build = tonumber(bi.build_revision)
Just FWIW 1.4 has some bugs in histogram which produce invalid data for some viewport sizes. These were fixed in 1.5 changeset 5987: https://app.assembla.com/spaces/chdk/subversion/commits/5987
Quote from: reyalp on 01 / December / 2021, 13:09:19Just FWIW 1.4 has some bugs in histogram which produce invalid data for some viewport sizes. These were fixed in 1.5 changeset 5987: https://app.assembla.com/spaces/chdk/subversion/commits/5987Probably the various platform/.../lib.c updates would help, too.
int calculate_ev_auto(int range, int threshold, int yover, int ev_bias){ if ((threshold < 3) || (yover == 0)) { return 0; } int i, j; int levels[4][2]; levels[0][0] = 0; levels[0][1] = 0; int partial_threshold = threshold / 3; int partial_ev = yover % 4; for (i = 1; i < 4; i++) { levels[i][0] = i * partial_threshold; levels[i][1] = i + partial_ev; } if (range > levels[3][0]) { return clip192((levels[3][1] << 5) + ev_bias); } for (j = 2; j >= 0; j--) { if ((range <= levels[j+1][0]) && (range > levels[j][0])) { return clip192((levels[j][1] << 5) + ev_bias); } } return 0;}
I tried to make a diff against the 1.4 source to better understand the changes, but it seems there are quite a few files were completely reformatted, which makes it a bit difficult.
...get_imager_activeget_nd_current_ev96get_nd_value_ev96get_current_av96get_current_tv96get_max_av96get_min_av96bi.digic...
Started by acseven « 1 2 3 4 » Forum related topics (including issues)
Started by dzsemx AllBest's Builds
Started by Mirfak RAW Shooting and Processing
Started by StevenD Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by nei Feature Requests