⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dc1394_control.h

📁 较新版本的libdc1394
💻 H
📖 第 1 页 / 共 3 页
字号:
*****************************************************/void dc1394_print_feature(dc1394_feature_info *feature);/***************************************************** dc1394_print_feature_set Displays the entire feature set stored in features*****************************************************/void dc1394_print_feature_set(dc1394_feature_set *features);	/***************************************************** dc1394_create_handle This creates a raw1394_handle.  Port should be 0 unless you have multiple firewire cards in your system If a handle can't be created, it returns NULL*****************************************************/raw1394handle_t dc1394_create_handle(int port);/*************************************************** dc1394_destroy_handle Destroy the handle, including the userdata ***************************************************/intdc1394_destroy_handle(raw1394handle_t handle);/***************************************************** dc1394_get_camera_nodes This returns the available cameras on the bus. If showCameras is set to 1, a description of the found cameras is printed. Returns -1 in numCameras and NULL from the call if there is a problem, otherwise the number of cameras and the nodeid_t array from the call*****************************************************/nodeid_t* dc1394_get_camera_nodes(raw1394handle_t handle, int *numCameras,                        int showCameras);#define dc1394_free_camera_nodes free/***************************************************** dc1394_get_sorted_camera_nodes This returns the available cameras on the bus. It returns the node id's in the same index as the id specified the ids array contains a list of the low quadlet of the unique camera ids. If showCameras is set to 1, a description of the found cameras is printed. Returns -1 in numCameras and NULL from the call if there is a problem, otherwise the number of cameras and the nodeid_t array from the call*****************************************************/nodeid_t* dc1394_get_sorted_camera_nodes(raw1394handle_t handle,int numids,                                int *ids,int * numCameras,                               int showCameras);/* Initialize camera to factory default settings */intdc1394_init_camera(raw1394handle_t handle, nodeid_t node);/* Determine if the given node is a camera */intdc1394_is_camera(raw1394handle_t handle, nodeid_t node, dc1394bool_t *value);/* Determine the IIDC Specification version */intdc1394_get_sw_version(raw1394handle_t handle, nodeid_t node, int *version);/* Get the camera information and print that structure*/void dc1394_print_camera_info(dc1394_camerainfo *info); intdc1394_get_camera_info(raw1394handle_t handle, nodeid_t node,                       dc1394_camerainfo *info);/* Functions for querying camera attributes */intdc1394_query_supported_formats(raw1394handle_t handle, nodeid_t node,                               quadlet_t *value);intdc1394_query_supported_modes(raw1394handle_t handle, nodeid_t node,                             unsigned int format, quadlet_t *value);intdc1394_query_supported_framerates(raw1394handle_t handle, nodeid_t node,                                  unsigned int format, unsigned int mode,                                  quadlet_t *value);intdc1394_query_revision(raw1394handle_t handle, nodeid_t node, int mode,                      quadlet_t *value);intdc1394_query_basic_functionality(raw1394handle_t handle, nodeid_t node,                                 quadlet_t *value);/*intdc1394_query_feature_control(raw1394handle_t handle, nodeid_t node,                             unsigned int feature, unsigned int *availability);*/intdc1394_query_advanced_feature_offset(raw1394handle_t handle, nodeid_t node,                                     quadlet_t *value);intdc1394_query_feature_characteristics(raw1394handle_t handle, nodeid_t node,                                     unsigned int feature, quadlet_t *value);/* Get/Set the framerate, mode, format, iso channel/speed for the video */intdc1394_get_video_framerate(raw1394handle_t handle, nodeid_t node,                           unsigned int *framerate);intdc1394_set_video_framerate(raw1394handle_t handle, nodeid_t node,                           unsigned int framerate);intdc1394_get_video_mode(raw1394handle_t handle, nodeid_t node,                      unsigned int *mode);intdc1394_set_video_mode(raw1394handle_t handle, nodeid_t node,                      unsigned int mode);intdc1394_get_video_format(raw1394handle_t handle, nodeid_t node,                        unsigned int *format);intdc1394_set_video_format(raw1394handle_t handle, nodeid_t node,                        unsigned int format);intdc1394_get_operation_mode(raw1394handle_t handle, nodeid_t node,			  unsigned int *mode);intdc1394_set_operation_mode(raw1394handle_t handle, nodeid_t node,			  unsigned int mode);intdc1394_get_iso_channel_and_speed(raw1394handle_t handle, nodeid_t node,                                 unsigned int *channel, unsigned int *speed);intdc1394_set_iso_channel_and_speed(raw1394handle_t handle, nodeid_t node,                                 unsigned int channel, unsigned int speed);/* Turn camera on or off */intdc1394_camera_on(raw1394handle_t handle, nodeid_t node);intdc1394_camera_off(raw1394handle_t handle, nodeid_t node);/* Start/stop isochronous data transmission */intdc1394_start_iso_transmission(raw1394handle_t handle, nodeid_t node);intdc1394_stop_iso_transmission(raw1394handle_t handle, nodeid_t node);intdc1394_get_iso_status(raw1394handle_t handle, nodeid_t node,                      dc1394bool_t *is_on);/* Turn one shot mode on or off */intdc1394_set_one_shot(raw1394handle_t handle, nodeid_t node);intdc1394_unset_one_shot(raw1394handle_t handle, nodeid_t node);/* Turn multishot mode on or off */intdc1394_set_multi_shot(raw1394handle_t handle, nodeid_t node,                      unsigned int numFrames);intdc1394_unset_multi_shot(raw1394handle_t handle, nodeid_t node);intdc1394_get_one_shot(raw1394handle_t handle, nodeid_t node, dc1394bool_t *is_on);intdc1394_get_multi_shot(raw1394handle_t handle, nodeid_t node, dc1394bool_t *is_on,		      unsigned int *numFrames);/* Get/Set the values of the various features on the camera */intdc1394_get_brightness(raw1394handle_t handle, nodeid_t node,                      unsigned int *brightness);intdc1394_set_brightness(raw1394handle_t handle, nodeid_t node,                      unsigned int brightness);intdc1394_get_exposure(raw1394handle_t handle, nodeid_t node,                    unsigned int *exposure);intdc1394_set_exposure(raw1394handle_t handle, nodeid_t node,                    unsigned int exposure);intdc1394_get_sharpness(raw1394handle_t handle, nodeid_t node,                     unsigned int *sharpness);intdc1394_set_sharpness(raw1394handle_t handle, nodeid_t node,                     unsigned int sharpness);intdc1394_get_white_balance(raw1394handle_t handle, nodeid_t node,                         unsigned int *u_b_value, unsigned int *v_r_value);intdc1394_set_white_balance(raw1394handle_t handle, nodeid_t node,                         unsigned int u_b_value, unsigned int v_r_value);intdc1394_get_hue(raw1394handle_t handle, nodeid_t node,               unsigned int *hue);intdc1394_set_hue(raw1394handle_t handle, nodeid_t node,               unsigned int hue);intdc1394_get_saturation(raw1394handle_t handle, nodeid_t node,                      unsigned int *saturation);intdc1394_set_saturation(raw1394handle_t handle, nodeid_t node,                      unsigned int saturation);intdc1394_get_gamma(raw1394handle_t handle, nodeid_t node,                 unsigned int *gamma);intdc1394_set_gamma(raw1394handle_t handle, nodeid_t node,                 unsigned int gamma);intdc1394_get_shutter(raw1394handle_t handle, nodeid_t node,                   unsigned int *shutter);intdc1394_set_shutter(raw1394handle_t handle, nodeid_t node,                   unsigned int shutter);intdc1394_get_gain(raw1394handle_t handle, nodeid_t node,                unsigned int *gain);intdc1394_set_gain(raw1394handle_t handle, nodeid_t node,                unsigned int gain);intdc1394_get_iris(raw1394handle_t handle, nodeid_t node,                unsigned int *iris);intdc1394_set_iris(raw1394handle_t handle, nodeid_t node,                unsigned int iris);intdc1394_get_focus(raw1394handle_t handle, nodeid_t node,                 unsigned int *focus);intdc1394_set_focus(raw1394handle_t handle, nodeid_t node,                 unsigned int focus);intdc1394_get_temperature(raw1394handle_t handle, nodeid_t node,                       unsigned int *target_temperature,		       unsigned int *temperature);intdc1394_set_temperature(raw1394handle_t handle, nodeid_t node,                       unsigned int target_temperature);intdc1394_get_white_shading(raw1394handle_t handle, nodeid_t node,                         unsigned int *r_value, unsigned int *g_value,			 unsigned int *b_value);intdc1394_set_white_shading(raw1394handle_t handle, nodeid_t node,			 unsigned int r_value, unsigned int g_value,			 unsigned int b_value);intdc1394_get_trigger_delay(raw1394handle_t handle, nodeid_t node,			 unsigned int *trigger_delay);intdc1394_set_trigger_delay(raw1394handle_t handle, nodeid_t node,			 unsigned int trigger_delay);intdc1394_get_frame_rate(raw1394handle_t handle, nodeid_t node,		      unsigned int *frame_rate);intdc1394_set_frame_rate(raw1394handle_t handle, nodeid_t node,		      unsigned int frame_rate);  intdc1394_get_hue(raw1394handle_t handle, nodeid_t node,	       unsigned int *hue);intdc1394_get_trigger_mode(raw1394handle_t handle, nodeid_t node,                        unsigned int *mode);intdc1394_set_trigger_mode(raw1394handle_t handle, nodeid_t node,                        unsigned int mode);intdc1394_get_zoom(raw1394handle_t handle, nodeid_t node,                unsigned int *zoom);intdc1394_set_zoom(raw1394handle_t handle, nodeid_t node,                unsigned int zoom);intdc1394_get_pan(raw1394handle_t handle, nodeid_t node,               unsigned int *pan);intdc1394_set_pan(raw1394handle_t handle, nodeid_t node,               unsigned int pan);intdc1394_get_tilt(raw1394handle_t handle, nodeid_t node,                unsigned int *tilt);intdc1394_set_tilt(raw1394handle_t handle, nodeid_t node,                unsigned int tilt);intdc1394_get_optical_filter(raw1394handle_t handle, nodeid_t node,                          unsigned int *optical_filter);intdc1394_set_optical_filter(raw1394handle_t handle, nodeid_t node,                          unsigned int optical_filter);intdc1394_get_capture_size(raw1394handle_t handle, nodeid_t node,                        unsigned int *capture_size);intdc1394_set_capture_size(raw1394handle_t handle, nodeid_t node,                        unsigned int capture_size);intdc1394_get_capture_quality(raw1394handle_t handle, nodeid_t node,                           unsigned int *capture_quality);intdc1394_set_capture_quality(raw1394handle_t handle, nodeid_t node,                           unsigned int capture_quality);/* Convenience functions to query/set based on a variable camera feature *//* (can't be used for white balance) */intdc1394_get_feature_value(raw1394handle_t handle, nodeid_t node,                         unsigned int feature, unsigned int *value);intdc1394_set_feature_value(raw1394handle_t handle, nodeid_t node,                         unsigned int feature, unsigned int value);/* Query/set specific feature characteristics */intdc1394_is_feature_present(raw1394handle_t handle, nodeid_t node,                          unsigned int feature, dc1394bool_t *value);intdc1394_has_one_push_auto(raw1394handle_t handle, nodeid_t node,                         unsigned int feature, dc1394bool_t *value);intdc1394_is_one_push_in_operation(raw1394handle_t handle, nodeid_t node,                                unsigned int feature, dc1394bool_t *value);intdc1394_start_one_push_operation(raw1394handle_t handle, nodeid_t node,                                unsigned int feature);intdc1394_can_read_out(raw1394handle_t handle, nodeid_t node,                    unsigned int feature, dc1394bool_t *value);intdc1394_can_turn_on_off(raw1394handle_t handle, nodeid_t node,                       unsigned int feature, dc1394bool_t *value);intdc1394_is_feature_on(raw1394handle_t handle, nodeid_t node,                     unsigned int feature, dc1394bool_t *value);intdc1394_feature_on_off(raw1394handle_t handle, nodeid_t node,                      unsigned int feature, unsigned int value);                                          /* 0=off, nonzero=on */intdc1394_has_auto_mode(raw1394handle_t handle, nodeid_t node,                     unsigned int feature, dc1394bool_t *value);intdc1394_has_manual_mode(raw1394handle_t handle, nodeid_t node,                       unsigned int feature, dc1394bool_t *value);intdc1394_is_feature_auto(raw1394handle_t handle, nodeid_t node,                       unsigned int feature, dc1394bool_t *value);intdc1394_auto_on_off(raw1394handle_t handle, nodeid_t node,                   unsigned int feature, unsigned int value);                                          /* 0=off, nonzero=on */intdc1394_get_min_value(raw1394handle_t handle, nodeid_t node,                     unsigned int feature, unsigned int *value);intdc1394_get_max_value(raw1394handle_t handle, nodeid_t node,                     unsigned int feature, unsigned int *value);/********************************** DMA Capture Functions  These routines will be much faster than the above capture routines.***********************************//***************************************************** dc1394_dma_setup_capture This sets up the given camera to capture images using  the dma engine.  Should be much faster than the above routines******************************************************/intdc1394_dma_setup_capture(raw1394handle_t handle, nodeid_t node,                         int channel, int format, int mode,                         int speed, int frame_rate,                          int num_dma_buffers,                         int drop_frames,                         const char *dma_device_file,                         dc1394_cameracapture *camera);/***************************************************** dc1394_dma_release_camera This releases memory that was mapped by

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -