Wikia

CHDK Wiki

Srsa 4c/Event procedure research

Talk0
565pages on
this wiki

< User:Srsa 4c

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When not noted otherwise, below findings apply to the A470


Registered by UI.CreateEdit

UIFS_MoveZoomTo (DryOS)Edit

  • 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_CaptureNoneStopEdit

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

UIFS_SetCaptureModeToTv, 
UIFS_SetCaptureModeToM
Edit

  • 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_WriteFirmInfoToFileEdit

  • 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 proceduresEdit

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

These are:

PT_CompletePreCaptEdit

PT_RecreviewAvailableEdit

PT_NextShootAvailableEdit

PT_CompleteStopZoomEdit

PT_CompleteStopDigZoomEdit

PT_CompleteStoreLensEdit

PT_MovieRecordStoppedEdit

PT_CompleteCaptModeChangeEdit

PT_CompleteSynchroWriteEdit

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

PT_CompleteChargeEdit


PT_CompleteFileWrite
Edit

Around Wikia's network

Random Wiki