camlib
Documentation for camlib is still a work-in-progress
|
draft, do not use this
Magic Lantern had a custom PTP opcode, (0xA1E8
) but it's been left disabled since around 2012. This is a specification for a new opcode extension for ML, using only opcode 0x1998
(after CHDK's 0x9999
).
Returns uint32_t
: version, currently 0x00000001
Returns packed struct:
Similar to SendObjectInfo
. Requires data phase from initiator:
Requires data phase from initiator as follows:
Returns unprocessed data stored lvram. Format depends on the DIGIC generation, which can be retrieved from ML_GetExtVersion
.
Returns unprocessed BMP data - stores both Canon and Magic Lantern menus. Format depends on the DIGIC generation. Each pixel is a single byte. To process this data, ML_GetBmpSpecs
must be used to get the width, height, and color palette for each pixel.
Returns info on how to process the BMP liveview data, starting with info on the pitch and width:
The BMP palette tells which each byte (0-256) maps to in RGBA format.