pict
Documentation for pict is still a work-in-progress
 
Loading...
Searching...
No Matches
Data structures

Functions to pack/unpack PTP data structures. More...

Classes

struct  PtpDeviceInfo
 
struct  PtpStorageInfo
 
struct  PtpObjectInfo
 
struct  PtpEnumerationForm
 
struct  PtpRangeForm
 
struct  PtpPropDesc
 
struct  PtpObjPropDesc
 
struct  PtpCanonEvent
 
struct  PtpEOSViewFinderData
 
struct  PtpMlLvInfo
 
struct  PtpMlLvHeader
 

Functions

int ptp_pack_object_info (struct PtpRuntime *r, struct PtpObjectInfo *oi, uint8_t *buf, unsigned int max)
 
int ptp_parse_prop_value (struct PtpRuntime *r)
 
int ptp_parse_device_info (struct PtpRuntime *r, struct PtpDeviceInfo *di)
 
int ptp_device_info_json (const struct PtpDeviceInfo *di, char *buffer, unsigned int max)
 
int ptp_parse_prop_desc (struct PtpRuntime *r, struct PtpPropDesc *oi)
 
int ptp_prop_desc_json (const struct PtpPropDesc *pd, char *buffer, unsigned int max)
 
int ptp_parse_object_info (struct PtpRuntime *r, struct PtpObjectInfo *oi)
 
int ptp_storage_info_json (const struct PtpStorageInfo *so, char *buffer, unsigned int max)
 
int ptp_object_info_json (const struct PtpObjectInfo *so, char *buffer, unsigned int max)
 
int ptp_parse_storage_info (struct PtpRuntime *r, struct PtpStorageInfo *si)
 
 __attribute__ ((deprecated)) int ptp_eos_events(struct PtpRuntime *r
 
int ptp_eos_events_open (struct PtpRuntime *r, struct PtpEventReader *reader)
 
int ptp_eos_events_next (struct PtpRuntime *r, struct PtpEventReader *reader, struct PtpGenericEvent *event)
 
int ptp_eos_events_json (struct PtpRuntime *r, char *buffer, unsigned int max)
 Reads event list currently in r->data and converts to JSON.
 
int ptp_eos_get_shutter (int data, int *out, int dir)
 
int ptp_eos_get_iso (int data, int *out, int dir)
 
int ptp_eos_get_aperture (int data, int *out, int dir)
 
int ptp_eos_get_white_balance (int data, int *out, int dir)
 
int ptp_eos_get_imgformat_value (uint32_t data[5], int *out)
 
void * ptp_pack_chdk_upload_file (struct PtpRuntime *r, char *in, char *out, unsigned int *length)
 
void * canon_evproc_pack (int *out_length, char *string)
 

Detailed Description

Functions to pack/unpack PTP data structures.

Enumeration Type Documentation

◆ PtpCHDKCommands

enum PtpCHDKCommands

Definition at line 143 of file cl_data.h.

◆ PtpMlBmpLvOption

enum PtpMlBmpLvOption

Definition at line 138 of file cl_data.h.

Function Documentation

◆ ptp_eos_events_next()

int ptp_eos_events_next ( struct PtpRuntime * r,
struct PtpEventReader * reader,
struct PtpGenericEvent * event )
Returns
nonzero for end of stream
Note
Not thread safe

◆ ptp_eos_events_open()

int ptp_eos_events_open ( struct PtpRuntime * r,
struct PtpEventReader * reader )

@brif Open a stream reader to read the data currently in r->data from ptp_eos_get_event

Note
Not thread safe

Variable Documentation

◆ access_capability

uint16_t PtpStorageInfo::access_capability

Definition at line 44 of file cl_data.h.

◆ assoc_desc

uint32_t PtpObjectInfo::assoc_desc

Definition at line 66 of file cl_data.h.

◆ assoc_type

uint16_t PtpObjectInfo::assoc_type

Definition at line 65 of file cl_data.h.

◆ capture_formats

uint16_t PtpDeviceInfo::capture_formats[32]

Definition at line 30 of file cl_data.h.

◆ capture_formats_length

int PtpDeviceInfo::capture_formats_length

Definition at line 29 of file cl_data.h.

◆ code [1/2]

int PtpCanonEvent::code

Definition at line 114 of file cl_data.h.

◆ code [2/2]

uint16_t PtpPropDesc::code

Definition at line 87 of file cl_data.h.

◆ compressed_size

uint32_t PtpObjectInfo::compressed_size

Definition at line 56 of file cl_data.h.

◆ current_value

void* PtpPropDesc::current_value

Definition at line 94 of file cl_data.h.

◆ current_value32

uint32_t PtpPropDesc::current_value32

Definition at line 93 of file cl_data.h.

◆ data

uint8_t PtpEnumerationForm::data[]

Definition at line 77 of file cl_data.h.

◆ data_type [1/2]

uint32_t PtpObjPropDesc::data_type

Definition at line 104 of file cl_data.h.

◆ data_type [2/2]

uint16_t PtpPropDesc::data_type

Definition at line 88 of file cl_data.h.

◆ date_created

char PtpObjectInfo::date_created[32]

Definition at line 70 of file cl_data.h.

◆ date_modified

char PtpObjectInfo::date_modified[32]

Definition at line 71 of file cl_data.h.

◆ def

int PtpCanonEvent::def

Definition at line 116 of file cl_data.h.

◆ default_value [1/2]

uint32_t PtpObjPropDesc::default_value

Definition at line 106 of file cl_data.h.

◆ default_value [2/2]

void* PtpPropDesc::default_value

Definition at line 95 of file cl_data.h.

◆ default_value32

uint32_t PtpPropDesc::default_value32

Definition at line 92 of file cl_data.h.

◆ device_version

char PtpDeviceInfo::device_version[64]

Definition at line 37 of file cl_data.h.

◆ digic

uint8_t PtpMlLvHeader::digic

Definition at line 132 of file cl_data.h.

◆ enum_form

struct PtpEnumerationForm* PtpPropDesc::enum_form

Definition at line 99 of file cl_data.h.

◆ events_supported

uint16_t PtpDeviceInfo::events_supported[256]

Definition at line 24 of file cl_data.h.

◆ events_supported_length

int PtpDeviceInfo::events_supported_length

Definition at line 23 of file cl_data.h.

◆ extensions

char PtpDeviceInfo::extensions[128]

Definition at line 17 of file cl_data.h.

◆ filename

char PtpObjectInfo::filename[64]

Definition at line 69 of file cl_data.h.

◆ form_flag

uint32_t PtpObjPropDesc::form_flag

Definition at line 108 of file cl_data.h.

◆ form_type

uint8_t PtpPropDesc::form_type

Definition at line 97 of file cl_data.h.

◆ free_objects

uint32_t PtpStorageInfo::free_objects

Definition at line 47 of file cl_data.h.

◆ free_space

uint64_t PtpStorageInfo::free_space

Definition at line 46 of file cl_data.h.

◆ fs_type

uint16_t PtpStorageInfo::fs_type

Definition at line 43 of file cl_data.h.

◆ functional_mode

uint16_t PtpDeviceInfo::functional_mode

Definition at line 18 of file cl_data.h.

◆ get_set

uint8_t PtpObjPropDesc::get_set

Definition at line 105 of file cl_data.h.

◆ group_code

uint32_t PtpObjPropDesc::group_code

Definition at line 107 of file cl_data.h.

◆ img_bit_depth

uint32_t PtpObjectInfo::img_bit_depth

Definition at line 63 of file cl_data.h.

◆ img_height

uint32_t PtpObjectInfo::img_height

Definition at line 62 of file cl_data.h.

◆ img_width

uint32_t PtpObjectInfo::img_width

Definition at line 61 of file cl_data.h.

◆ keywords

char PtpObjectInfo::keywords[64]

Definition at line 72 of file cl_data.h.

◆ lcd_palette

uint32_t PtpMlLvInfo::lcd_palette[256]

Definition at line 128 of file cl_data.h.

◆ length [1/2]

uint16_t PtpEnumerationForm::length

Definition at line 76 of file cl_data.h.

◆ length [2/2]

uint32_t PtpEOSViewFinderData::length

Definition at line 120 of file cl_data.h.

◆ lv_pitch

uint32_t PtpMlLvInfo::lv_pitch

Definition at line 126 of file cl_data.h.

◆ lv_width

uint32_t PtpMlLvInfo::lv_width

Definition at line 127 of file cl_data.h.

◆ manufacturer

char PtpDeviceInfo::manufacturer[128]

Definition at line 35 of file cl_data.h.

◆ max

int PtpRangeForm::max

Definition at line 82 of file cl_data.h.

◆ max_capacity

uint64_t PtpStorageInfo::max_capacity

Definition at line 45 of file cl_data.h.

◆ min

int PtpRangeForm::min

Definition at line 81 of file cl_data.h.

◆ model

char PtpDeviceInfo::model[128]

Definition at line 36 of file cl_data.h.

◆ obj_format

uint16_t PtpObjectInfo::obj_format

Definition at line 54 of file cl_data.h.

◆ ops_supported

uint16_t PtpDeviceInfo::ops_supported[256]

Definition at line 21 of file cl_data.h.

◆ ops_supported_length

int PtpDeviceInfo::ops_supported_length

Definition at line 20 of file cl_data.h.

◆ p

struct PtpGenericEvent** p

Definition at line 159 of file cl_data.h.

◆ parent_obj

uint32_t PtpObjectInfo::parent_obj

Definition at line 64 of file cl_data.h.

◆ playback_formats

uint16_t PtpDeviceInfo::playback_formats[32]

Definition at line 33 of file cl_data.h.

◆ playback_formats_length

int PtpDeviceInfo::playback_formats_length

Definition at line 32 of file cl_data.h.

◆ property_code

uint32_t PtpObjPropDesc::property_code

Definition at line 103 of file cl_data.h.

◆ props_supported

uint16_t PtpDeviceInfo::props_supported[512]

Definition at line 27 of file cl_data.h.

◆ props_supported_length

int PtpDeviceInfo::props_supported_length

Definition at line 26 of file cl_data.h.

◆ protection

uint16_t PtpObjectInfo::protection

Definition at line 55 of file cl_data.h.

◆ range_form

struct PtpRangeForm PtpPropDesc::range_form

Definition at line 98 of file cl_data.h.

◆ read_only

uint8_t PtpPropDesc::read_only

Definition at line 89 of file cl_data.h.

◆ sequence_num

uint32_t PtpObjectInfo::sequence_num

Definition at line 67 of file cl_data.h.

◆ serial_number

char PtpDeviceInfo::serial_number[128]

Definition at line 38 of file cl_data.h.

◆ standard_version

uint16_t PtpDeviceInfo::standard_version

Definition at line 14 of file cl_data.h.

◆ step

int PtpRangeForm::step

Definition at line 83 of file cl_data.h.

◆ storage_desc

char PtpStorageInfo::storage_desc[128]

Definition at line 48 of file cl_data.h.

◆ storage_id

uint32_t PtpObjectInfo::storage_id

Definition at line 53 of file cl_data.h.

◆ storage_type

uint16_t PtpStorageInfo::storage_type

Definition at line 42 of file cl_data.h.

◆ thumb_compressed_size

uint32_t PtpObjectInfo::thumb_compressed_size

Definition at line 58 of file cl_data.h.

◆ thumb_format

uint16_t PtpObjectInfo::thumb_format

Definition at line 57 of file cl_data.h.

◆ thumb_height

uint32_t PtpObjectInfo::thumb_height

Definition at line 60 of file cl_data.h.

◆ thumb_width

uint32_t PtpObjectInfo::thumb_width

Definition at line 59 of file cl_data.h.

◆ type [1/2]

int PtpCanonEvent::type

Definition at line 113 of file cl_data.h.

◆ type [2/2]

uint32_t PtpEOSViewFinderData::type

Definition at line 121 of file cl_data.h.

◆ v1

uint8_t PtpMlLvHeader::v1

Definition at line 133 of file cl_data.h.

◆ v2

uint8_t PtpMlLvHeader::v2

Definition at line 134 of file cl_data.h.

◆ v3

uint8_t PtpMlLvHeader::v3

Definition at line 135 of file cl_data.h.

◆ value

int PtpCanonEvent::value

Definition at line 115 of file cl_data.h.

◆ vendor_ext_id

uint32_t PtpDeviceInfo::vendor_ext_id

Definition at line 15 of file cl_data.h.

◆ version

uint16_t PtpDeviceInfo::version

Definition at line 16 of file cl_data.h.

◆ volume_identifier

char PtpStorageInfo::volume_identifier[128]

Definition at line 49 of file cl_data.h.