X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=bmusb.h;h=9eb3ff4f716a4ede88c997f65131c6fe69232179;hb=89136643760d7da0c94c4d4fb1ec778f9cefb97f;hp=e2033264ad45443528fe97a494a38bd06e0f089a;hpb=73f15e0a1d8f66bf3fe4947894ed7c7f00acb6fb;p=bmusb diff --git a/bmusb.h b/bmusb.h index e203326..9eb3ff4 100644 --- a/bmusb.h +++ b/bmusb.h @@ -154,4 +154,8 @@ class BMUSBCapture { std::vector iso_xfrs; }; +// Get details for the given video format; returns false if detection was incomplete. +// Note: Frame rate is _frame_ rate, not field rate. So 1080i60 gets 30/1, _not_ 60/1. +bool decode_video_format(uint16_t video_format, int *width, int *height, int *frame_rate_nom, int *frame_rate_den, bool *interlaced); + #endif