Cleanup FrameBufferImage API

This commit is contained in:
Bruno
2021-04-25 00:27:32 +02:00
parent 8336f6a595
commit d371f6ae8e
2 changed files with 3 additions and 3 deletions

View File

@@ -318,7 +318,7 @@ FrameBufferImage::~FrameBufferImage() {
delete rgb; delete rgb;
} }
FrameBufferImage::jpegBuffer FrameBufferImage::getJpeg() FrameBufferImage::jpegBuffer FrameBufferImage::getJpeg() const
{ {
jpegBuffer jpgimg; jpegBuffer jpgimg;

View File

@@ -12,7 +12,7 @@
class FrameBufferImage class FrameBufferImage
{ {
public: public:
uint8_t *rgb = nullptr; uint8_t *rgb;
int width; int width;
int height; int height;
@@ -20,7 +20,7 @@ public:
unsigned char *buffer = nullptr; unsigned char *buffer = nullptr;
uint len = 0; uint len = 0;
}; };
jpegBuffer getJpeg(); jpegBuffer getJpeg() const;
FrameBufferImage(int w, int h); FrameBufferImage(int w, int h);
FrameBufferImage(jpegBuffer jpgimg); FrameBufferImage(jpegBuffer jpgimg);