mode.h 389 B

12345678910111213141516171819202122
  1. #include <stdint.h>
  2. #include "libmegapixels.h"
  3. #pragma once
  4. struct libmegapixels_modename {
  5. char *name;
  6. uint32_t v4l_pixel_format;
  7. uint32_t media_bus_format;
  8. int bpp;
  9. int bpc;
  10. int cfa;
  11. };
  12. int
  13. libmegapixels_v4l_pixfmt_to_index(uint32_t pixfmt);
  14. int
  15. libmegapixels_format_name_to_index(const char *name);
  16. int
  17. mode_snprintf(char *buf, size_t maxlen, libmegapixels_mode *mode);