Changeset 617


Ignore:
Timestamp:
12/05/08 05:50:43 (5 years ago)
Author:
phyrephox
Message:

a590:
+ added supposedly correct adresses for PT_PLaysound - now scripts like metronome.lua should work (in general the play_sound function) (thx to fudgey)
+ added right defines & dng stuff into camera.h, now generating of dngs should be possible (thx to stanislas, see http://chdk.setepontos.com/index.php/topic,2710.msg25436.html#msg25436)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/camera.h

    r614 r617  
    386386//---------------------------------------------------------- 
    387387#elif defined (CAMERA_a590) 
    388     #define CAM_PROPSET                 2 
    389     #define CAM_DRYOS                   1 
    390  
    391     #define CAM_RAW_ROWPIX              3336   // for new 8 MP 
    392     #define CAM_RAW_ROWS                2480    // for new 8 MP 
    393     #undef  CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 
    394         // TODO / test 
    395     #define  CAM_CAN_MUTE_MICROPHONE 1 
     388#define CAM_PROPSET                 2 
     389#define CAM_DRYOS                   1 
     390 
     391#define CAM_RAW_ROWPIX              3336   // for new 8 MP 
     392#define CAM_RAW_ROWS                2480   // for new 8 MP 
     393 
     394#define CAM_USE_ZOOM_FOR_MF         1      // Zoom lever can be used for manual focus adjustments 
     395 
     396// cannot mute during video-zoom through CHDK, it can mute in general firmware settings (non CHDK) 
     397#undef  CAM_CAN_MUTE_MICROPHONE            // Camera has no function to mute microphone 
     398 
     399#define CAM_HAS_IRIS_DIAPHRAGM      1      // it has a 6 blade iris diaphragm 
     400#undef  CAM_HAS_ND_FILTER 
     401 
     402#define CAM_HAS_MANUAL_FOCUS        1      // Camera has manual focus mode 
     403 
     404#define CAM_AF_SCAN_DURING_VIDEO_RECORD 1   // Camera adapts focus in video recording 
     405#define CAM_EV_IN_VIDEO             1      // cam can change exposure in video mode 
     406#define DNG_SUPPORT                 1 
     407// pattern 
     408// It has indeed Green Blue Red Green, so that makes 01 00 02 01 
     409#define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green 
     410// color  
     411#define CAM_COLORMATRIX1                               \ 
     4120.647380, 1000000, -0.169846, 1000000, -0.115337, 1000000, \ 
     413-0.011566, 1000000, 0.451223, 1000000, 0.013279, 1000000, \ 
     4140.062541, 1000000, 0.054140, 1000000, 0.161148, 1000000 
     415 
     416#define cam_CalibrationIlluminant1 1 // Daylight 
     417// cropping 
     418#define CAM_JPEG_WIDTH  3264 
     419#define CAM_JPEG_HEIGHT 2448 
     420#define CAM_ACTIVE_AREA_X1 10 
     421#define CAM_ACTIVE_AREA_Y1 8 
     422#define CAM_ACTIVE_AREA_X2 3302 
     423#define CAM_ACTIVE_AREA_Y2 2474 
     424 
     425// camera name 
     426#define PARAM_CAMERA_NAME 4 // parameter number for GetParameterData 
     427 
    396428 
    397429//---------------------------------------------------------- 
  • trunk/platform/a590/sub/100e/stubs_entry_2.S

    r584 r617  
    9191NSTUB(taskSuspend,                       0xFFC00948) 
    9292NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00948) 
    93 NHSTUB(PT_PlaySound, 0xFFC00948) 
     93NHSTUB(PT_PlaySound, 0xffc4cedc) 
    9494NHSTUB(GetBatteryTemperature,   0xFFC377B4) 
    9595NHSTUB(GetOpticalTemperature,   0xFFC37824) 
  • trunk/platform/a590/sub/101b/stubs_entry_2.S

    r584 r617  
    1616NSTUB(PhySw_testgpio,                           0xFFC356EC) 
    1717NSTUB(PostLEDMessage,                   0xFFC34B78) 
    18 NHSTUB(PT_PlaySound,                            0xFFC00948) 
     18NHSTUB(PT_PlaySound,                                    0xffc4cedc) 
    1919NSTUB(taskcreate_AudioTsk,                      0xFFC3591C) 
    2020NSTUB(TurnOnBackLight,                          0xFFC6C558) 
Note: See TracChangeset for help on using the changeset viewer.