Changeset 1919


Ignore:
Timestamp:
06/17/12 22:24:59 (12 months ago)
Author:
reyalp
Message:

liveview - renamed PTP_CHDK_GetLiveData to PTP_CHDK_GetDisplayData, add some documentation

Location:
branches/reyalp-ptp-live/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp-live/core/live_view.h

    r1872 r1919  
    22#define __LIVE_VIEW_H 
    33 
     4/* 
     5Protocol 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*/ 
    417// Live View protocol version 
    518#define LIVE_VIEW_VERSION_MAJOR 2  // increase only with backwards incompatible changes (and reset minor) 
    619#define LIVE_VIEW_VERSION_MINOR 0  // increase with extensions of functionality 
     20 
     21/* 
     22protocol version history 
     23< 2.0 - development versions 
     24*/ 
     25 
    726 
    827// Control flags for determining which data block to transfer 
  • branches/reyalp-ptp-live/core/ptp.c

    r1872 r1919  
    624624#endif 
    625625 
    626     case PTP_CHDK_GetLiveData: 
     626    case PTP_CHDK_GetDisplayData: 
    627627        ptp.num_param = 1; 
    628628        ptp.param1 = live_view_get_data(data,param2); 
  • branches/reyalp-ptp-live/core/ptp.h

    r1873 r1919  
    991.0 - removed old script result code (luar), replace with message system 
    10102.0 - return PTP_CHDK_TYPE_TABLE for tables instead of TYPE_STRING, allow return of empty strings 
    11 2.1 - eperimental live view, not formally released 
     112.1 - experimental live view, not formally released 
    12122.2 - live view (work in progress) 
    13132.3 - live view (work in progress) 
     
    6767                            // input messages do not have type or subtype, they are always a string destined for the script (similar to USER/string) 
    6868                            // 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 
    7072                            //  param2 bitmask of data 
    7173                            //  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. 
    7277}; 
    7378 
Note: See TracChangeset for help on using the changeset viewer.