X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=h264encode.h;h=b14ca6f4690643d6281be45c0dbd27e19b49f3a5;hb=6531415ce7a0010195cb3267c6898475d38922ac;hp=5409d17421c3fb8b047c94911908c2243864d7f4;hpb=c076cca693f8c58d9c32d4ea5cddcb2767efdd23;p=nageru diff --git a/h264encode.h b/h264encode.h index 5409d17..b14ca6f 100644 --- a/h264encode.h +++ b/h264encode.h @@ -35,13 +35,11 @@ extern "C" { #include #include #include -#include -#include -#include #include #include "pbo_frame_allocator.h" #include "context.h" +#include "ref_counted_gl_sync.h" #define SURFACE_NUM 16 /* 16 surfaces for source YUV */ @@ -63,7 +61,7 @@ public: void #endif bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex); - void end_frame(GLsync fence, const std::vector &input_frames_to_release); + void end_frame(RefCountedGLsync fence, const std::vector &input_frames_to_release); private: struct storage_task { @@ -94,7 +92,7 @@ private: int current_storage_frame; struct PendingFrame { - GLsync fence; + RefCountedGLsync fence; std::vector input_frames_to_release; }; std::map pending_frames;