Instrument Neutral Distributed Interface INDI 2.2.5
encoderinterface.cpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2017 by Jasem Mutlaq <[email protected]>
3 Copyright (C) 2014 by geehalel <[email protected]>
4
5 Encoder Interface.
6
7 Subclass to implement specific recording backend.
8
9 Current supported encoders:
10 1. raw INDI encoder (8 bit grayscale and RGB24 color)
11
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 2.1 of the License, or (at your option) any later version.
16
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25
26*/
27
28#include "encoderinterface.h"
29#include "defaultdevice.h"
30#include "indiccd.h"
31#include "indidetector.h"
32
33namespace INDI
34{
35
37{
38 return name;
39}
40
42{
43 currentDevice = mainDevice;
44}
45
46bool EncoderInterface::setSize(uint16_t width, uint16_t height)
47{
48 rawWidth = width;
49 rawHeight = height;
50 return true;
51}
52
53bool EncoderInterface::setPixelFormat(INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
54{
55 this->pixelFormat = pixelFormat;
56 this->pixelDepth = pixelDepth;
57 return true;
58}
59}
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool setSize(uint16_t width, uint16_t height)
virtual void init(INDI::DefaultDevice *mainDevice)
INDI::DefaultDevice * currentDevice
virtual bool setPixelFormat(INDI_PIXEL_FORMAT pixelFormat, uint8_t pixelDepth)
INDI_PIXEL_FORMAT pixelFormat
INDI_PIXEL_FORMAT
Namespace to encapsulate INDI client, drivers, and mediator classes.