Changeset 560


Ignore:
Timestamp:
11/12/08 07:51:48 (5 years ago)
Author:
reyalp
Message:

ixus75_sd750: find zoom_status, enable CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO, use generic/capt_seq.c, set svn:eol-style
lua examples: clean up indentation

Location:
trunk
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHDK/SCRIPTS/examples/lotto.lua

    r554 r560  
    5555        print("Wrong params, dummy!;-)") 
    5656        wait_click(0) 
    57         else 
     57else 
    5858        if ((exclusive == 1) and ((max - min + 1)<count)) then 
    5959                print("Wrong params, dummy!;-)") 
    6060                wait_click(0) 
    61                 else 
     61        else 
    6262 
    6363--If parameters ok start the main loop to throw the dice 
    6464 
    6565                repeat 
    66                   result= {}                                -- create a table for result 
     66                        result= {}                                -- create a table for result 
    6767                        if exclusive == 1 then                    -- if exclusive is set 
    6868                                array = {}                              -- create a table for mix 
     
    8989                        if order == 1 then table.sort(result) end -- order result if set 
    9090                        output = table.concat(result,", ")        -- create a string of the table 
    91                 print("dice [SET]     end [MENU]")        -- output in console 
     91                        print("dice [SET]     end [MENU]")        -- output in console 
    9292                        print() 
    9393                        print(output)                             -- print a string variable 
     
    9595                        cls()                                     -- clear the console 
    9696                until key == "MENU"                         -- end of loop if pressed "MENU" 
    97 end                                             -- "SET" repeat the loop 
     97        end                                             -- "SET" repeat the loop 
    9898end 
    9999 
  • trunk/CHDK/SCRIPTS/examples/tv_uni_e.lua

    r546 r560  
    2828        local x = 0 
    2929        repeat 
    30         wait_click(key_delay) 
    31         if is_pressed "remote" then 
    32           key = "SET" 
    33           x = 1 
    34         end 
    35         if is_pressed "set" then 
    36                 key = "SET" 
    37                 x = 1 
    38         end 
    39         if is_pressed "menu" then 
    40                 key = "MENU" 
    41                 x = 1 
    42         end 
    43         if is_pressed "display" then 
    44    key = "DISP" 
    45    x = 1 
    46   end 
    47         if is_pressed "left" then 
    48                 key = "LEFT" 
    49                 x = 1 
    50         end 
    51         if is_pressed "right" then 
    52                 key = "RIGHT" 
    53                 x = 1 
    54         end 
    55         if is_pressed "up" then 
    56    key = "UP" 
    57    x = 1 
    58   end 
    59   if is_pressed "down" then 
    60    key = "DOWN" 
    61    x = 1 
    62   end 
     30                wait_click(key_delay) 
     31                if is_pressed "remote" then 
     32                  key = "SET" 
     33                  x = 1 
     34                end 
     35                if is_pressed "set" then 
     36                        key = "SET" 
     37                        x = 1 
     38                end 
     39                if is_pressed "menu" then 
     40                        key = "MENU" 
     41                        x = 1 
     42                end 
     43                if is_pressed "display" then 
     44                        key = "DISP" 
     45                        x = 1 
     46                end 
     47                if is_pressed "left" then 
     48                        key = "LEFT" 
     49                        x = 1 
     50                end 
     51                if is_pressed "right" then 
     52                        key = "RIGHT" 
     53                        x = 1 
     54                end 
     55                if is_pressed "up" then 
     56                        key = "UP" 
     57                        x = 1 
     58                end 
     59                if is_pressed "down" then 
     60                        key = "DOWN" 
     61                        x = 1 
     62                end 
    6363        until  x == 1 
    6464        set_led (8,1) 
  • trunk/include/camera.h

    r558 r560  
    448448    #define CAM_HAS_USER_TV_MODES       1   // Camera has tv-priority or manual modes with ability to set tv value 
    449449    #define  CAM_SHOW_OSD_IN_SHOOT_MENU   1   // On some cameras Canon shoot menu has additional functionality and useful in this case to see CHDK OSD in this mode   
    450     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more 
    451     // #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO  1 // Camera can unlock optical zoom in video (if it is locked) 
     450//    #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO // adress for zoom_status missing, probably more 
     451    #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO  1 // Camera can unlock optical zoom in video (if it is locked) 
    452452    #define  CAM_FEATURE_FEATHER        1     // Cameras with "feather" or touch wheel. 
    453453    #undef CAM_HAS_IS                     // Camera has image stabilizer 
  • trunk/platform/ixus75_sd750/Makefile

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/kbd.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/lib.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/main.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/notes.txt

    • Property svn:eol-style changed from CRLF to native
  • trunk/platform/ixus75_sd750/shooting.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/Makefile

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/100b/boot.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/capt_seq.c

    • Property svn:eol-style set to native
    r557 r560  
    33#include "core.h" 
    44 
    5 #define RAWDATA_AVAILABLE (1) 
    6 #define RAWDATA_SAVED (2) 
    7  
    8 #define NR_ON (2) 
    9 #define NR_OFF (1) 
    10  
    11 static long raw_save_stage; 
    12  
    13 void capt_seq_hook_raw_here() 
    14 { 
    15     raw_save_stage = RAWDATA_AVAILABLE; 
    16     core_rawdata_available(); 
    17     while (raw_save_stage != RAWDATA_SAVED){ 
    18         _SleepTask(10); 
    19     } 
    20 } 
    21  
    22 void hook_raw_save_complete() 
    23 { 
    24     raw_save_stage = RAWDATA_SAVED; 
    25 } 
    26  
    27  
    28 void capt_seq_hook_set_nr() 
    29 { 
    30     long *nrflag = (long*)0xCF74; 
    31  
    32     switch (core_get_noise_reduction_value()){ 
    33     case NOISE_REDUCTION_AUTO_CANON: 
    34         // leave it alone 
    35         break; 
    36     case NOISE_REDUCTION_OFF: 
    37         *nrflag = 1; 
    38         break; 
    39     case NOISE_REDUCTION_ON: 
    40         *nrflag = 2; 
    41         break; 
    42     }; 
    43 } 
     5 long *nrflag = (long*)0xCF74; 
     6 
     7#include "../../../generic/capt_seq.c" 
    448 
    459void __attribute__((naked,noinline)) sub_FFB0D858_my(long p) 
  • trunk/platform/ixus75_sd750/sub/100b/lib.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/makefile.inc

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/100b/movie_rec.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/stubs_asm.h

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/stubs_auto.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/stubs_entry.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/stubs_entry_2.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/100b/stubs_min.S

    • Property svn:eol-style set to native
    r558 r560  
    1515DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 
    1616DEF(movie_status,0xBBC48) 
     17DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 
     18 
  • trunk/platform/ixus75_sd750/sub/101a/Makefile

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/101a/boot.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/capt_seq.c

    • Property svn:eol-style set to native
    r557 r560  
    33#include "core.h" 
    44 
    5 #define RAWDATA_AVAILABLE (1) 
    6 #define RAWDATA_SAVED (2) 
    7  
    8 #define NR_ON (2) 
    9 #define NR_OFF (1) 
    10  
    11 static long raw_save_stage; 
    12  
    13 void capt_seq_hook_raw_here() 
    14 { 
    15     raw_save_stage = RAWDATA_AVAILABLE; 
    16     core_rawdata_available(); 
    17     while (raw_save_stage != RAWDATA_SAVED){ 
    18         _SleepTask(10); 
    19     } 
    20 } 
    21  
    22 void hook_raw_save_complete() 
    23 { 
    24     raw_save_stage = RAWDATA_SAVED; 
    25 } 
    26  
    27  
    28 void capt_seq_hook_set_nr() 
    29 { 
    30     long *nrflag = (long*)0xCF74; 
    31  
    32     switch (core_get_noise_reduction_value()){ 
    33     case NOISE_REDUCTION_AUTO_CANON: 
    34         // leave it alone 
    35         break; 
    36     case NOISE_REDUCTION_OFF: 
    37         *nrflag = 1; 
    38         break; 
    39     case NOISE_REDUCTION_ON: 
    40         *nrflag = 2; 
    41         break; 
    42     }; 
    43 } 
     5static long *nrflag = (long*)0xCF74; 
     6 
     7#include "../../../generic/capt_seq.c" 
    448 
    459void __attribute__((naked,noinline)) sub_FFB0D8CC_my(long p) 
  • trunk/platform/ixus75_sd750/sub/101a/lib.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/makefile.inc

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/101a/movie_rec.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/stubs_asm.h

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/stubs_auto.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/stubs_entry.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/stubs_entry_2.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/101a/stubs_min.S

    • Property svn:eol-style set to native
    r558 r560  
    1515DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 
    1616DEF(movie_status,0xBBC48) 
     17DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 
     18 
  • trunk/platform/ixus75_sd750/sub/102a/Makefile

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/102a/boot.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/capt_seq.c

    • Property svn:eol-style set to native
    r557 r560  
    33#include "core.h" 
    44 
    5 #define RAWDATA_AVAILABLE (1) 
    6 #define RAWDATA_SAVED (2) 
    7  
    8 #define NR_ON (2) 
    9 #define NR_OFF (1) 
    10  
    11 static long raw_save_stage; 
    12  
    13 void capt_seq_hook_raw_here() 
    14 { 
    15     raw_save_stage = RAWDATA_AVAILABLE; 
    16     core_rawdata_available(); 
    17     while (raw_save_stage != RAWDATA_SAVED){ 
    18         _SleepTask(10); 
    19     } 
    20 } 
    21  
    22 void hook_raw_save_complete() 
    23 { 
    24     raw_save_stage = RAWDATA_SAVED; 
    25 } 
    26  
    27  
    28 void capt_seq_hook_set_nr() 
    29 { 
    30     long *nrflag = (long*)0xCF74; 
    31  
    32     switch (core_get_noise_reduction_value()){ 
    33     case NOISE_REDUCTION_AUTO_CANON: 
    34         // leave it alone 
    35         break; 
    36     case NOISE_REDUCTION_OFF: 
    37         *nrflag = 1; 
    38         break; 
    39     case NOISE_REDUCTION_ON: 
    40         *nrflag = 2; 
    41         break; 
    42     }; 
    43 } 
     5static long *nrflag = (long*)0xCF74; 
     6 
     7#include "../../../generic/capt_seq.c" 
    448 
    459// Checked for the SD750 v1.02A 
  • trunk/platform/ixus75_sd750/sub/102a/lib.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/makefile.inc

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/sub/102a/movie_rec.c

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/stubs_asm.h

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/stubs_auto.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/stubs_entry.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/stubs_entry_2.S

    • Property svn:eol-style set to native
  • trunk/platform/ixus75_sd750/sub/102a/stubs_min.S

    • Property svn:eol-style set to native
    r558 r560  
    1515DEF(recreview_hold, 0x25E4) // (0x25E8 - 0x4) found in "AR:Snd:0x%04x" 
    1616DEF(movie_status,0xBBC48) 
     17DEF(zoom_status, 0x26B8) // found near _MoveOpticalToTele, _StopOpticalZoom etc 
     18 
  • trunk/platform/ixus75_sd750/sub/Makefile

    • Property svn:eol-style set to LF
  • trunk/platform/ixus75_sd750/wrappers.c

    • Property svn:eol-style set to native
Note: See TracChangeset for help on using the changeset viewer.