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

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

Classes

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

Functions

int ptp_pack_object_info (struct PtpRuntime *r, struct PtpObjectInfo *oi, uint8_t *buf, 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, int max)
 
int ptp_parse_prop_desc (struct PtpRuntime *r, struct PtpPropDesc *oi)
 
int ptp_prop_desc_json (const struct PtpPropDesc *pd, char *buffer, int max)
 
int ptp_parse_object_info (struct PtpRuntime *r, struct PtpObjectInfo *oi)
 
int ptp_storage_info_json (const struct PtpStorageInfo *so, char *buffer, int max)
 
int ptp_object_info_json (const struct PtpObjectInfo *so, char *buffer, int max)
 
int ptp_eos_events (struct PtpRuntime *r, struct PtpGenericEvent **p)
 
void * ptp_open_eos_events (struct PtpRuntime *r)
 
void * ptp_get_eos_event (struct PtpRuntime *r, void *e, struct PtpCanonEvent *ce)
 
int ptp_eos_events_json (struct PtpRuntime *r, char *buffer, int max)
 
int ptp_eos_get_shutter (int data, int dir)
 
int ptp_eos_get_iso (int data, int dir)
 
int ptp_eos_get_aperture (int data, int dir)
 
int ptp_eos_get_white_balance (int data, int dir)
 
int ptp_eos_get_imgformat_value (uint32_t data[5])
 
void * ptp_pack_chdk_upload_file (struct PtpRuntime *r, char *in, char *out, int *length)
 

Detailed Description

Functions to pack/unpack PTP data structures.

Enumeration Type Documentation

◆ PtpCHDKCommands

enum PtpCHDKCommands

Definition at line 159 of file cl_data.h.

◆ PtpMlBmpLvOption

enum PtpMlBmpLvOption

Definition at line 154 of file cl_data.h.

Variable Documentation

◆ a

uint32_t PtpEOSObject::a

Definition at line 134 of file cl_data.h.

◆ access_capability

uint16_t PtpStorageInfo::access_capability

Definition at line 54 of file cl_data.h.

◆ assoc_desc

uint32_t PtpObjectInfo::assoc_desc

Definition at line 74 of file cl_data.h.

◆ assoc_type

uint16_t PtpObjectInfo::assoc_type

Definition at line 73 of file cl_data.h.

◆ b

uint32_t PtpEOSObject::b

Definition at line 135 of file cl_data.h.

◆ c

uint32_t PtpEOSObject::c

Definition at line 136 of file cl_data.h.

◆ capture_formats

uint16_t PtpDeviceInfo::capture_formats[32]

Definition at line 40 of file cl_data.h.

◆ capture_formats_length

int PtpDeviceInfo::capture_formats_length

Definition at line 39 of file cl_data.h.

◆ code [1/2]

int PtpCanonEvent::code

Definition at line 122 of file cl_data.h.

◆ code [2/2]

uint16_t PtpPropDesc::code

Definition at line 95 of file cl_data.h.

◆ compressed_size

uint32_t PtpObjectInfo::compressed_size

Definition at line 64 of file cl_data.h.

◆ current_value

void* PtpPropDesc::current_value

Definition at line 102 of file cl_data.h.

◆ current_value32

uint32_t PtpPropDesc::current_value32

Definition at line 101 of file cl_data.h.

◆ d

uint32_t PtpEOSObject::d

Definition at line 137 of file cl_data.h.

◆ data [1/3]

uint8_t PtpEnumerationForm::data[]

Definition at line 85 of file cl_data.h.

◆ data [2/3]

uint32_t PtpStorageIds::data[4]

Definition at line 13 of file cl_data.h.

◆ data [3/3]

uint32_t UintArray::data[]

Definition at line 19 of file cl_data.h.

◆ data_type [1/2]

uint32_t PtpObjPropDesc::data_type

Definition at line 112 of file cl_data.h.

◆ data_type [2/2]

uint16_t PtpPropDesc::data_type

Definition at line 96 of file cl_data.h.

◆ date_created

char PtpObjectInfo::date_created[32]

Definition at line 78 of file cl_data.h.

◆ date_modified

char PtpObjectInfo::date_modified[32]

Definition at line 79 of file cl_data.h.

◆ def

int PtpCanonEvent::def

Definition at line 124 of file cl_data.h.

◆ default_value [1/2]

uint32_t PtpObjPropDesc::default_value

Definition at line 114 of file cl_data.h.

◆ default_value [2/2]

void* PtpPropDesc::default_value

Definition at line 103 of file cl_data.h.

◆ default_value32

uint32_t PtpPropDesc::default_value32

Definition at line 100 of file cl_data.h.

◆ device_version

char PtpDeviceInfo::device_version[64]

Definition at line 47 of file cl_data.h.

◆ digic

uint8_t PtpMlLvHeader::digic

Definition at line 148 of file cl_data.h.

◆ e

uint32_t PtpEOSObject::e

Definition at line 138 of file cl_data.h.

◆ enum_form

struct PtpEnumerationForm* PtpPropDesc::enum_form

Definition at line 107 of file cl_data.h.

◆ events_supported

uint16_t PtpDeviceInfo::events_supported[256]

Definition at line 34 of file cl_data.h.

◆ events_supported_length

int PtpDeviceInfo::events_supported_length

Definition at line 33 of file cl_data.h.

◆ extensions

char PtpDeviceInfo::extensions[128]

Definition at line 27 of file cl_data.h.

◆ filename

char PtpObjectInfo::filename[64]

Definition at line 77 of file cl_data.h.

◆ form_flag

uint32_t PtpObjPropDesc::form_flag

Definition at line 116 of file cl_data.h.

◆ form_type

uint8_t PtpPropDesc::form_type

Definition at line 105 of file cl_data.h.

◆ free_objects

uint32_t PtpStorageInfo::free_objects

Definition at line 57 of file cl_data.h.

◆ free_space

uint64_t PtpStorageInfo::free_space

Definition at line 56 of file cl_data.h.

◆ fs_type

uint16_t PtpStorageInfo::fs_type

Definition at line 53 of file cl_data.h.

◆ functional_mode

uint16_t PtpDeviceInfo::functional_mode

Definition at line 28 of file cl_data.h.

◆ get_set

uint8_t PtpObjPropDesc::get_set

Definition at line 113 of file cl_data.h.

◆ group_code

uint32_t PtpObjPropDesc::group_code

Definition at line 115 of file cl_data.h.

◆ img_bit_depth

uint32_t PtpObjectInfo::img_bit_depth

Definition at line 71 of file cl_data.h.

◆ img_height

uint32_t PtpObjectInfo::img_height

Definition at line 70 of file cl_data.h.

◆ img_width

uint32_t PtpObjectInfo::img_width

Definition at line 69 of file cl_data.h.

◆ keywords

char PtpObjectInfo::keywords[64]

Definition at line 80 of file cl_data.h.

◆ lcd_palette

uint32_t PtpMlLvInfo::lcd_palette[256]

Definition at line 144 of file cl_data.h.

◆ length [1/4]

uint16_t PtpEnumerationForm::length

Definition at line 84 of file cl_data.h.

◆ length [2/4]

uint32_t PtpEOSViewFinderData::length

Definition at line 128 of file cl_data.h.

◆ length [3/4]

uint32_t PtpStorageIds::length

Definition at line 12 of file cl_data.h.

◆ length [4/4]

uint32_t UintArray::length

Definition at line 18 of file cl_data.h.

◆ lv_pitch

uint32_t PtpMlLvInfo::lv_pitch

Definition at line 142 of file cl_data.h.

◆ lv_width

uint32_t PtpMlLvInfo::lv_width

Definition at line 143 of file cl_data.h.

◆ manufacturer

char PtpDeviceInfo::manufacturer[128]

Definition at line 45 of file cl_data.h.

◆ max

int PtpRangeForm::max

Definition at line 90 of file cl_data.h.

◆ max_capacity

uint64_t PtpStorageInfo::max_capacity

Definition at line 55 of file cl_data.h.

◆ min

int PtpRangeForm::min

Definition at line 89 of file cl_data.h.

◆ model

char PtpDeviceInfo::model[128]

Definition at line 46 of file cl_data.h.

◆ obj_format

uint16_t PtpObjectInfo::obj_format

Definition at line 62 of file cl_data.h.

◆ ops_supported

uint16_t PtpDeviceInfo::ops_supported[256]

Definition at line 31 of file cl_data.h.

◆ ops_supported_length

int PtpDeviceInfo::ops_supported_length

Definition at line 30 of file cl_data.h.

◆ parent_obj

uint32_t PtpObjectInfo::parent_obj

Definition at line 72 of file cl_data.h.

◆ playback_formats

uint16_t PtpDeviceInfo::playback_formats[32]

Definition at line 43 of file cl_data.h.

◆ playback_formats_length

int PtpDeviceInfo::playback_formats_length

Definition at line 42 of file cl_data.h.

◆ property_code

uint32_t PtpObjPropDesc::property_code

Definition at line 111 of file cl_data.h.

◆ props_supported

uint16_t PtpDeviceInfo::props_supported[256]

Definition at line 37 of file cl_data.h.

◆ props_supported_length

int PtpDeviceInfo::props_supported_length

Definition at line 36 of file cl_data.h.

◆ protection

uint16_t PtpObjectInfo::protection

Definition at line 63 of file cl_data.h.

◆ range_form

struct PtpRangeForm PtpPropDesc::range_form

Definition at line 106 of file cl_data.h.

◆ read_only

uint8_t PtpPropDesc::read_only

Definition at line 97 of file cl_data.h.

◆ sequence_num

uint32_t PtpObjectInfo::sequence_num

Definition at line 75 of file cl_data.h.

◆ serial_number

char PtpDeviceInfo::serial_number[128]

Definition at line 48 of file cl_data.h.

◆ standard_version

uint16_t PtpDeviceInfo::standard_version

Definition at line 24 of file cl_data.h.

◆ step

int PtpRangeForm::step

Definition at line 91 of file cl_data.h.

◆ storage_id

uint32_t PtpObjectInfo::storage_id

Definition at line 61 of file cl_data.h.

◆ storage_type

uint16_t PtpStorageInfo::storage_type

Definition at line 52 of file cl_data.h.

◆ thumb_compressed_size

uint32_t PtpObjectInfo::thumb_compressed_size

Definition at line 66 of file cl_data.h.

◆ thumb_format

uint16_t PtpObjectInfo::thumb_format

Definition at line 65 of file cl_data.h.

◆ thumb_height

uint32_t PtpObjectInfo::thumb_height

Definition at line 68 of file cl_data.h.

◆ thumb_width

uint32_t PtpObjectInfo::thumb_width

Definition at line 67 of file cl_data.h.

◆ type [1/2]

int PtpCanonEvent::type

Definition at line 121 of file cl_data.h.

◆ type [2/2]

uint32_t PtpEOSViewFinderData::type

Definition at line 129 of file cl_data.h.

◆ v1

uint8_t PtpMlLvHeader::v1

Definition at line 149 of file cl_data.h.

◆ v2

uint8_t PtpMlLvHeader::v2

Definition at line 150 of file cl_data.h.

◆ v3

uint8_t PtpMlLvHeader::v3

Definition at line 151 of file cl_data.h.

◆ value

int PtpCanonEvent::value

Definition at line 123 of file cl_data.h.

◆ vendor_ext_id

uint32_t PtpDeviceInfo::vendor_ext_id

Definition at line 25 of file cl_data.h.

◆ version

uint16_t PtpDeviceInfo::version

Definition at line 26 of file cl_data.h.