thing.h
Upload User: shyika
Upload Date: 2017-11-25
Package Size: 1227k
Code Size: 2k
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 __NULL_H__
  17. #define __NULL_H__
  18. int cpi_enumerate_devices( unicap_device_t *device, int index );
  19. int cpi_open( void **cpi_data, unicap_device_t *device );
  20. int cpi_close( void *cpi_data );
  21. unicap_status_t cpi_reenumerate_formats( void *cpi_data, int *count );
  22. int cpi_enumerate_formats( void *cpi_data, unicap_format_t *format, int index );
  23. int cpi_set_format( void *cpi_data, unicap_format_t *format );
  24. unicap_status_t cpi_get_format( void *cpi_data, unicap_format_t *format );
  25. unicap_status_t cpi_reenumerate_properties( void *cpi_data, int *count );
  26. unicap_status_t cpi_enumerate_properties( void *cpi_data, unicap_property_t *property, int index );
  27. unicap_status_t cpi_set_property( void *cpi_data, unicap_property_t *property );
  28. unicap_status_t cpi_get_property( void *cpi_data, unicap_property_t *property );
  29. unicap_status_t cpi_capture_start( void *cpi_data );
  30. unicap_status_t cpi_capture_stop( void *cpi_data );
  31. unicap_status_t cpi_queue_buffer( void *cpi_data, unicap_data_buffer_t *buffer );
  32. unicap_status_t cpi_dequeue_buffer( void *cpi_data, unicap_data_buffer_t **buffer );
  33. unicap_status_t cpi_wait_buffer( void *cpi_data, unicap_data_buffer_t **buffer );
  34. unicap_status_t cpi_poll_buffer( void *cpi_data, int *count );
  35. #define FOURCC(a,b,c,d) (unsigned int)((((unsigned int)d)<<24)+(((unsigned int)c)<<16)+(((unsigned int)b)<<8)+a)
  36. #endif//__NULL_H__