camera_string.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __CAMERA_STRING_H__
  10. #define __CAMERA_STRING_H__
  11. #include <stdio.h>
  12. #include <string.h>
  13. #include <csi_camera.h>
  14. #include <camera_manager.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. const char *camera_string_enum_name(int property_id, int enum_id);
  19. const char *camera_string_bitmask_name(int property_id, int enum_id);
  20. const char *camera_string_capture_type(csi_camera_channel_capture_type_e type, bool accept_unknown);
  21. const char *camera_string_chn_capture_types(int fields, char *fields_string);
  22. const char *camera_string_pixel_format(csi_pixel_fmt_e pix_fmt);
  23. const char *camera_string_img_type(csi_img_type_e img_type);
  24. const char *camera_string_meta_field(csi_camera_meta_id_e type, bool accept_unknown);
  25. const char *camera_string_chn_meta_fields(int fields, char *fields_string);
  26. const char *camera_string_chn_status(csi_img_type_e img_type);
  27. const char *camera_string_camera_event_type(csi_camera_event_id_e event_id);
  28. const char *camera_string_channel_event_type(csi_camera_channel_event_id_e event_id);
  29. const char *camera_string_channel_action(camera_channel_action_e action);
  30. const char *camera_string_camera_action(camera_action_e action);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* __CAMERA_STRING_H__ */