From d70293996950bbf59831ab1a5b815e66a076c227 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 25 Dec 2021 15:45:28 +0000 Subject: [PATCH] encoder: Add impl flags --- include/encoder.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/encoder.h b/include/encoder.h index fc24938..4d441f7 100644 --- a/include/encoder.h +++ b/include/encoder.h @@ -25,6 +25,11 @@ struct nvnc_fb; struct pixman_region16; struct rcbuf; +enum encoder_impl_flags { + ENCODER_IMPL_FLAG_NONE = 0, + ENCODER_IMPL_FLAG_IGNORES_DAMAGE = 1 << 0, +}; + enum encoder_kind { ENCODER_KIND_INVALID = 0, ENCODER_KIND_REGULAR, @@ -32,6 +37,8 @@ enum encoder_kind { }; struct encoder_impl { + enum encoder_impl_flags flags; + void (*destroy)(struct encoder*); void (*set_output_format)(struct encoder*,