// PS11 #define PROPCASE_ASPECT_RATIO 311 // 0 = 4:3, 1 = 16:9 //, 2 = 3:2, 3 = 1:1
When I add this lines to lib.c then displayed md_grid, Zebra && ptp-Liveview behave as expected
, but previously fine Zebra is shifted down 30 pixels.
Calculated 10*10 grid has always =0 in first row. (Wide)
long vid_get_viewport_height()
{
if (camera_info.state.mode_play || is_video_recording()) return 240;
return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 180:240;
}
int vid_get_viewport_yoffset() // Zebra
{
if (camera_info.state.mode_play || is_video_recording()) return 0; // 640x480
return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 30:0; // Wide = 16:9
}
int vid_get_viewport_display_yoffset() // md_detect...
{
if (camera_info.state.mode_play || is_video_recording()) return 0; // 640x480
return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 30:0; // Wide = 16:9
}
int vid_get_viewport_height_proper() { return vid_get_viewport_height(); }
// PS11
// #define PROPCASE_ASPECT_RATIO 311 // 0 = 4:3, 1 = 16:9 //=Wide, 2 = 3:2, 3 = 1:1
in debug-osd propcase 311 is displayed Wide=1, else=0.
Edit: Old default.lua tells unsupp. PS11, from #6019
, language still German.
Edit2:
Ixus 190, 185, 170, 160, 155, 150, 145 & 130 have full size md grid, when size set to wide ...
... at least these cams and others with the resolution option "Wide" instead of aspect ratios (A3300,...) should profit from same insert.
Edit3: Ix175 & 155 has an additional differenciation...
);
extern int _GetVideoOutType(void);
// playback is 480 / 576 for NTSC / PAL respectively
Edit6
4: 14 13 12 14 15 16 17 21*lib.c collection, some known from porting threads...
One line more added to insert.Edit
57.1: && Ixus170:
error: 'viewport_buffers' undeclared > ...
Ix170 needed modification in platform_camera.c, too.
Edit9: With Propset 3 it happens (Ix120,130, Sx120), that the cam boots PROPCASE_ASPECT_RATIO 294 = 1 if set to wide, but with switching to <Rec> it falls to 0 and stays 0.
Edit 8: Successfull finetuning, ...
G:\AspectMD_zebra_ptp\platform\a2400\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\sub\100a\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\sub\100d\lib.c
G:\AspectMD_zebra_ptp\platform\a4000\lib.c
G:\AspectMD_zebra_ptp\platform\d20\lib.c
G:\AspectMD_zebra_ptp\platform\d30\lib.c
G:\AspectMD_zebra_ptp\platform\g1x\lib.c
G:\AspectMD_zebra_ptp\platform\ixus115_elph100hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus125_elph110hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus132_elph115\lib.c
G:\AspectMD_zebra_ptp\platform\ixus135_elph120\lib.c
G:\AspectMD_zebra_ptp\platform\ixus145_elph135\lib.c
G:\AspectMD_zebra_ptp\platform\ixus150_elph140\lib.c
G:\AspectMD_zebra_ptp\platform\ixus155_elph150\lib.c
G:\AspectMD_zebra_ptp\platform\ixus160_elph160\lib.c
G:\AspectMD_zebra_ptp\platform\ixus170_elph170\lib.c
G:\AspectMD_zebra_ptp\platform\ixus170_elph170\platform_camera.h
G:\AspectMD_zebra_ptp\platform\ixus185_elph185\lib.c
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\Ix190-DlgItmROMLOG.TXT
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\Ix190ShutdownROMLOG.TXT
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\lib.c
G:\AspectMD_zebra_ptp\platform\ixus220_elph300hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus220_elph300hs\platform_palette.c
G:\AspectMD_zebra_ptp\platform\ixus230_elph310hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus230_elph310hs\platform_palette.c
G:\AspectMD_zebra_ptp\platform\ixus255_elph330hs\lib.c
G:\AspectMD_zebra_ptp\platform\sx230hs\lib.c
G:\AspectMD_zebra_ptp\platform\sx230hs\platform_palette.c
Edit: (Ix150 unexplored.)