mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 10:58:09 +00:00
[common] rects: implement routine to copy rectangles from framebuffer
This commit is contained in:
@@ -61,6 +61,12 @@ void framebuffer_prepare(FrameBuffer * frame);
|
||||
*/
|
||||
bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size);
|
||||
|
||||
/**
|
||||
* Gets the underlying data buffer of the framebuffer.
|
||||
* For custom read routines only.
|
||||
*/
|
||||
const uint8_t * framebuffer_get_buffer(const FrameBuffer * frame);
|
||||
|
||||
/**
|
||||
* Gets the underlying data buffer of the framebuffer.
|
||||
* For custom write routines only.
|
||||
|
@@ -42,4 +42,8 @@ void rectsBufferToFramebuffer(FrameDamageRect * rects, int count,
|
||||
FrameBuffer * frame, int dstStride, int height,
|
||||
const uint8_t * src, int srcStride);
|
||||
|
||||
void rectsFramebufferToBuffer(FrameDamageRect * rects, int count,
|
||||
uint8_t * dst, int dstStride, int height,
|
||||
const FrameBuffer * frame, int srcStride);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user