API: Add nvnc_fb_get_type
parent
15c14d7d4b
commit
e1ba4e1085
|
@ -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);
|
||||
|
|
6
src/fb.c
6
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;
|
||||
|
|
Loading…
Reference in New Issue