summaryrefslogtreecommitdiff
path: root/kms++util/inc
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-17 02:34:29 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2026-05-11 15:55:24 +0300
commitcf7eadd88eeeae3a21305272499676a2df67bb94 (patch)
tree0683b10d4a98f934bcab7ec1177223d29457a408 /kms++util/inc
parent73a82c3afb9af0a392d9d572ed2f6cd1e091a487 (diff)
utils: Add a dump_framebuffer() method
Add a new method to write the contents of a framebuffer to a file descriptor. This can be used to capture frames from writeback connectors. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'kms++util/inc')
-rw-r--r--kms++util/inc/kms++util/kms++util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kms++util/inc/kms++util/kms++util.h b/kms++util/inc/kms++util/kms++util.h
index f10968d..71a2479 100644
--- a/kms++util/inc/kms++util/kms++util.h
+++ b/kms++util/inc/kms++util/kms++util.h
@@ -40,6 +40,8 @@ struct TestPatternOptions {
void draw_test_pattern(IFramebuffer& fb, const TestPatternOptions& options = {});
void draw_vbar_pattern(IFramebuffer& fb, unsigned x, unsigned width,
const TestPatternOptions& options = {});
+
+void dump_framebuffer(IFramebuffer& fb, int fd);
} // namespace kms
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))