X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder.h;h=a247ee80fe6bf8b6bfc1890601d85ecccd1113b2;hb=ee7da87b4aa284b7babd59dc21db925f7c384ce7;hp=caa6586f6a5b57d5fe63958e41da5506ba92ce88;hpb=336009fd7baf47b4ad71adf8d7ead8a526045788;p=nageru diff --git a/quicksync_encoder.h b/quicksync_encoder.h index caa6586..a247ee8 100644 --- a/quicksync_encoder.h +++ b/quicksync_encoder.h @@ -27,6 +27,7 @@ #define _H264ENCODE_H #include +#include #include #include #include @@ -60,7 +61,7 @@ public: void set_stream_mux(Mux *mux); // Does not take ownership. Must be called unless x264 is used for the stream. void add_audio(int64_t pts, std::vector audio); - bool begin_frame(int64_t pts, int64_t duration, const std::vector &input_frames, GLuint *y_tex, GLuint *cbcr_tex); + bool begin_frame(int64_t pts, int64_t duration, movit::YCbCrLumaCoefficients ycbcr_coefficients, const std::vector &input_frames, GLuint *y_tex, GLuint *cbcr_tex); RefCountedGLsync end_frame(); void shutdown(); // Blocking. Does not require an OpenGL context. void release_gl_resources(); // Requires an OpenGL context. Must be run after shutdown.