From cf7eadd88eeeae3a21305272499676a2df67bb94 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 17 Jun 2019 02:34:29 +0300 Subject: 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 --- kms++util/inc/kms++util/kms++util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kms++util/inc') 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])) -- cgit v1.2.3