X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=video_encoder.cpp;h=6a4ebf7219b04ec7b7bd5c85cdcb0bff4ca60680;hb=2abf57fbc06f52c04fb2ca1f765459908e688890;hp=b7e36bd7620de732364b839125175c093e4da447;hpb=de2324b9ad89aa5fbeb0cb8ef499d74bb9bcef14;p=nageru diff --git a/video_encoder.cpp b/video_encoder.cpp index b7e36bd..6a4ebf7 100644 --- a/video_encoder.cpp +++ b/video_encoder.cpp @@ -140,6 +140,12 @@ void VideoEncoder::add_audio(int64_t pts, std::vector audio) stream_audio_encoder->encode_audio(audio, pts + quicksync_encoder->global_delay()); } +bool VideoEncoder::is_zerocopy() const +{ + lock_guard lock(qs_mu); + return quicksync_encoder->is_zerocopy(); +} + bool VideoEncoder::begin_frame(int64_t pts, int64_t duration, movit::YCbCrLumaCoefficients ycbcr_coefficients, const std::vector &input_frames, GLuint *y_tex, GLuint *cbcr_tex) { lock_guard lock(qs_mu);