camlib
Documentation for camlib is still a work-in-progress
Loading...
Searching...
No Matches
cl_ops.h File Reference

Go to the source code of this file.

Classes

struct  PtpLiveviewParams
 

Enumerations

enum  PtpLiveViewType {
  PTP_LV_NONE = 0 , PTP_LV_EOS = 1 , PTP_LV_CANON = 2 , PTP_LV_ML = 3 ,
  PTP_LV_EOS_ML_BMP = 4
}
 
enum  PtpLiveViewFormat { PTP_LV_JPEG }
 

Functions

int ptp_liveview_params (struct PtpRuntime *r, struct PtpLiveviewParams *params)
 
int ptp_get_storage_ids (struct PtpRuntime *r, struct PtpArray **a)
 Returns allocated array of storage IDs call free() afterwards.
 
int ptp_eos_get_viewfinder_data (struct PtpRuntime *r)
 
int ptp_eos_set_remote_mode (struct PtpRuntime *r, int mode)
 
int ptp_eos_set_prop_value (struct PtpRuntime *r, int code, int value)
 
int ptp_eos_set_event_mode (struct PtpRuntime *r, int mode)
 
int ptp_eos_remote_release_off (struct PtpRuntime *r, int mode)
 
int ptp_eos_remote_release_on (struct PtpRuntime *r, int mode)
 
int ptp_eos_get_event (struct PtpRuntime *r)
 
int ptp_eos_hdd_capacity_push (struct PtpRuntime *r)
 
int ptp_eos_hdd_capacity_pop (struct PtpRuntime *r)
 
int ptp_eos_get_prop_value (struct PtpRuntime *r, int code)
 
int ptp_eos_bulb_start (struct PtpRuntime *r)
 
int ptp_eos_bulb_stop (struct PtpRuntime *r)
 
int ptp_eos_set_ui_lock (struct PtpRuntime *r)
 
int ptp_eos_reset_ui_lock (struct PtpRuntime *r)
 
int ptp_eos_cancel_af (struct PtpRuntime *r)
 
int ptp_eos_drive_lens (struct PtpRuntime *r, int steps)
 
int ptp_eos_ping (struct PtpRuntime *r)
 
int ptp_liveview_size (struct PtpRuntime *r)
 
int ptp_liveview_init (struct PtpRuntime *r)
 
int ptp_liveview_deinit (struct PtpRuntime *r)
 
int ptp_liveview_frame (struct PtpRuntime *r, void *buffer)
 
int ptp_liveview_type (struct PtpRuntime *r)
 
int ptp_ml_init_bmp_lv (struct PtpRuntime *r)
 
int ptp_ml_get_bmp_lv (struct PtpRuntime *r, uint32_t **buffer_ptr)
 
int ptp_ml_get_liveview_v1 (struct PtpRuntime *r)
 
int ptp_chdk_get_version (struct PtpRuntime *r)
 
int ptp_chdk_upload_file (struct PtpRuntime *r, char *input, char *dest)
 
int ptp_eos_activate_command (struct PtpRuntime *r)
 
int ptp_eos_exec_evproc (struct PtpRuntime *r, void *data, int length, int expect_return)
 
int ptp_eos_evproc_run (struct PtpRuntime *r, char *fmt,...)
 
int ptp_eos_evproc_return_data (struct PtpRuntime *r)
 
int ptp_eos_fa_get_build_version (struct PtpRuntime *r, char *buffer, int max)
 
int ptp_eos_get_liveview (struct PtpRuntime *r)
 

Function Documentation

◆ ptp_eos_get_liveview()

int ptp_eos_get_liveview ( struct PtpRuntime * r)
Returns
enum PtpGeneralError, 0 for 'camera is busy', or the size of the image in the payload