From e1ba4e1085e7e54fbde82bd39dc1e84d1624aa5b Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 24 Dec 2021 15:17:20 +0000 Subject: [PATCH] API: Add nvnc_fb_get_type --- include/neatvnc.h | 1 + src/fb.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/neatvnc.h b/include/neatvnc.h index 8df91c1..991e2c1 100644 --- a/include/neatvnc.h +++ b/include/neatvnc.h @@ -118,6 +118,7 @@ int32_t nvnc_fb_get_stride(const struct nvnc_fb* fb); int nvnc_fb_get_pixel_size(const struct nvnc_fb* fb); struct gbm_bo* nvnc_fb_get_gbm_bo(const struct nvnc_fb* fb); enum nvnc_transform nvnc_fb_get_transform(const struct nvnc_fb* fb); +enum nvnc_fb_type nvnc_fb_get_type(const struct nvnc_fb* fb); struct nvnc_fb_pool* nvnc_fb_pool_new(uint16_t width, uint16_t height, uint32_t fourcc_format, uint16_t stride); diff --git a/src/fb.c b/src/fb.c index 2304dc3..440e282 100644 --- a/src/fb.c +++ b/src/fb.c @@ -153,6 +153,12 @@ enum nvnc_transform nvnc_fb_get_transform(const struct nvnc_fb* fb) return fb->transform; } +EXPORT +enum nvnc_fb_type nvnc_fb_get_type(const struct nvnc_fb* fb) +{ + return fb->type; +} + static void nvnc__fb_free(struct nvnc_fb* fb) { nvnc_cleanup_fn cleanup = fb->common.cleanup_fn;