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;