Instrument Neutral Distributed Interface INDI
2.2.5
libs
indibase
stream
encoder
rawencoder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2017 by Jasem Mutlaq <
[email protected]
>
3
4
Encoder Interface
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20
*/
21
22
#pragma once
23
24
#include "
encoderinterface.h
"
25
#include <vector>
26
namespace
INDI
27
{
28
34
class
RawEncoder
:
public
EncoderInterface
35
{
36
public
:
37
RawEncoder
();
38
~RawEncoder
();
39
40
virtual
bool
upload
(
INDI::WidgetViewBlob
*bp,
const
uint8_t *buffer, uint32_t nbytes,
bool
isCompressed =
false
)
override
;
41
42
private
:
43
const
char
*
getDeviceName
();
44
std::vector<uint8_t> compressedFrame;
45
46
};
47
48
}
INDI::EncoderInterface::EncoderInterface
EncoderInterface()=default
INDI::RawEncoder::RawEncoder
RawEncoder()
Definition
rawencoder.cpp:31
INDI::RawEncoder::upload
virtual bool upload(INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false) override
Definition
rawencoder.cpp:45
INDI::RawEncoder::~RawEncoder
~RawEncoder()
Definition
rawencoder.cpp:36
encoderinterface.h
getDeviceName
#define getDeviceName
Definition
indiweatherinterface.cpp:30
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition
pegasus_wifi.h:35
INDI::WidgetViewBlob
WidgetView< IBLOB > WidgetViewBlob
Definition
indipropertyview.h:48
Generated on
for Instrument Neutral Distributed Interface INDI by
1.15.0