render: Add header
parent
232b945ad0
commit
89dbbc5fc9
|
@ -0,0 +1,9 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
struct dmabuf_frame;
|
||||||
|
|
||||||
|
int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame);
|
||||||
|
|
||||||
|
/* Copy a horizontal stripe from the GL frame into a pixel buffer */
|
||||||
|
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y,
|
||||||
|
uint32_t height);
|
|
@ -396,8 +396,8 @@ int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy a horizontal stripe from the GL frame into a pixel buffer */
|
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y,
|
||||||
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y, uint32_t height)
|
uint32_t height)
|
||||||
{
|
{
|
||||||
assert(y + height <= self->height);
|
assert(y + height <= self->height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue