X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder_impl.h;h=0dcb9cb0e0a3a374af7ca2a7eb5ecd90b26a0b41;hb=ffd68fbfb90242069af957f2a28908f0559f8348;hp=917420ca41af16a81ffdd3668bd6ea38f3fb78cc;hpb=c0961059aa9335a88feb00a667ee32d95a7a888e;p=nageru diff --git a/quicksync_encoder_impl.h b/quicksync_encoder_impl.h index 917420c..0dcb9cb 100644 --- a/quicksync_encoder_impl.h +++ b/quicksync_encoder_impl.h @@ -135,7 +135,7 @@ private: bool is_shutdown = false; bool has_released_gl_resources = false; - bool use_zerocopy; + std::atomic use_zerocopy; int drm_fd = -1; std::thread encode_thread, storage_thread; @@ -162,6 +162,7 @@ private: std::map reorder_buffer; int quicksync_encoding_frame_num = 0; + std::mutex file_audio_encoder_mutex; std::unique_ptr file_audio_encoder; X264Encoder *x264_encoder; // nullptr if not using x264. @@ -213,7 +214,6 @@ private: int h264_entropy_mode = 1; /* cabac */ int ip_period = 3; - int rc_mode = -1; unsigned int current_ref_frame_num = 0; // Encoding frame order within this GOP, sans B-frames. int frame_width;