Not sure if this is what you're looking for, but just in case. This is from the RAM dump I have. Buffer size = 720x360, only the first 240 lines are used.
edit:Turns out, these might be necessary (as in the ixus150 port):Code: [Select] #undef CAM_BITMAP_HEIGHT #define CAM_BITMAP_HEIGHT 360
#undef CAM_BITMAP_HEIGHT #define CAM_BITMAP_HEIGHT 360
Code: [Select] #undef CAM_BITMAP_HEIGHT #define CAM_BITMAP_HEIGHT 360I suspect this will cause other problems, although I'm not certain which parts of the code use bitmap height vs assuming it's the same as the CHDK viewport height.
There's also CAM_SCREEN_HEIGHT which is the height of the visible screen area. That is still 240, same as the viewport's height (AFAIK the overlay and the viewports can't have different sizes, not even on DIGIC 6). Does the zebra code not respect that?Side note: all those the overlay/viewport related definitions and helper functions (vid_get_viewport_height() and so on) make my head spin. They are one of the most confusing parts of a port.
I'm open to suggestions of how to make it clearer.
Probably a topic for 1.5 and a different thread.
Does chdkptp live work correctly when CAM_BITMAP_HEIGHT = 360 on ixus150?
all those the overlay/viewport related definitions and helper functions (vid_get_viewport_height() and so on) make my head spin. They are one of the most confusing parts of a port.
The idea was to move camera specific stuff into the port and out of the core code.
If you can think of a way to simplify it that would be great; but making sure it works with all the combinations is tricky.
Documentation could be better though
If you mean the current code in svn, yes, it works (offsets are not implemented, so "special" modes look incorrect, but that's unrelated).
@reyalpit's probably time to split this discussion to the "1.5 plans" thread
Of course, any significant re-work is going to be difficult since it will require blind changes on a bunch of cams.
Started by adong « 1 2 ... 49 50 » DryOS Development
Started by STEREO_A Creative Uses of CHDK
Started by reyalp DryOS Development
Started by c_joerg « 1 2 » Forum related topics (including issues)