dcam_functions.h
Upload User: shyika
Upload Date: 2017-11-25
Package Size: 1227k
Code Size: 3k
Category:

Video Capture

Development Platform:

Unix_Linux

  1. /*
  2.     unicap
  3.     Copyright (C) 2004  Arne Caspari
  4.     This program is free software; you can redistribute it and/or modify
  5.     it under the terms of the GNU General Public License as published by
  6.     the Free Software Foundation; either version 2 of the License, or
  7.     (at your option) any later version.
  8.     This program is distributed in the hope that it will be useful,
  9.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.     GNU General Public License for more details.
  12.     You should have received a copy of the GNU General Public License
  13.     along with this program; if not, write to the Free Software
  14.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  15. */
  16. #ifndef __DCAM_FUNCTIONS_H__
  17. #define __DCAM_FUNCTIONS_H__
  18. #include <config.h>
  19. #ifdef RAW1394_1_1_API
  20. #include <libraw1394/raw1394.h>
  21. #endif
  22. #ifdef RAW1394_1_0_API
  23. #include <raw1394.h>
  24. #endif
  25. #include <unicap.h>
  26. int _dcam_read_register( raw1394handle_t raw1394handle,
  27.  int node,
  28.  nodeaddr_t address,
  29.  quadlet_t *value );
  30. int _dcam_write_register( raw1394handle_t raw1394handle,
  31.   int node,
  32.   nodeaddr_t address,
  33.   quadlet_t value );
  34. int _dcam_get_directory_count( raw1394handle_t raw1394handle, int node );
  35. nodeaddr_t _dcam_get_unit_directory_address( raw1394handle_t raw1394handle, int node, int directory );
  36. nodeaddr_t _dcam_calculate_address( raw1394handle_t raw1394handle, int node, nodeaddr_t addr, quadlet_t key );
  37. nodeaddr_t _dcam_get_unit_dependent_directory_address( raw1394handle_t raw1394handle, int node, int directory );
  38. unsigned int _dcam_get_spec_ID( raw1394handle_t raw1394handle, int node, nodeaddr_t unit_directory_addr );
  39. unsigned int _dcam_get_sw_version( raw1394handle_t raw1394handle, int node, nodeaddr_t unit_directory_addr );
  40. nodeaddr_t _dcam_get_command_regs_base( raw1394handle_t raw1394handle, int node, nodeaddr_t unit_dependend_directory_addr );
  41. int _dcam_get_vendor_id( raw1394handle_t raw1394handle, int node, int directory, unsigned long *vendor_id );
  42. int _dcam_get_model_id( raw1394handle_t raw1394handle, int node, int directory, unsigned long *model_id_hi, unsigned long *model_id_lo );
  43. int _dcam_read_name_leaf( raw1394handle_t raw1394handle, int node, nodeaddr_t addr, char *buffer, size_t *buffer_len );
  44. int _dcam_is_compatible( raw1394handle_t raw1394handle, int node, int directory );
  45. void _dcam_create_device_identifier( char *buffer, size_t size, char *vendor_name, char *model_name, unsigned long model_id_hi, unsigned long model_id_lo );
  46. unicap_status_t _dcam_get_device_info( raw1394handle_t raw1394handle, int node, int directory, unicap_device_t *device );
  47. unicap_status_t _dcam_find_device( unicap_device_t *device, int *port, int *node, int *directory );
  48. #endif //__DCAM_FUNCTIONS_H__