X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.cpp;h=3d2c9f018488e202dff12e9439ebe8be665fa376;hb=5b54cc5acb28f5d2071c99ef7a715044aa30f10c;hp=3e31c01a771a1cbdd62471ee1f86fbd81b32338c;hpb=862d8ccf3a3d48602427eb2bfb319b2fc7181fe0;p=bmusb diff --git a/bmusb.cpp b/bmusb.cpp index 3e31c01..3d2c9f0 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -1230,3 +1230,22 @@ bool decode_video_format(uint16_t video_format, VideoFormat *decoded_video_forma decoded_video_format->frame_rate_den = 1; return false; } + +map BMUSBCapture::get_available_video_modes() const +{ + // The USB3 cards autodetect, and seem to have no provision for forcing modes. + VideoMode auto_mode; + auto_mode.name = "Autodetect"; + auto_mode.autodetect = true; + return {{ 0, auto_mode }}; +} + +uint32_t BMUSBCapture::get_current_video_mode() const +{ + return 0; // Matches get_available_video_modes(). +} + +void BMUSBCapture::set_video_mode(uint32_t video_mode_id) +{ + assert(video_mode_id == 0); // Matches get_available_video_modes(). +}