Instrument Neutral Distributed Interface INDI 2.2.5
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>
26namespace INDI
27{
28
35{
36 public:
37 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}
The EncoderInterface class is the base class for video streaming encoders.
The RawEncoder class sends the image as-is (lossless) to the client.
Definition rawencoder.h:35
virtual bool upload(INDI::WidgetViewBlob *bp, const uint8_t *buffer, uint32_t nbytes, bool isCompressed=false) override
Namespace to encapsulate INDI client, drivers, and mediator classes.