X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=video_encoder.h;fp=video_encoder.h;h=bb1be55c836641beacb2dcea2898c778ae331d58;hb=4b286cabe961c426ce340a85167346012691d711;hp=81c48992f8c7620289e83abc458dd6e7ddbaf2ad;hpb=1071d4f992a46d96ebb823d92a6260a815670692;p=nageru diff --git a/video_encoder.h b/video_encoder.h index 81c4899..bb1be55 100644 --- a/video_encoder.h +++ b/video_encoder.h @@ -20,9 +20,13 @@ class QSurface; class QuickSyncEncoder; class X264Encoder; +namespace movit { +class ResourcePool; +} // namespace movit + class VideoEncoder : public KeyFrameSignalReceiver { public: - VideoEncoder(QSurface *surface, const std::string &va_display, int width, int height, HTTPD *httpd); + VideoEncoder(movit::ResourcePool *resource_pool, QSurface *surface, const std::string &va_display, int width, int height, HTTPD *httpd); ~VideoEncoder(); void add_audio(int64_t pts, std::vector audio); @@ -43,6 +47,7 @@ private: int write_packet(uint8_t *buf, int buf_size); std::unique_ptr quicksync_encoder; + movit::ResourcePool *resource_pool; QSurface *surface; std::string va_display; int width, height;