RaduP
Then make sure you return the correct screen dimensions. If you are using the ones from the SD980, you are not returning the correct ones, because my screen is wider.
Please tell me, where can i correct the screen dimesions? In camera.h, or somewhere else?
My camera.h cloned from
sx10, and looks like this, with some modified variables:
#elif defined (CAMERA_sx20)
#define CAM_PROPSET 2
#define CAM_DRYOS 1
#define CAM_DRYOS_2_3_R39 1
#define CAM_RAW_ROWPIX 4072
#define CAM_RAW_ROWS 3036
#define CAM_SWIVEL_SCREEN 1
#define CAM_ADJUSTABLE_ALT_BUTTON 1
#undef CAM_CAN_SD_OVER_NOT_IN_MF
#undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO
#define CAM_HAS_VIDEO_BUTTON 1
#define CAM_VIDEO_QUALITY_ONLY 1
#define CAM_BRACKETING 1
#undef CAM_VIDEO_CONTROL
#define CAM_MULTIPART 1
#define CAM_HAS_JOGDIAL 1
#undef CAM_USE_ZOOM_FOR_MF
#undef CAM_UNCACHED_BIT // shut up compiler
#define CAM_UNCACHED_BIT 0x40000000
#define DNG_SUPPORT 1
// pattern
#define cam_CFAPattern 0x02010100 // Red Green Green Blue
// color
#define CAM_COLORMATRIX1 \
827547, 1000000, -290458, 1000000, -126086, 1000000, \
-12829, 1000000, 530507, 1000000, 50537, 1000000, \
5181, 1000000, 48183, 1000000, 245014, 1000000
#define cam_CalibrationIlluminant1 1 // Daylight
// cropping
#define CAM_JPEG_WIDTH 4000
#define CAM_JPEG_HEIGHT 3000
#define CAM_ACTIVE_AREA_X1 6
#define CAM_ACTIVE_AREA_Y1 12
#define CAM_ACTIVE_AREA_X2 3690
#define CAM_ACTIVE_AREA_Y2 2772
// camera name
#define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData
#undef CAM_SENSOR_BITS_PER_PIXEL
#undef CAM_WHITE_LEVEL
#undef CAM_BLACK_LEVEL
#define CAM_SENSOR_BITS_PER_PIXEL 12
#define CAM_WHITE_LEVEL ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)
#define CAM_BLACK_LEVEL 127
#define CAM_EXT_TV_RANGE 1