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

📄 dc1394_linux.h

📁 This library provides functionality to control any camera that conforms to the 1394-Based Digital C
💻 H
字号:
/* * 1394-Based Digital Camera Control Library * Copyright (C) 2000 SMART Technologies Inc. * * Written by Gord Peters <GordPeters@smarttech.com> * Additions by Chris Urmson <curmson@ri.cmu.edu> * Additions by Damien Douxchamps <ddouxchamps@users.sf.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef __DC1394_RAW1394_H__#define __DC1394_RAW1394_H__#include <libraw1394/raw1394.h>#include "dc1394_control.h"#define DC1394_CAST_CAMERA_TO_LINUX(camlinux, camera) dc1394camera_linux_t * camlinux = (dc1394camera_linux_t *) cameratypedef struct __dc1394_capture{  unsigned int             frame_width;  unsigned int             frame_height;  unsigned char            *capture_buffer;  unsigned int             quadlets_per_frame;  unsigned int             quadlets_per_packet;  /* components needed for the DMA based video capture */  const unsigned char     *dma_ring_buffer;  char                    *dma_device_file;  unsigned int             dma_buffer_size;  unsigned int             dma_frame_size;  unsigned int             num_dma_buffers;  unsigned int             dma_last_buffer;  unsigned int             num_dma_buffers_behind;  int                      dma_fd;  struct timeval           filltime;  dc1394ring_buffer_policy_t ring_buffer_policy;  raw1394handle_t          handle;} dc1394capture_t;typedef struct __dc1394_camera_linux{  dc1394camera_t     camera;  raw1394handle_t    handle;  dc1394capture_t    capture;} dc1394camera_linux_t;#endif

⌨️ 快捷键说明

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