mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
Cleanup FrameBufferImage API
This commit is contained in:
@@ -318,7 +318,7 @@ FrameBufferImage::~FrameBufferImage() {
|
|||||||
delete rgb;
|
delete rgb;
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameBufferImage::jpegBuffer FrameBufferImage::getJpeg()
|
FrameBufferImage::jpegBuffer FrameBufferImage::getJpeg() const
|
||||||
{
|
{
|
||||||
jpegBuffer jpgimg;
|
jpegBuffer jpgimg;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user