X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encode.h;fp=h264encode.h;h=3c98a1b24d9264771ef8b10481e57cc8b7dd39fe;hb=8e244982fabba3771e98abd7becce02cf693ab03;hp=aeeabb8c26c00212cd668459e1dc1597336a120b;hpb=44dbfae5b2e3fa45fbd356efd9c57ca23e09b90a;p=nageru diff --git a/h264encode.h b/quicksync_encode.h similarity index 86% rename from h264encode.h rename to quicksync_encode.h index aeeabb8..3c98a1b 100644 --- a/h264encode.h +++ b/quicksync_encode.h @@ -36,17 +36,17 @@ #include "ref_counted_frame.h" #include "ref_counted_gl_sync.h" -class H264EncoderImpl; +class QuickSyncEncoderImpl; class HTTPD; class QSurface; // This is just a pimpl, because including anything X11-related in a .h file -// tends to trip up Qt. All the real logic is in H264EncoderImpl, defined in the +// tends to trip up Qt. All the real logic is in QuickSyncEncoderImpl, defined in the // .cpp file. -class H264Encoder { +class QuickSyncEncoder { public: - H264Encoder(QSurface *surface, const std::string &va_display, int width, int height, HTTPD *httpd); - ~H264Encoder(); + QuickSyncEncoder(QSurface *surface, const std::string &va_display, int width, int height, HTTPD *httpd); + ~QuickSyncEncoder(); void add_audio(int64_t pts, std::vector audio); bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex); @@ -58,7 +58,7 @@ public: void close_output_file(); private: - std::unique_ptr impl; + std::unique_ptr impl; }; #endif