X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=27ba586a7837b646e3933221d430f417d44ec157;hb=96943efedcea66dab5ab6500358951e9f249aef2;hp=00b10f8c5a056ee77ed5c7e13000f83ec32414e8;hpb=ec8449f020f4659791f509b50ac70bc426de2ec9;p=nageru diff --git a/mixer.h b/mixer.h index 00b10f8..27ba586 100644 --- a/mixer.h +++ b/mixer.h @@ -241,6 +241,21 @@ public: return cards[card_index].capture->get_description(); } + std::map get_available_video_modes(unsigned card_index) const { + assert(card_index < num_cards); + return cards[card_index].capture->get_available_video_modes(); + } + + uint32_t get_current_video_mode(unsigned card_index) const { + assert(card_index < num_cards); + return cards[card_index].capture->get_current_video_mode(); + } + + void set_video_mode(unsigned card_index, uint32_t mode) { + assert(card_index < num_cards); + cards[card_index].capture->set_video_mode(mode); + } + private: void configure_card(unsigned card_index, const QSurfaceFormat &format, CaptureInterface *capture); void bm_frame(unsigned card_index, uint16_t timecode,