X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fpbo_frame_allocator.h;h=cff50aa6310036fe320f2f2021c9b445ec7e7a75;hb=HEAD;hp=43ae6cbf622d1d43f66a49166cc38cb7671245ae;hpb=8850f9468d6a1727e7be302d2a9b4360f69210cc;p=nageru diff --git a/nageru/pbo_frame_allocator.h b/nageru/pbo_frame_allocator.h index 43ae6cb..772d05e 100644 --- a/nageru/pbo_frame_allocator.h +++ b/nageru/pbo_frame_allocator.h @@ -4,14 +4,19 @@ #include #include #include +#include +#include #include #include +#include #include +#include #include #include "bmusb/bmusb.h" #include "mjpeg_encoder.h" +#include "shared/va_resource_pool.h" class MJPEGEncoder; @@ -96,7 +101,7 @@ public: }; private: - void init_frame(size_t frame_idx, size_t frame_size, GLuint width, GLuint height, GLenum permissions, GLenum map_bits, int generation); + static void init_frame(Frame &frame, Userdata *ud, PBOFrameAllocator *owner, bmusb::PixelFormat pixel_format, size_t frame_size, GLuint width, GLuint height, GLenum permissions, GLenum map_bits, GLenum buffer, int generation); void destroy_frame(Frame *frame); unsigned card_index;