encoder: Add impl flags

h264-encoding
Andri Yngvason 2021-12-25 15:45:28 +00:00
parent 90f61f03c6
commit d702939969
1 changed files with 7 additions and 0 deletions

View File

@ -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*,