]> git.sesse.net Git - bmusb/blobdiff - bmusb.h
Add a function to get video format details.
[bmusb] / bmusb.h
diff --git a/bmusb.h b/bmusb.h
index e2033264ad45443528fe97a494a38bd06e0f089a..9eb3ff4f716a4ede88c997f65131c6fe69232179 100644 (file)
--- a/bmusb.h
+++ b/bmusb.h
@@ -154,4 +154,8 @@ class BMUSBCapture {
        std::vector<libusb_transfer *> 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