]> git.sesse.net Git - nageru/blobdiff - nageru/mjpeg_encoder.h
Make the MJPEG card-to-stream mapping invisible to outside callers.
[nageru] / nageru / mjpeg_encoder.h
index 8a0d8fadb6b198fc8e6e2104eb8da41da2e17ce1..362e93461e2ed92c6a09b73153fe7dfc34b6b307 100644 (file)
@@ -42,8 +42,7 @@ public:
        void upload_frame(int64_t pts, unsigned card_index, RefCountedFrame frame, const bmusb::VideoFormat &video_format, size_t y_offset, size_t cbcr_offset, std::vector<int32_t> audio, const movit::RGBTriplet &white_balance);
        bool using_vaapi() const { return va_dpy != nullptr; }
 
-       // Returns -1 for inactive (ie., don't encode frames for this card right now).
-       int get_mjpeg_stream_for_card(unsigned card_index);
+       bool should_encode_mjpeg_for_card(unsigned card_index);
 
 private:
        static constexpr int quality = 90;