New CHDK features - page 3 - CHDK Releases - CHDK Forum

New CHDK features

  • 38 Replies
  • 9900 Views
*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: New CHDK features
« Reply #20 on: 15 / December / 2021, 09:39:39 »
Advertisements
I am unable to compile the official CHDK version 1.6.0 because I do not have the correct compiler.

https://chdk.setepontos.com/index.php?topic=12752.0  8)
All lifetime is a loan from eternity.

Re: New CHDK features
« Reply #21 on: 15 / December / 2021, 11:54:18 »
I compiled and updated fork based on CHDK 1.6.0. Not everything can work as it should, I did not include DIGIC 6 processors. I will review the codes sent here. I have downloaded GCC 4.9.3 arm none eabi and compiled the project.

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: New CHDK features
« Reply #22 on: 15 / December / 2021, 14:14:41 »
 ;) ... #5189 to download on demand:
https://app.assembla.com/spaces/chdk/subversion/source/HEAD/historical-branches/g5x

and a step more of what happened since adapted ...
                       :-X
Code: [Select]
games/gui_snake.c: In function 'game_over':
games/gui_snake.c:297:30: error: 'LANG_SNAKE_POINTS' undeclared (first use in this function)
gmake[1]: *** [.o/gui_snake.o] Error 1

Some success again, compiles fine for Sx230 & 280,... ( not for G5x, stuck in gui_screw... :-[ )
« Last Edit: 16 / December / 2021, 16:21:48 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: New CHDK features
« Reply #23 on: 17 / December / 2021, 10:48:00 »
3 or 4 = 7 :haha steps to make today´s download working:
https://chdk.setepontos.com/index.php?topic=14469.msg147387#msg147387
save include/conf.h && camera.h
delete the include folder & copy the trunk´s /include/, then add the saved files &
3rd language file for compatibility with CHDK-DE...

Edit: Pretty histograms, waves still crashing, but where are the waves?  :-[
Buggy source appended#
« Last Edit: 13 / January / 2022, 16:34:27 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: New CHDK features
« Reply #24 on: 20 / December / 2021, 15:29:06 »
 :D Histogram of history of histogram in progress...
Waves restored, await first crashes ...
The alignement of new & newer features was the issue.
Sorry, failed with the editor, either last minute error, or need to boot to <rec>...  :(
« Last Edit: 20 / December / 2021, 16:23:04 by Caefix »
All lifetime is a loan from eternity.

Re: New CHDK features
« Reply #25 on: 21 / December / 2021, 02:28:11 »
Waveform and Vectorscope on the new version are not working properly. I was based on the dimensions 360x240 and in the attachments I present the sequence on the viewport buffer. For performance reasons, data is taken every few pixels, i.e. only some rows and columns. I believe it is not the width in bytes but in pixels. I need to check it out more closely.

*

Offline reyalp

  • ******
  • 14125
Re: New CHDK features
« Reply #26 on: 21 / December / 2021, 03:14:15 »
Waveform and Vectorscope on the new version are not working properly. I was based on the dimensions 360x240 and in the attachments I present the sequence on the viewport buffer.
I haven't been following closely, but FWIW, in general, it's not safe to assume viewport buffers are always 360x240.
Don't forget what the H stands for.

Re: New CHDK features
« Reply #27 on: 21 / December / 2021, 03:47:12 »
Right, I should probably use
viewport_width = camera_screen.width
for the purpose of allocating the waveform buffer

Re: New CHDK features
« Reply #28 on: 21 / December / 2021, 07:51:49 »
So far I have used camera_screen.width for the waveform memory allocation instead of 360/3. Using vid_get_viewport_width_proper and vid_get_viewport_height_proper caused the system to crash in waveform_process and I don't know why. I gave up on registry variables because I think they are causing waveform to malfunction. Something shows up with Live Preview during Record mode when it shouldn't. It worked fine in Play mode. I have not noticed a significant improvement or degradation in performance because of this.

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: New CHDK features
« Reply #29 on: 21 / December / 2021, 11:03:13 »
Using vid_get_viewport_width_proper and vid_get_viewport_height_proper caused the system to crash in waveform_process and I don't know why.
;) ... You could retry with pasting lines 125-237 from ../platform/G12/lib.c to the lib.c of Your cams.
Edit: // Default implementation of PTP live view functions is in ../platform/generic/wrappers.c, 1823~.

Edit2: Probably good for each approach...  :-[
Code: [Select]
    switch (histogram_stage)
    {
    case 0:
        ...
        //condition allocate memory
        if (histogram_allocated==0) histogram_alloc();

        for (c=0; c<5; ++c)
        ...
« Last Edit: 21 / December / 2021, 15:31:27 by Caefix »
All lifetime is a loan from eternity.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal