Wikia

CHDK Wiki

Srsa 4c/Event procedure research

Talk0
573pages on
this wiki

< User:Srsa 4c

Revision as of 22:04, January 9, 2013 by Srsa 4c (Talk | contribs)

When not noted otherwise, below findings apply to the A470


Registered by UI.Create

UIFS_MoveZoomTo (DryOS)

  • arguments
  1. zoom point (0, 1,  ... ) starts with optical, adds digital zoom when the optical maximum is reached
  2. ignored
  3. function pointer, probably callback, disabled when 0
  • notes
on A470, digital zoom set with this eventproc may not be persistent
--[[
@title MoveZoomTo
@param a Param
@default a 0
]]
call_event_proc("UI.Create")
call_event_proc("UIFS_MoveZoomTo",a,0,0)

UIFS_CaptureNoneStop

  • arguments
  1. unknown
  • notes
on the A470, calling this with a nonzero argument resulted in an unstoppable endless shooting loop

UIFS_SetCaptureModeToTv, 
UIFS_SetCaptureModeToM

  • arguments
has no arguments
  • notes
changes active capture mode with correct shooting menu, on the A470 both set something similar to the "long shutter" submode of P mode (their effect is slighly different)
Might cause instability (confused camera?)

UIFS_WriteFirmInfoToFile

  • arguments
  1. filename (?), 0 for the default "A/Firminfo.txt"
  • notes
writes firmware information followed by a list of recent recorded errors into the file
call_event_proc("UI.Create")
call_event_proc("UIFS_WriteFirmInfoToFile",0)

PT_* event procedures

The first 11 event procedures of the PT_* eventproctable are called by firmware tasks by name, so they can be overridden

These are:

PT_CompletePreCapt

PT_RecreviewAvailable

PT_NextShootAvailable

PT_CompleteStopZoom

PT_CompleteStopDigZoom

PT_CompleteStoreLens

PT_MovieRecordStopped

PT_CompleteCaptModeChange

PT_CompleteSynchroWrite

  • does not seem to be called on the A470, so it's useless

PT_CompleteCharge


PT_CompleteFileWrite

Around Wikia's network

Random Wiki