Changeset 1919
- Timestamp:
- 06/17/12 22:24:59 (12 months ago)
- Location:
- branches/reyalp-ptp-live/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reyalp-ptp-live/core/live_view.h
r1872 r1919 2 2 #define __LIVE_VIEW_H 3 3 4 /* 5 Protocol notes: 6 - Unless otherwise specified, all structure values are packed in camera native (little 7 endian) byte order 8 - Frame buffer and palette data are in native camera formats 9 Some documentation may be found at http://chdk.wikia.com/wiki/Frame_buffers 10 - The frame buffer descriptions returned may not be correct depending on the 11 camera model and various camera settings (shooting mode, digital zoom, aspect ratio) 12 This may result in partial images, garbage in the "valid" area or incorrect position 13 - In some cases, the requested data may not be available. If this happens, the framebuffer 14 or palette data offset will be zero. 15 - The frame buffer descriptions are returned regardless of whether the data is available 16 */ 4 17 // Live View protocol version 5 18 #define LIVE_VIEW_VERSION_MAJOR 2 // increase only with backwards incompatible changes (and reset minor) 6 19 #define LIVE_VIEW_VERSION_MINOR 0 // increase with extensions of functionality 20 21 /* 22 protocol version history 23 < 2.0 - development versions 24 */ 25 7 26 8 27 // Control flags for determining which data block to transfer -
branches/reyalp-ptp-live/core/ptp.c
r1872 r1919 624 624 #endif 625 625 626 case PTP_CHDK_Get LiveData:626 case PTP_CHDK_GetDisplayData: 627 627 ptp.num_param = 1; 628 628 ptp.param1 = live_view_get_data(data,param2); -
branches/reyalp-ptp-live/core/ptp.h
r1873 r1919 9 9 1.0 - removed old script result code (luar), replace with message system 10 10 2.0 - return PTP_CHDK_TYPE_TABLE for tables instead of TYPE_STRING, allow return of empty strings 11 2.1 - e perimental live view, not formally released11 2.1 - experimental live view, not formally released 12 12 2.2 - live view (work in progress) 13 13 2.3 - live view (work in progress) … … 67 67 // input messages do not have type or subtype, they are always a string destined for the script (similar to USER/string) 68 68 // output param1 is ptp_chdk_script_msg_status 69 PTP_CHDK_GetLiveData, // TODO not final 69 PTP_CHDK_GetDisplayData, // Return camera display data 70 // This is defined as separate sub protocol in live_view.h 71 // Changes to the sub-protocol will always be considered a minor change to the main protocol 70 72 // param2 bitmask of data 71 73 // output param1 = total size of data 74 // return data is protocol information, frame buffer descriptions and selected display data 75 // Currently a data phase is always returned. Future versions may define other behavior 76 // for values in currently unused parameters. 72 77 }; 73 78
Note: See TracChangeset
for help on using the changeset viewer.