X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.h;h=9eb3ff4f716a4ede88c997f65131c6fe69232179;hb=89136643760d7da0c94c4d4fb1ec778f9cefb97f;hp=b2725ab76dc5154e04a3b57797ed21c5182231f6;hpb=f38bf2bef09e52ba1e15678f5688132f282b50c2;p=bmusb diff --git a/bmusb.h b/bmusb.h index b2725ab..9eb3ff4 100644 --- a/bmusb.h +++ b/bmusb.h @@ -64,8 +64,8 @@ typedef std::function 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