forked from jmercier/PyDC1394
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf_firewire.py
51 lines (46 loc) · 1.58 KB
/
conf_firewire.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /usr/bin/env python
# Copyright (C) 2012-2014 Octets - octets.etsmtl.ca
#
# This file is part of SeaGoatVision.
#
# SeaGoatVision is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
try:
from . import video1394
except:
pass
from .firewire import Firewire
class ConfFirewire:
def __init__(self):
self.media = Firewire
self.name = "Firewire"
self.no = -1
self.default_fps = None
self.is_rgb = False
self.is_format7 = False
self.is_mono = False
self.is_yuv = True
self.iso_speed = None
self.mode = None
self.framerate = None
self.operation_mode = None
# specific for firewire device
self.guid = None
try:
# default value if not setted
self.iso_speed = video1394.ISO_SPEED_400
self.mode = video1394.VIDEO_MODE_800x600_YUV422
self.framerate = video1394.FRAMERATE_15
self.operation_mode = video1394.OPERATION_MODE_LEGACY
except:
pass