]> git.sesse.net Git - nageru/blobdiff - quicksync_encode.h
Rename H264Encoder to QuickSyncEncoder, since we will be splitting out the non-QuickS...
[nageru] / quicksync_encode.h
similarity index 86%
rename from h264encode.h
rename to quicksync_encode.h
index aeeabb8c26c00212cd668459e1dc1597336a120b..3c98a1b24d9264771ef8b10481e57cc8b7dd39fe 100644 (file)
 #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<float> audio);
        bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex);
@@ -58,7 +58,7 @@ public:
        void close_output_file();
 
 private:
-       std::unique_ptr<H264EncoderImpl> impl;
+       std::unique_ptr<QuickSyncEncoderImpl> impl;
 };
 
 #endif