X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=h264encode.h;h=f0fcfae0309828b1fbe4826e6dd1d186a1e92ed8;hb=a76872873dda7a4fc9f41972486c234699f43b23;hp=caf33af0c8de3d2c72af8e56dcf8d57f60ef3eb0;hpb=a9313d3eb914641cbdf8f2426d1fa79b45b55107;p=nageru diff --git a/h264encode.h b/h264encode.h index caf33af..f0fcfae 100644 --- a/h264encode.h +++ b/h264encode.h @@ -47,9 +47,10 @@ public: H264Encoder(QSurface *surface, int width, int height, HTTPD *httpd); ~H264Encoder(); - void add_audio(int64_t pts, std::vector audio); // Needs to come before end_frame() of same pts. + void add_audio(int64_t pts, std::vector audio); bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex); void end_frame(RefCountedGLsync fence, int64_t pts, const std::vector &input_frames); + void shutdown(); // Blocking. private: std::unique_ptr impl;