X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder_impl.h;h=18461328a6def27b1264e980bcace8c546cf2592;hb=bd5b2de9a277b87c75d71d94bd8c5095ab14ecf7;hp=679f2a27beec9753e2e1cffb0767a7db4e0fd667;hpb=7c68022d2d22007e0a918f81db87278713659731;p=nageru diff --git a/quicksync_encoder_impl.h b/quicksync_encoder_impl.h index 679f2a2..1846132 100644 --- a/quicksync_encoder_impl.h +++ b/quicksync_encoder_impl.h @@ -39,6 +39,7 @@ public: 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(); + void close_file(); void release_gl_resources(); void set_stream_mux(Mux *mux) { @@ -67,13 +68,14 @@ private: movit::YCbCrLumaCoefficients ycbcr_coefficients; }; struct GLSurface { + GLuint y_tex, cbcr_tex; + + // Only if x264_video_to_disk == false. VASurfaceID src_surface, ref_surface; VABufferID coded_buf; - VAImage surface_image; - GLuint y_tex, cbcr_tex; - // Only if use_zerocopy == true. + // Only if use_zerocopy == true (which implies x264_video_to_disk == false). EGLImage y_egl_image, cbcr_egl_image; // Only if use_zerocopy == false.